diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index eea64ff6d8..a64806cc7b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -4,7 +4,7 @@ steps: provider: "gcp" env: TEST_SUITE: "{{ matrix.suite }}" - STACK_VERSION: 9.0.0-SNAPSHOT + STACK_VERSION: 9.0.4-SNAPSHOT WORKSPACE: /tmp/go-elasticsearch matrix: setup: diff --git a/.buildkite/run-repository.sh b/.buildkite/run-repository.sh index e5361f05c2..6ab4ae6c04 100644 --- a/.buildkite/run-repository.sh +++ b/.buildkite/run-repository.sh @@ -41,7 +41,7 @@ ELASTICSEARCH_BUILD_VERSION=$(curl -sSk $external_elasticsearch_url | jq -r '.ve ELASTICSEARCH_BUILD_HASH=$(curl -sSk $external_elasticsearch_url | jq -r '.version.build_hash') echo -e "\033[34;1mINFO:\033[0m Download Elasticsearch specs... \033[0m" -docker run --volume=$WORKSPACE/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c " +docker run -e ELASTICSEARCH_BUILD_VERSION=$ELASTICSEARCH_BUILD_VERSION --volume=$WORKSPACE/tmp:/tmp --workdir=/go-elasticsearch/internal/build --rm elastic/go-elasticsearch /bin/sh -c " go mod download go run main.go download-spec -o /tmp -d " diff --git a/.github/workflows/test-api.yml b/.github/workflows/test-api.yml index c82317a36a..786a8a4d76 100644 --- a/.github/workflows/test-api.yml +++ b/.github/workflows/test-api.yml @@ -11,7 +11,7 @@ jobs: test-free: name: Free env: - ELASTICSEARCH_VERSION: elasticsearch:9.0.0-SNAPSHOT + ELASTICSEARCH_VERSION: elasticsearch:9.0.4-SNAPSHOT ELASTICSEARCH_URL: http://localhost:9200 runs-on: ubuntu-latest steps: @@ -43,7 +43,7 @@ jobs: test-platinum: name: Platinum env: - ELASTICSEARCH_VERSION: elasticsearch:9.0.0-SNAPSHOT + ELASTICSEARCH_VERSION: elasticsearch:9.0.4-SNAPSHOT ELASTICSEARCH_URL: https://elastic:elastic@localhost:9200 runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index a213219b6a..8b23d774e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# 9.0.1 + +# API + +* Updated APIs to 9.0.4 + +# Typed API + +* Update TypedAPI to latest [elasticsearch-specification 9.0](https://github.com/elastic/elasticsearch-specification/commit/e585438) + # 9.0.0 * The client now requires **Go 1.23** or later. diff --git a/Makefile b/Makefile index e535ba7c3a..4aed95a417 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL := /bin/bash -ELASTICSEARCH_DEFAULT_BUILD_VERSION = "9.0.0-SNAPSHOT" +ELASTICSEARCH_DEFAULT_BUILD_VERSION = "9.0.4-SNAPSHOT" ##@ Test test-unit: ## Run unit tests diff --git a/esapi/api._.go b/esapi/api._.go index 98f54b4521..175e0b19c4 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 9.0.0 (09d023f): DO NOT EDIT +// Code generated from specification version 9.0.0 (3d5f100): DO NOT EDIT package esapi @@ -139,6 +139,7 @@ type API struct { InferencePutAzureaistudio InferencePutAzureaistudio InferencePutAzureopenai InferencePutAzureopenai InferencePutCohere InferencePutCohere + InferencePutCustom InferencePutCustom InferencePutElasticsearch InferencePutElasticsearch InferencePutElser InferencePutElser InferencePutGoogleaistudio InferencePutGoogleaistudio @@ -774,6 +775,7 @@ func New(t Transport) *API { InferencePutAzureaistudio: newInferencePutAzureaistudioFunc(t), InferencePutAzureopenai: newInferencePutAzureopenaiFunc(t), InferencePutCohere: newInferencePutCohereFunc(t), + InferencePutCustom: newInferencePutCustomFunc(t), InferencePutElasticsearch: newInferencePutElasticsearchFunc(t), InferencePutElser: newInferencePutElserFunc(t), InferencePutGoogleaistudio: newInferencePutGoogleaistudioFunc(t), diff --git a/esapi/api.cluster.get_component_template.go b/esapi/api.cluster.get_component_template.go index 943946d4ef..79fb7f19f7 100644 --- a/esapi/api.cluster.get_component_template.go +++ b/esapi/api.cluster.get_component_template.go @@ -53,9 +53,11 @@ type ClusterGetComponentTemplate func(o ...func(*ClusterGetComponentTemplateRequ type ClusterGetComponentTemplateRequest struct { Name []string + FlatSettings *bool IncludeDefaults *bool Local *bool MasterTimeout time.Duration + SettingsFilter string Pretty bool Human bool @@ -102,6 +104,10 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran params = make(map[string]string) + if r.FlatSettings != nil { + params["flat_settings"] = strconv.FormatBool(*r.FlatSettings) + } + if r.IncludeDefaults != nil { params["include_defaults"] = strconv.FormatBool(*r.IncludeDefaults) } @@ -114,6 +120,10 @@ func (r ClusterGetComponentTemplateRequest) Do(providedCtx context.Context, tran params["master_timeout"] = formatDuration(r.MasterTimeout) } + if r.SettingsFilter != "" { + params["settings_filter"] = r.SettingsFilter + } + if r.Pretty { params["pretty"] = "true" } @@ -199,6 +209,13 @@ func (f ClusterGetComponentTemplate) WithName(v ...string) func(*ClusterGetCompo } } +// WithFlatSettings - return settings in flat format (default: false). +func (f ClusterGetComponentTemplate) WithFlatSettings(v bool) func(*ClusterGetComponentTemplateRequest) { + return func(r *ClusterGetComponentTemplateRequest) { + r.FlatSettings = &v + } +} + // WithIncludeDefaults - return all default configurations for the component template (default: false). func (f ClusterGetComponentTemplate) WithIncludeDefaults(v bool) func(*ClusterGetComponentTemplateRequest) { return func(r *ClusterGetComponentTemplateRequest) { @@ -220,6 +237,13 @@ func (f ClusterGetComponentTemplate) WithMasterTimeout(v time.Duration) func(*Cl } } +// WithSettingsFilter - filter out results, for example to filter out sensitive information. supports wildcards or full settings keys. +func (f ClusterGetComponentTemplate) WithSettingsFilter(v string) func(*ClusterGetComponentTemplateRequest) { + return func(r *ClusterGetComponentTemplateRequest) { + r.SettingsFilter = v + } +} + // WithPretty makes the response body pretty-printed. func (f ClusterGetComponentTemplate) WithPretty() func(*ClusterGetComponentTemplateRequest) { return func(r *ClusterGetComponentTemplateRequest) { diff --git a/esapi/api.cluster.put_component_template.go b/esapi/api.cluster.put_component_template.go index 8449e78af8..ddebf5fb5d 100644 --- a/esapi/api.cluster.put_component_template.go +++ b/esapi/api.cluster.put_component_template.go @@ -56,9 +56,9 @@ type ClusterPutComponentTemplateRequest struct { Name string + Cause string Create *bool MasterTimeout time.Duration - Timeout time.Duration Pretty bool Human bool @@ -103,6 +103,10 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran params = make(map[string]string) + if r.Cause != "" { + params["cause"] = r.Cause + } + if r.Create != nil { params["create"] = strconv.FormatBool(*r.Create) } @@ -111,10 +115,6 @@ func (r ClusterPutComponentTemplateRequest) Do(providedCtx context.Context, tran params["master_timeout"] = formatDuration(r.MasterTimeout) } - if r.Timeout != 0 { - params["timeout"] = formatDuration(r.Timeout) - } - if r.Pretty { params["pretty"] = "true" } @@ -200,6 +200,13 @@ func (f ClusterPutComponentTemplate) WithContext(v context.Context) func(*Cluste } } +// WithCause - user defined reason for create the component template. +func (f ClusterPutComponentTemplate) WithCause(v string) func(*ClusterPutComponentTemplateRequest) { + return func(r *ClusterPutComponentTemplateRequest) { + r.Cause = v + } +} + // WithCreate - whether the index template should only be added if new or can also replace an existing one. func (f ClusterPutComponentTemplate) WithCreate(v bool) func(*ClusterPutComponentTemplateRequest) { return func(r *ClusterPutComponentTemplateRequest) { @@ -214,13 +221,6 @@ func (f ClusterPutComponentTemplate) WithMasterTimeout(v time.Duration) func(*Cl } } -// WithTimeout - explicit operation timeout. -func (f ClusterPutComponentTemplate) WithTimeout(v time.Duration) func(*ClusterPutComponentTemplateRequest) { - return func(r *ClusterPutComponentTemplateRequest) { - r.Timeout = v - } -} - // WithPretty makes the response body pretty-printed. func (f ClusterPutComponentTemplate) WithPretty() func(*ClusterPutComponentTemplateRequest) { return func(r *ClusterPutComponentTemplateRequest) { diff --git a/esapi/api.create.go b/esapi/api.create.go index 3c3426b762..7fcaaf7be5 100644 --- a/esapi/api.create.go +++ b/esapi/api.create.go @@ -62,6 +62,8 @@ type CreateRequest struct { IncludeSourceOnError *bool Pipeline string Refresh string + RequireAlias *bool + RequireDataStream *bool Routing string Timeout time.Duration Version *int @@ -128,6 +130,14 @@ func (r CreateRequest) Do(providedCtx context.Context, transport Transport) (*Re params["refresh"] = r.Refresh } + if r.RequireAlias != nil { + params["require_alias"] = strconv.FormatBool(*r.RequireAlias) + } + + if r.RequireDataStream != nil { + params["require_data_stream"] = strconv.FormatBool(*r.RequireDataStream) + } + if r.Routing != "" { params["routing"] = r.Routing } @@ -254,6 +264,20 @@ func (f Create) WithRefresh(v string) func(*CreateRequest) { } } +// WithRequireAlias - when true, requires destination to be an alias. default is false. +func (f Create) WithRequireAlias(v bool) func(*CreateRequest) { + return func(r *CreateRequest) { + r.RequireAlias = &v + } +} + +// WithRequireDataStream - when true, requires destination to be a data stream (existing or to be created). default is false. +func (f Create) WithRequireDataStream(v bool) func(*CreateRequest) { + return func(r *CreateRequest) { + r.RequireDataStream = &v + } +} + // WithRouting - specific routing value. func (f Create) WithRouting(v string) func(*CreateRequest) { return func(r *CreateRequest) { diff --git a/esapi/api.indices.recovery.go b/esapi/api.indices.recovery.go index 18991bf8f5..1243d70a32 100644 --- a/esapi/api.indices.recovery.go +++ b/esapi/api.indices.recovery.go @@ -52,8 +52,11 @@ type IndicesRecovery func(o ...func(*IndicesRecoveryRequest)) (*Response, error) type IndicesRecoveryRequest struct { Index []string - ActiveOnly *bool - Detailed *bool + ActiveOnly *bool + AllowNoIndices *bool + Detailed *bool + ExpandWildcards string + IgnoreUnavailable *bool Pretty bool Human bool @@ -104,10 +107,22 @@ func (r IndicesRecoveryRequest) Do(providedCtx context.Context, transport Transp params["active_only"] = strconv.FormatBool(*r.ActiveOnly) } + if r.AllowNoIndices != nil { + params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices) + } + if r.Detailed != nil { params["detailed"] = strconv.FormatBool(*r.Detailed) } + if r.ExpandWildcards != "" { + params["expand_wildcards"] = r.ExpandWildcards + } + + if r.IgnoreUnavailable != nil { + params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable) + } + if r.Pretty { params["pretty"] = "true" } @@ -200,6 +215,13 @@ func (f IndicesRecovery) WithActiveOnly(v bool) func(*IndicesRecoveryRequest) { } } +// WithAllowNoIndices - whether to ignore if a wildcard indices expression resolves into no concrete indices. (this includes `_all` string or when no indices have been specified). +func (f IndicesRecovery) WithAllowNoIndices(v bool) func(*IndicesRecoveryRequest) { + return func(r *IndicesRecoveryRequest) { + r.AllowNoIndices = &v + } +} + // WithDetailed - whether to display detailed information about shard recovery. func (f IndicesRecovery) WithDetailed(v bool) func(*IndicesRecoveryRequest) { return func(r *IndicesRecoveryRequest) { @@ -207,6 +229,20 @@ func (f IndicesRecovery) WithDetailed(v bool) func(*IndicesRecoveryRequest) { } } +// WithExpandWildcards - whether to expand wildcard expression to concrete indices that are open, closed or both.. +func (f IndicesRecovery) WithExpandWildcards(v string) func(*IndicesRecoveryRequest) { + return func(r *IndicesRecoveryRequest) { + r.ExpandWildcards = v + } +} + +// WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed). +func (f IndicesRecovery) WithIgnoreUnavailable(v bool) func(*IndicesRecoveryRequest) { + return func(r *IndicesRecoveryRequest) { + r.IgnoreUnavailable = &v + } +} + // WithPretty makes the response body pretty-printed. func (f IndicesRecovery) WithPretty() func(*IndicesRecoveryRequest) { return func(r *IndicesRecoveryRequest) { diff --git a/esapi/api.inference.put_custom.go b/esapi/api.inference.put_custom.go new file mode 100644 index 0000000000..b914dfd57a --- /dev/null +++ b/esapi/api.inference.put_custom.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 9.0.0: DO NOT EDIT + +package esapi + +import ( + "context" + "io" + "net/http" + "strings" +) + +func newInferencePutCustomFunc(t Transport) InferencePutCustom { + return func(custom_inference_id string, task_type string, o ...func(*InferencePutCustomRequest)) (*Response, error) { + var r = InferencePutCustomRequest{CustomInferenceID: custom_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 ------------------------------------------------------- + +// InferencePutCustom configure a custom inference endpoint +// +// See full documentation at https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom. +type InferencePutCustom func(custom_inference_id string, task_type string, o ...func(*InferencePutCustomRequest)) (*Response, error) + +// InferencePutCustomRequest configures the Inference Put Custom API request. +type InferencePutCustomRequest struct { + Body io.Reader + + CustomInferenceID 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 InferencePutCustomRequest) 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_custom") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + method = "PUT" + + path.Grow(7 + 1 + len("_inference") + 1 + len(r.TaskType) + 1 + len(r.CustomInferenceID)) + 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.CustomInferenceID) + if instrument, ok := r.Instrument.(Instrumentation); ok { + instrument.RecordPathPart(ctx, "custom_inference_id", r.CustomInferenceID) + } + + 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_custom") + if reader := instrument.RecordRequestBody(ctx, "inference.put_custom", 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_custom") + } + 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 InferencePutCustom) WithContext(v context.Context) func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.ctx = v + } +} + +// WithBody - The inference endpoint's task and service settings. +func (f InferencePutCustom) WithBody(v io.Reader) func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.Body = v + } +} + +// WithPretty makes the response body pretty-printed. +func (f InferencePutCustom) WithPretty() func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.Pretty = true + } +} + +// WithHuman makes statistical values human-readable. +func (f InferencePutCustom) WithHuman() func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.Human = true + } +} + +// WithErrorTrace includes the stack trace for errors in the response body. +func (f InferencePutCustom) WithErrorTrace() func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.ErrorTrace = true + } +} + +// WithFilterPath filters the properties of the response body. +func (f InferencePutCustom) WithFilterPath(v ...string) func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + r.FilterPath = v + } +} + +// WithHeader adds the headers to the HTTP request. +func (f InferencePutCustom) WithHeader(h map[string]string) func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + 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 InferencePutCustom) WithOpaqueID(s string) func(*InferencePutCustomRequest) { + return func(r *InferencePutCustomRequest) { + if r.Header == nil { + r.Header = make(http.Header) + } + r.Header.Set("X-Opaque-Id", s) + } +} diff --git a/esapi/api.msearch.go b/esapi/api.msearch.go index 5de7a5d1b4..8040e7d71f 100644 --- a/esapi/api.msearch.go +++ b/esapi/api.msearch.go @@ -55,11 +55,17 @@ type MsearchRequest struct { Body io.Reader + AllowNoIndices *bool CcsMinimizeRoundtrips *bool + ExpandWildcards string + IgnoreThrottled *bool + IgnoreUnavailable *bool + IncludeNamedQueriesScore *bool MaxConcurrentSearches *int MaxConcurrentShardRequests *int PreFilterShardSize *int RestTotalHitsAsInt *bool + Routing []string SearchType string TypedKeys *bool @@ -108,10 +114,34 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R params = make(map[string]string) + if r.AllowNoIndices != nil { + params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices) + } + if r.CcsMinimizeRoundtrips != nil { params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips) } + if r.ExpandWildcards != "" { + params["expand_wildcards"] = r.ExpandWildcards + } + + if r.IgnoreThrottled != nil { + params["ignore_throttled"] = strconv.FormatBool(*r.IgnoreThrottled) + } + + if r.IgnoreUnavailable != nil { + params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable) + } + + if r.IncludeNamedQueriesScore != nil { + params["include_named_queries_score"] = strconv.FormatBool(*r.IncludeNamedQueriesScore) + } + + if len(r.Index) > 0 { + params["index"] = strings.Join(r.Index, ",") + } + if r.MaxConcurrentSearches != nil { params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10) } @@ -128,6 +158,10 @@ func (r MsearchRequest) Do(providedCtx context.Context, transport Transport) (*R params["rest_total_hits_as_int"] = strconv.FormatBool(*r.RestTotalHitsAsInt) } + if len(r.Routing) > 0 { + params["routing"] = strings.Join(r.Routing, ",") + } + if r.SearchType != "" { params["search_type"] = r.SearchType } @@ -228,6 +262,13 @@ func (f Msearch) WithIndex(v ...string) func(*MsearchRequest) { } } +// WithAllowNoIndices - whether to ignore if a wildcard indices expression resolves into no concrete indices. (this includes `_all` string or when no indices have been specified). +func (f Msearch) WithAllowNoIndices(v bool) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.AllowNoIndices = &v + } +} + // WithCcsMinimizeRoundtrips - indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. func (f Msearch) WithCcsMinimizeRoundtrips(v bool) func(*MsearchRequest) { return func(r *MsearchRequest) { @@ -235,6 +276,34 @@ func (f Msearch) WithCcsMinimizeRoundtrips(v bool) func(*MsearchRequest) { } } +// WithExpandWildcards - whether to expand wildcard expression to concrete indices that are open, closed or both.. +func (f Msearch) WithExpandWildcards(v string) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.ExpandWildcards = v + } +} + +// WithIgnoreThrottled - whether specified concrete, expanded or aliased indices should be ignored when throttled. +func (f Msearch) WithIgnoreThrottled(v bool) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.IgnoreThrottled = &v + } +} + +// WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed). +func (f Msearch) WithIgnoreUnavailable(v bool) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.IgnoreUnavailable = &v + } +} + +// WithIncludeNamedQueriesScore - indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false). +func (f Msearch) WithIncludeNamedQueriesScore(v bool) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.IncludeNamedQueriesScore = &v + } +} + // WithMaxConcurrentSearches - controls the maximum number of concurrent searches the multi search api will execute. func (f Msearch) WithMaxConcurrentSearches(v int) func(*MsearchRequest) { return func(r *MsearchRequest) { @@ -263,6 +332,13 @@ func (f Msearch) WithRestTotalHitsAsInt(v bool) func(*MsearchRequest) { } } +// WithRouting - a list of specific routing values. +func (f Msearch) WithRouting(v ...string) func(*MsearchRequest) { + return func(r *MsearchRequest) { + r.Routing = v + } +} + // WithSearchType - search operation type. func (f Msearch) WithSearchType(v string) func(*MsearchRequest) { return func(r *MsearchRequest) { diff --git a/esapi/api.reindex.go b/esapi/api.reindex.go index df2d30ad20..5e547445db 100644 --- a/esapi/api.reindex.go +++ b/esapi/api.reindex.go @@ -60,6 +60,7 @@ type ReindexRequest struct { MaxDocs *int Refresh *bool RequestsPerSecond *int + RequireAlias *bool Scroll time.Duration Slices interface{} Timeout time.Duration @@ -115,6 +116,10 @@ func (r ReindexRequest) Do(providedCtx context.Context, transport Transport) (*R params["requests_per_second"] = strconv.FormatInt(int64(*r.RequestsPerSecond), 10) } + if r.RequireAlias != nil { + params["require_alias"] = strconv.FormatBool(*r.RequireAlias) + } + if r.Scroll != 0 { params["scroll"] = formatDuration(r.Scroll) } @@ -241,6 +246,13 @@ func (f Reindex) WithRequestsPerSecond(v int) func(*ReindexRequest) { } } +// WithRequireAlias - when true, requires destination to be an alias.. +func (f Reindex) WithRequireAlias(v bool) func(*ReindexRequest) { + return func(r *ReindexRequest) { + r.RequireAlias = &v + } +} + // WithScroll - control how long to keep the search context alive. func (f Reindex) WithScroll(v time.Duration) func(*ReindexRequest) { return func(r *ReindexRequest) { diff --git a/esapi/api.search_mvt.go b/esapi/api.search_mvt.go index 758540c4a7..5215555335 100644 --- a/esapi/api.search_mvt.go +++ b/esapi/api.search_mvt.go @@ -66,6 +66,7 @@ type SearchMvtRequest struct { ExactBounds *bool Extent *int + GridAgg string GridPrecision *int GridType string Size *int @@ -156,6 +157,10 @@ func (r SearchMvtRequest) Do(providedCtx context.Context, transport Transport) ( params["extent"] = strconv.FormatInt(int64(*r.Extent), 10) } + if r.GridAgg != "" { + params["grid_agg"] = r.GridAgg + } + if r.GridPrecision != nil { params["grid_precision"] = strconv.FormatInt(int64(*r.GridPrecision), 10) } @@ -282,6 +287,13 @@ func (f SearchMvt) WithExtent(v int) func(*SearchMvtRequest) { } } +// WithGridAgg - aggregation used to create a grid for `field`.. +func (f SearchMvt) WithGridAgg(v string) func(*SearchMvtRequest) { + return func(r *SearchMvtRequest) { + r.GridAgg = v + } +} + // WithGridPrecision - additional zoom levels available through the aggs layer. accepts 0-8.. func (f SearchMvt) WithGridPrecision(v int) func(*SearchMvtRequest) { return func(r *SearchMvtRequest) { diff --git a/esapi/api.snapshot.repository_analyze.go b/esapi/api.snapshot.repository_analyze.go index 24ce24d78c..ec43f6b522 100644 --- a/esapi/api.snapshot.repository_analyze.go +++ b/esapi/api.snapshot.repository_analyze.go @@ -53,17 +53,18 @@ type SnapshotRepositoryAnalyze func(repository string, o ...func(*SnapshotReposi type SnapshotRepositoryAnalyzeRequest struct { Repository string - BlobCount *int - Concurrency *int - Detailed *bool - EarlyReadNodeCount *int - MaxBlobSize string - MaxTotalDataSize string - RareActionProbability *int - RarelyAbortWrites *bool - ReadNodeCount *int - Seed *int - Timeout time.Duration + BlobCount *int + Concurrency *int + Detailed *bool + EarlyReadNodeCount *int + MaxBlobSize string + MaxTotalDataSize string + RareActionProbability *int + RarelyAbortWrites *bool + ReadNodeCount *int + RegisterOperationCount *int + Seed *int + Timeout time.Duration Pretty bool Human bool @@ -146,6 +147,10 @@ func (r SnapshotRepositoryAnalyzeRequest) Do(providedCtx context.Context, transp params["read_node_count"] = strconv.FormatInt(int64(*r.ReadNodeCount), 10) } + if r.RegisterOperationCount != nil { + params["register_operation_count"] = strconv.FormatInt(int64(*r.RegisterOperationCount), 10) + } + if r.Seed != nil { params["seed"] = strconv.FormatInt(int64(*r.Seed), 10) } @@ -295,6 +300,13 @@ func (f SnapshotRepositoryAnalyze) WithReadNodeCount(v int) func(*SnapshotReposi } } +// WithRegisterOperationCount - the minimum number of linearizable register operations to perform in total. defaults to 10.. +func (f SnapshotRepositoryAnalyze) WithRegisterOperationCount(v int) func(*SnapshotRepositoryAnalyzeRequest) { + return func(r *SnapshotRepositoryAnalyzeRequest) { + r.RegisterOperationCount = &v + } +} + // WithSeed - seed for the random number generator used to create the test workload. defaults to a random value.. func (f SnapshotRepositoryAnalyze) WithSeed(v int) func(*SnapshotRepositoryAnalyzeRequest) { return func(r *SnapshotRepositoryAnalyzeRequest) { diff --git a/esapi/api.xpack.eql.search.go b/esapi/api.xpack.eql.search.go index 94e8973a89..73648d467a 100644 --- a/esapi/api.xpack.eql.search.go +++ b/esapi/api.xpack.eql.search.go @@ -56,8 +56,12 @@ type EqlSearchRequest struct { Body io.Reader + AllowNoIndices *bool AllowPartialSearchResults *bool AllowPartialSequenceResults *bool + CcsMinimizeRoundtrips *bool + ExpandWildcards string + IgnoreUnavailable *bool KeepAlive time.Duration KeepOnCompletion *bool WaitForCompletionTimeout time.Duration @@ -107,6 +111,10 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( params = make(map[string]string) + if r.AllowNoIndices != nil { + params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices) + } + if r.AllowPartialSearchResults != nil { params["allow_partial_search_results"] = strconv.FormatBool(*r.AllowPartialSearchResults) } @@ -115,6 +123,18 @@ func (r EqlSearchRequest) Do(providedCtx context.Context, transport Transport) ( params["allow_partial_sequence_results"] = strconv.FormatBool(*r.AllowPartialSequenceResults) } + if r.CcsMinimizeRoundtrips != nil { + params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips) + } + + if r.ExpandWildcards != "" { + params["expand_wildcards"] = r.ExpandWildcards + } + + if r.IgnoreUnavailable != nil { + params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable) + } + if r.KeepAlive != 0 { params["keep_alive"] = formatDuration(r.KeepAlive) } @@ -212,6 +232,13 @@ func (f EqlSearch) WithContext(v context.Context) func(*EqlSearchRequest) { } } +// WithAllowNoIndices - whether to ignore if a wildcard indices expression resolves into no concrete indices. (this includes `_all` string or when no indices have been specified). +func (f EqlSearch) WithAllowNoIndices(v bool) func(*EqlSearchRequest) { + return func(r *EqlSearchRequest) { + r.AllowNoIndices = &v + } +} + // WithAllowPartialSearchResults - control whether the query should keep running in case of shard failures, and return partial results. func (f EqlSearch) WithAllowPartialSearchResults(v bool) func(*EqlSearchRequest) { return func(r *EqlSearchRequest) { @@ -226,6 +253,27 @@ func (f EqlSearch) WithAllowPartialSequenceResults(v bool) func(*EqlSearchReques } } +// WithCcsMinimizeRoundtrips - indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. +func (f EqlSearch) WithCcsMinimizeRoundtrips(v bool) func(*EqlSearchRequest) { + return func(r *EqlSearchRequest) { + r.CcsMinimizeRoundtrips = &v + } +} + +// WithExpandWildcards - whether to expand wildcard expression to concrete indices that are open, closed or both.. +func (f EqlSearch) WithExpandWildcards(v string) func(*EqlSearchRequest) { + return func(r *EqlSearchRequest) { + r.ExpandWildcards = v + } +} + +// WithIgnoreUnavailable - whether specified concrete indices should be ignored when unavailable (missing or closed). +func (f EqlSearch) WithIgnoreUnavailable(v bool) func(*EqlSearchRequest) { + return func(r *EqlSearchRequest) { + r.IgnoreUnavailable = &v + } +} + // WithKeepAlive - update the time interval in which the results (partial or final) for this search will be available. func (f EqlSearch) WithKeepAlive(v time.Duration) func(*EqlSearchRequest) { return func(r *EqlSearchRequest) { diff --git a/esapi/api.xpack.open_point_in_time.go b/esapi/api.xpack.open_point_in_time.go index 43b81ce006..c2d98cba46 100644 --- a/esapi/api.xpack.open_point_in_time.go +++ b/esapi/api.xpack.open_point_in_time.go @@ -56,12 +56,13 @@ type OpenPointInTimeRequest struct { Body io.Reader - AllowPartialSearchResults *bool - ExpandWildcards string - IgnoreUnavailable *bool - KeepAlive string - Preference string - Routing string + AllowPartialSearchResults *bool + ExpandWildcards string + IgnoreUnavailable *bool + KeepAlive string + MaxConcurrentShardRequests *int + Preference string + Routing string Pretty bool Human bool @@ -126,6 +127,10 @@ func (r OpenPointInTimeRequest) Do(providedCtx context.Context, transport Transp params["keep_alive"] = r.KeepAlive } + if r.MaxConcurrentShardRequests != nil { + params["max_concurrent_shard_requests"] = strconv.FormatInt(int64(*r.MaxConcurrentShardRequests), 10) + } + if r.Preference != "" { params["preference"] = r.Preference } @@ -254,6 +259,13 @@ func (f OpenPointInTime) WithKeepAlive(v string) func(*OpenPointInTimeRequest) { } } +// WithMaxConcurrentShardRequests - the number of concurrent shard requests per node executed concurrently when opening this point-in-time. this value should be used to limit the impact of opening the point-in-time on the cluster. +func (f OpenPointInTime) WithMaxConcurrentShardRequests(v int) func(*OpenPointInTimeRequest) { + return func(r *OpenPointInTimeRequest) { + r.MaxConcurrentShardRequests = &v + } +} + // WithPreference - specify the node or shard the operation should be performed on (default: random). func (f OpenPointInTime) WithPreference(v string) func(*OpenPointInTimeRequest) { return func(r *OpenPointInTimeRequest) { diff --git a/esapi/api.xpack.searchable_snapshots.clear_cache.go b/esapi/api.xpack.searchable_snapshots.clear_cache.go index af7bce81f7..a44dc26003 100644 --- a/esapi/api.xpack.searchable_snapshots.clear_cache.go +++ b/esapi/api.xpack.searchable_snapshots.clear_cache.go @@ -119,10 +119,6 @@ func (r SearchableSnapshotsClearCacheRequest) Do(providedCtx context.Context, tr params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable) } - if len(r.Index) > 0 { - params["index"] = strings.Join(r.Index, ",") - } - if r.Pretty { params["pretty"] = "true" } diff --git a/esapi/api.xpack.text_structure.find_field_structure.go b/esapi/api.xpack.text_structure.find_field_structure.go index 1e910e08db..94f3304354 100644 --- a/esapi/api.xpack.text_structure.find_field_structure.go +++ b/esapi/api.xpack.text_structure.find_field_structure.go @@ -47,7 +47,7 @@ func newTextStructureFindFieldStructureFunc(t Transport) TextStructureFindFieldS // TextStructureFindFieldStructure - Finds the structure of a text field in an index. // // See full documentation at https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html. -type TextStructureFindFieldStructure func(field string, index string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) +type TextStructureFindFieldStructure func(index string, field string, o ...func(*TextStructureFindFieldStructureRequest)) (*Response, error) // TextStructureFindFieldStructureRequest configures the Text Structure Find Field Structure API request. type TextStructureFindFieldStructureRequest struct { diff --git a/internal/build/cmd/generate/commands/gentests/generator.go b/internal/build/cmd/generate/commands/gentests/generator.go index 766ffafac0..ebb6a3b2e8 100644 --- a/internal/build/cmd/generate/commands/gentests/generator.go +++ b/internal/build/cmd/generate/commands/gentests/generator.go @@ -902,6 +902,15 @@ func (g *Generator) genSteps(t Test) { if !t.Steps.ContainsAssertion() && !t.Steps.ContainsCatch() && !t.Steps.ContainsStash() { skipBody = true } + + if t.Steps.ContainsCallToEndpoint("knn_search") { + t.Skip = true + t.SkipInfo = "knn_search is not supported anymore" + g.w("\t// Skipping test because knn_search is not supported anymore\n") + g.w("\tt.SkipNow()\n\n") + return + } + g.genVarSection(t, skipBody) for _, step := range t.Steps { diff --git a/internal/build/cmd/generate/commands/gentests/model.go b/internal/build/cmd/generate/commands/gentests/model.go index e1f7eded8b..de28bc2ebb 100644 --- a/internal/build/cmd/generate/commands/gentests/model.go +++ b/internal/build/cmd/generate/commands/gentests/model.go @@ -365,6 +365,18 @@ func (s Steps) ContainsStash(keys ...string) bool { return false } +// ContainsCallToEndpoint returns true when the set of steps contains a call to an endpoint. +func (s Steps) ContainsCallToEndpoint(endpoint string) bool { + for _, step := range s { + if a, ok := step.(Action); ok { + if a.Method() == utils.NameToGo(endpoint) { + return true + } + } + } + return false +} + // Method returns the API method name for the action. func (a Action) Method() string { return utils.NameToGo(a.method) diff --git a/internal/build/cmd/generate/commands/gentests/skips.go b/internal/build/cmd/generate/commands/gentests/skips.go index 141d0aacb2..d184ae19f7 100644 --- a/internal/build/cmd/generate/commands/gentests/skips.go +++ b/internal/build/cmd/generate/commands/gentests/skips.go @@ -52,6 +52,7 @@ var skipFiles = []string{ "indices.stats/50_disk_usage.yml", // Needs a replacement mechanism implementation "indices.stats/60_field_usage.yml", // Needs a replacement mechanism implementation "indices.stats/100_search_idle.yml", // incompatible maps of array + "indices.stats/80_search_load.yml", "eql/10_basic.yml", "field_caps/50_fieldtype_filter.yml", // Incompatible test, need handling for double escaping keys with dots "aggregations/variable_width_histogram.yml", @@ -68,6 +69,7 @@ var skipFiles = []string{ "deprecation/10_basic.yml", // incompatible test generation "search/520_fetch_fields.yml", // disabled for inconsistency "search.vectors/90_sparse_vector.yml", + "search.vectors/220_dense_vector_node_index_stats.yml", "indices.create/21_synthetic_source_stored.yml", "indices.create/20_synthetic_source.yml", "indices.recovery/20_synthetic_source.yml", @@ -76,6 +78,10 @@ var skipFiles = []string{ "search/600_flattened_ignore_above.yml", "search/540_ignore_above_synthetic_source.yml", "update/100_synthetic_source.yml", + "tsdb/160_nested_fields.yml", + "tsdb/90_unsupported_operations.yml", + ".*inference/.*.yml", // incompatible inference tests + ".*mustache/.*.yml", // incompatible mustache tests } // TODO: Comments into descriptions for `Skip()` @@ -427,6 +433,10 @@ data_stream/10_basic.yml: - Create data stream - Create data stream with invalid name - append-only writes to backing indices prohibited + - Create data stream with failure store + - Get data stream api check existence of replicated field + - Get data stream api check existence of allow_custom_routing field + - Create data stream with match all template # The matcher like 'indices.0.aliases.0' points to internal index data_stream/80_resolve_index_data_streams.yml: @@ -453,6 +463,15 @@ data_stream/90_reindex.yml: data_streams/10_data_stream_resolvability.yml: - Verify data stream resolvability in ILM remove policy API +data_stream/230_data_stream_options.yml: + - Test partially resetting failure store options in template composition + +data_stream/240_data_stream_settings.yml: + - Test single data stream + - Test dry run + - Test null out settings + - Test null out settings component templates only + # Error: constant 9223372036854775808 overflows int (https://play.golang.org/p/7pUdz-_Pdom) unsigned_long/10_basic.yml: unsigned_long/20_null_value.yml: @@ -559,6 +578,9 @@ search/140_pre_filter_search_shards.yml: health/10_usage.yml: - Usage stats on the health API +health/40_diagnosis.yml: + - Diagnosis + esql/10_basic.yml: - Test Mixed Input Params @@ -627,9 +649,20 @@ search.suggest/20_phrase.yml: migrate/30_create_from.yml: - Test create_from with remove_index_blocks default of true +#unsupported vector searches +search.vectors/41_knn_search_bbq_hnsw.yml: + - Test index configured rescore vector updateable and settable to 0 +search.vectors/41_knn_search_byte_quantized.yml: + - Test index configured rescore vector updateable and settable to 0 +search.vectors/46_knn_search_bbq_ivf.yml: + - Test index configured rescore vector updateable and settable to 0 +search.vectors/41_knn_search_half_byte_quantized.yml: + - Test index configured rescore vector updateable and settable to 0 + tsdb/25_id_generation.yml: - delete over _bulk + tsdb/90_unsupported_operations.yml: - index with routing over _bulk - update over _bulk diff --git a/internal/testing/e2e/elasticsearch_integration_test.go b/internal/testing/e2e/elasticsearch_integration_test.go index e29d78d55f..90b84cb800 100644 --- a/internal/testing/e2e/elasticsearch_integration_test.go +++ b/internal/testing/e2e/elasticsearch_integration_test.go @@ -26,7 +26,6 @@ import ( "crypto/tls" "crypto/x509" "encoding/json" - "errors" "fmt" "log" "net" @@ -332,9 +331,9 @@ func TestElasticsearchIntegration(t *testing.T) { } // Same faulty index name with error handling - _, err = es.Get("non-existent-index", "9999").Do(context.Background()) - if !errors.As(err, &types.ElasticsearchError{}) && !errors.Is(err, &types.ElasticsearchError{Status: 404}) { - t.Fatalf("expected ElasticsearchError, got: %v", err) + indexget, err := es.Get("non-existent-index", "9999").Do(context.Background()) + if indexget.Found == true { + t.Fatalf("expected Found to be false, got: %v", indexget) } // Simple search matching name diff --git a/internal/version/version.go b/internal/version/version.go index 502415de9c..7e193e18fe 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -18,4 +18,4 @@ package version // Client returns the client version as a string. -const Client = "9.0.0-SNAPSHOT" +const Client = "9.0.1-SNAPSHOT" diff --git a/typedapi/api._.go b/typedapi/api._.go index ed43f9ff99..6190d29596 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package typedapi @@ -566,7983 +566,672 @@ import ( ) type AsyncSearch struct { - // Delete an async search. - // - // If the asynchronous search is still running, it is cancelled. - // Otherwise, the saved search results are deleted. - // If the Elasticsearch security features are enabled, the deletion of a - // specific async search is restricted to: the authenticated user that submitted - // the original search request; users that have the `cancel_task` cluster - // privilege. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit Delete async_search_delete.NewDelete - // Get async search results. - // - // Retrieve the results of a previously submitted asynchronous search request. - // If the Elasticsearch security features are enabled, access to the results of - // a specific async search is restricted to the user or API key that submitted - // it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit - Get async_search_get.NewGet - // Get the async search status. - // - // Get the status of a previously submitted async search request given its - // identifier, without retrieving search results. - // If the Elasticsearch security features are enabled, the access to the status - // of a specific async search is restricted to: - // - // * The user or API key that submitted the original async search request. - // * Users that have the `monitor` cluster privilege or greater privileges. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit + Get async_search_get.NewGet Status async_search_status.NewStatus - // Run an async search. - // - // When the primary sort of the results is an indexed field, shards get sorted - // based on minimum and maximum value that they hold for that field. Partial - // results become available following the sort criteria that was requested. - // - // Warning: Asynchronous search does not support scroll or search requests that - // include only the suggest section. - // - // By default, Elasticsearch does not allow you to store an async search - // response larger than 10Mb and an attempt to do this results in an error. - // The maximum allowed size for a stored async search response can be set by - // changing the `search.max_async_search_response_size` cluster level setting. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit Submit async_search_submit.NewSubmit } type Autoscaling struct { - // Delete an autoscaling policy. - // - // NOTE: This feature is designed for indirect use by Elasticsearch Service, - // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-delete-autoscaling-policy DeleteAutoscalingPolicy autoscaling_delete_autoscaling_policy.NewDeleteAutoscalingPolicy - // Get the autoscaling capacity. - // - // NOTE: This feature is designed for indirect use by Elasticsearch Service, - // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // - // This API gets the current autoscaling capacity based on the configured - // autoscaling policy. - // It will return information to size the cluster appropriately to the current - // workload. - // - // The `required_capacity` is calculated as the maximum of the - // `required_capacity` result of all individual deciders that are enabled for - // the policy. - // - // The operator should verify that the `current_nodes` match the operator’s - // knowledge of the cluster to avoid making autoscaling decisions based on stale - // or incomplete information. - // - // The response contains decider-specific information you can use to diagnose - // how and why autoscaling determined a certain capacity was required. - // This information is provided for diagnosis only. - // Do not use this information to make autoscaling decisions. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-get-autoscaling-capacity - GetAutoscalingCapacity autoscaling_get_autoscaling_capacity.NewGetAutoscalingCapacity - // Get an autoscaling policy. - // - // NOTE: This feature is designed for indirect use by Elasticsearch Service, - // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-get-autoscaling-capacity - GetAutoscalingPolicy autoscaling_get_autoscaling_policy.NewGetAutoscalingPolicy - // Create or update an autoscaling policy. - // - // NOTE: This feature is designed for indirect use by Elasticsearch Service, - // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-autoscaling-put-autoscaling-policy - PutAutoscalingPolicy autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicy + GetAutoscalingCapacity autoscaling_get_autoscaling_capacity.NewGetAutoscalingCapacity + GetAutoscalingPolicy autoscaling_get_autoscaling_policy.NewGetAutoscalingPolicy + PutAutoscalingPolicy autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicy } type Capabilities struct { - // Checks if the specified combination of method, API, parameters, and arbitrary - // capabilities are supported - // https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities Capabilities capabilities.NewCapabilities } type Cat struct { - // Get aliases. - // - // Get the cluster's index aliases, including filter and routing information. - // This API does not return data stream aliases. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the command - // line or the Kibana console. They are not intended for use by applications. - // For application consumption, use the aliases API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-aliases - Aliases cat_aliases.NewAliases - // Get shard allocation information. - // - // Get a snapshot of the number of shards allocated to each data node and their - // disk space. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-allocation - Allocation cat_allocation.NewAllocation - // Get component templates. - // - // Get information about component templates in a cluster. - // Component templates are building blocks for constructing index templates that - // specify index mappings, settings, and aliases. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the command - // line or Kibana console. - // They are not intended for use by applications. For application consumption, - // use the get component template API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-component-templates - ComponentTemplates cat_component_templates.NewComponentTemplates - // Get a document count. - // - // Get quick access to a document count for a data stream, an index, or an - // entire cluster. - // The document count only includes live documents, not deleted documents which - // have not yet been removed by the merge process. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the command - // line or Kibana console. - // They are not intended for use by applications. For application consumption, - // use the count API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-count - Count cat_count.NewCount - // Get field data cache information. - // - // Get the amount of heap memory currently used by the field data cache on every - // data node in the cluster. - // - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. - // They are not intended for use by applications. For application consumption, - // use the nodes stats API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-fielddata - Fielddata cat_fielddata.NewFielddata - // Get the cluster health status. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the command - // line or Kibana console. - // They are not intended for use by applications. For application consumption, - // use the cluster health API. - // This API is often used to check malfunctioning clusters. - // To help you track cluster health alongside log files and alerting systems, - // the API returns timestamps in two formats: - // `HH:MM:SS`, which is human-readable but includes no date information; - // `Unix epoch time`, which is machine-sortable and includes date information. - // The latter format is useful for cluster recoveries that take multiple days. - // You can use the cat health API to verify cluster health across multiple - // nodes. - // You also can use the API to track the recovery of a large cluster over a - // longer period of time. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-health - Health cat_health.NewHealth - // Get CAT help. - // - // Get help for the CAT APIs. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cat - Help cat_help.NewHelp - // Get index information. - // - // Get high-level information about indices in a cluster, including backing - // indices for data streams. - // - // Use this request to get the following information for each index in a - // cluster: - // - shard count - // - document count - // - deleted document count - // - primary store size - // - total store size of all shards, including shard replicas - // - // These metrics are retrieved directly from Lucene, which Elasticsearch uses - // internally to power indexing and search. As a result, all document counts - // include hidden nested documents. - // To get an accurate count of Elasticsearch documents, use the cat count or - // count APIs. - // - // CAT APIs are only intended for human consumption using the command line or - // Kibana console. - // They are not intended for use by applications. For application consumption, - // use an index endpoint. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-indices - Indices cat_indices.NewIndices - // Get master node information. - // - // Get information about the master node, including the ID, bound IP address, - // and name. - // - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the nodes info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-master - Master cat_master.NewMaster - // Get data frame analytics jobs. - // - // Get configuration and usage information about data frame analytics jobs. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the Kibana - // console or command line. They are not intended for use by applications. For - // application consumption, use the get data frame analytics jobs statistics - // API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-data-frame-analytics + Aliases cat_aliases.NewAliases + Allocation cat_allocation.NewAllocation + ComponentTemplates cat_component_templates.NewComponentTemplates + Count cat_count.NewCount + Fielddata cat_fielddata.NewFielddata + Health cat_health.NewHealth + Help cat_help.NewHelp + Indices cat_indices.NewIndices + Master cat_master.NewMaster MlDataFrameAnalytics cat_ml_data_frame_analytics.NewMlDataFrameAnalytics - // Get datafeeds. - // - // Get configuration and usage information about datafeeds. - // This API returns a maximum of 10,000 datafeeds. - // If the Elasticsearch security features are enabled, you must have - // `monitor_ml`, `monitor`, `manage_ml`, or `manage` - // cluster privileges to use this API. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the Kibana - // console or command line. They are not intended for use by applications. For - // application consumption, use the get datafeed statistics API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-datafeeds - MlDatafeeds cat_ml_datafeeds.NewMlDatafeeds - // Get anomaly detection jobs. - // - // Get configuration and usage information for anomaly detection jobs. - // This API returns a maximum of 10,000 jobs. - // If the Elasticsearch security features are enabled, you must have - // `monitor_ml`, - // `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the Kibana - // console or command line. They are not intended for use by applications. For - // application consumption, use the get anomaly detection job statistics API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-jobs - MlJobs cat_ml_jobs.NewMlJobs - // Get trained models. - // - // Get configuration and usage information about inference trained models. - // - // IMPORTANT: CAT APIs are only intended for human consumption using the Kibana - // console or command line. They are not intended for use by applications. For - // application consumption, use the get trained models statistics API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-trained-models - MlTrainedModels cat_ml_trained_models.NewMlTrainedModels - // Get node attribute information. - // - // Get information about custom node attributes. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the nodes info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodeattrs - Nodeattrs cat_nodeattrs.NewNodeattrs - // Get node information. - // - // Get information about the nodes in a cluster. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the nodes info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodes - Nodes cat_nodes.NewNodes - // Get pending task information. - // - // Get information about cluster-level changes that have not yet taken effect. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the pending cluster tasks API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-pending-tasks - PendingTasks cat_pending_tasks.NewPendingTasks - // Get plugin information. - // - // Get a list of plugins running on each node of a cluster. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the nodes info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-plugins - Plugins cat_plugins.NewPlugins - // Get shard recovery information. - // - // Get information about ongoing and completed shard recoveries. - // Shard recovery is the process of initializing a shard copy, such as restoring - // a primary shard from a snapshot or syncing a replica shard from a primary - // shard. When a shard recovery completes, the recovered shard is available for - // search and indexing. - // For data streams, the API returns information about the stream’s backing - // indices. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the index recovery API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-recovery - Recovery cat_recovery.NewRecovery - // Get snapshot repository information. - // - // Get a list of snapshot repositories for a cluster. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the get snapshot repository API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-repositories - Repositories cat_repositories.NewRepositories - // Get segment information. - // - // Get low-level information about the Lucene segments in index shards. - // For data streams, the API returns information about the backing indices. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the index segments API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-segments - Segments cat_segments.NewSegments - // Get shard information. - // - // Get information about the shards in a cluster. - // For data streams, the API returns information about the backing indices. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-shards - Shards cat_shards.NewShards - // Get snapshot information. - // - // Get information about the snapshots stored in one or more repositories. - // A snapshot is a backup of an index or running Elasticsearch cluster. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the get snapshot API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-snapshots - Snapshots cat_snapshots.NewSnapshots - // Get task information. - // - // Get information about tasks currently running in the cluster. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the task management API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-tasks - Tasks cat_tasks.NewTasks - // Get index template information. - // - // Get information about the index templates in a cluster. - // You can use index templates to apply index settings and field mappings to new - // indices at creation. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the get index template API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-templates - Templates cat_templates.NewTemplates - // Get thread pool statistics. - // - // Get thread pool statistics for each node in a cluster. - // Returned information includes all built-in thread pools and custom thread - // pools. - // IMPORTANT: cat APIs are only intended for human consumption using the command - // line or Kibana console. They are not intended for use by applications. For - // application consumption, use the nodes info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-thread-pool - ThreadPool cat_thread_pool.NewThreadPool - // Get transform information. - // - // Get configuration and usage information about transforms. - // - // CAT APIs are only intended for human consumption using the Kibana - // console or command line. They are not intended for use by applications. For - // application consumption, use the get transform statistics API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-transforms - Transforms cat_transforms.NewTransforms + MlDatafeeds cat_ml_datafeeds.NewMlDatafeeds + MlJobs cat_ml_jobs.NewMlJobs + MlTrainedModels cat_ml_trained_models.NewMlTrainedModels + Nodeattrs cat_nodeattrs.NewNodeattrs + Nodes cat_nodes.NewNodes + PendingTasks cat_pending_tasks.NewPendingTasks + Plugins cat_plugins.NewPlugins + Recovery cat_recovery.NewRecovery + Repositories cat_repositories.NewRepositories + Segments cat_segments.NewSegments + Shards cat_shards.NewShards + Snapshots cat_snapshots.NewSnapshots + Tasks cat_tasks.NewTasks + Templates cat_templates.NewTemplates + ThreadPool cat_thread_pool.NewThreadPool + Transforms cat_transforms.NewTransforms } type Ccr struct { - // Delete auto-follow patterns. - // - // Delete a collection of cross-cluster replication auto-follow patterns. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-delete-auto-follow-pattern DeleteAutoFollowPattern ccr_delete_auto_follow_pattern.NewDeleteAutoFollowPattern - // Create a follower. - // Create a cross-cluster replication follower index that follows a specific - // leader index. - // When the API returns, the follower index exists and cross-cluster replication - // starts replicating operations from the leader index to the follower index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow - Follow ccr_follow.NewFollow - // Get follower information. - // - // Get information about all cross-cluster replication follower indices. - // For example, the results include follower index names, leader index names, - // replication options, and whether the follower indices are active or paused. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-info - FollowInfo ccr_follow_info.NewFollowInfo - // Get follower stats. - // - // Get cross-cluster replication follower stats. - // The API returns shard-level stats about the "following tasks" associated with - // each shard for the specified indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-stats - FollowStats ccr_follow_stats.NewFollowStats - // Forget a follower. - // Remove the cross-cluster replication follower retention leases from the - // leader. - // - // A following index takes out retention leases on its leader index. - // These leases are used to increase the likelihood that the shards of the - // leader index retain the history of operations that the shards of the - // following index need to run replication. - // When a follower index is converted to a regular index by the unfollow API - // (either by directly calling the API or by index lifecycle management tasks), - // these leases are removed. - // However, removal of the leases can fail, for example when the remote cluster - // containing the leader index is unavailable. - // While the leases will eventually expire on their own, their extended - // existence can cause the leader index to hold more history than necessary and - // prevent index lifecycle management from performing some operations on the - // leader index. - // This API exists to enable manually removing the leases when the unfollow API - // is unable to do so. - // - // NOTE: This API does not stop replication by a following index. If you use - // this API with a follower index that is still actively following, the - // following index will add back retention leases on the leader. - // The only purpose of this API is to handle the case of failure to remove the - // following retention leases after the unfollow API is invoked. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-forget-follower - ForgetFollower ccr_forget_follower.NewForgetFollower - // Get auto-follow patterns. - // - // Get cross-cluster replication auto-follow patterns. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-get-auto-follow-pattern-1 - GetAutoFollowPattern ccr_get_auto_follow_pattern.NewGetAutoFollowPattern - // Pause an auto-follow pattern. - // - // Pause a cross-cluster replication auto-follow pattern. - // When the API returns, the auto-follow pattern is inactive. - // New indices that are created on the remote cluster and match the auto-follow - // patterns are ignored. - // - // You can resume auto-following with the resume auto-follow pattern API. - // When it resumes, the auto-follow pattern is active again and automatically - // configures follower indices for newly created indices on the remote cluster - // that match its patterns. - // Remote indices that were created while the pattern was paused will also be - // followed, unless they have been deleted or closed in the interim. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-auto-follow-pattern - PauseAutoFollowPattern ccr_pause_auto_follow_pattern.NewPauseAutoFollowPattern - // Pause a follower. - // - // Pause a cross-cluster replication follower index. - // The follower index will not fetch any additional operations from the leader - // index. - // You can resume following with the resume follower API. - // You can pause and resume a follower index to change the configuration of the - // following task. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-follow - PauseFollow ccr_pause_follow.NewPauseFollow - // Create or update auto-follow patterns. - // Create a collection of cross-cluster replication auto-follow patterns for a - // remote cluster. - // Newly created indices on the remote cluster that match any of the patterns - // are automatically configured as follower indices. - // Indices on the remote cluster that were created before the auto-follow - // pattern was created will not be auto-followed even if they match the pattern. - // - // This API can also be used to update auto-follow patterns. - // NOTE: Follower indices that were configured automatically before updating an - // auto-follow pattern will remain unchanged even if they do not match against - // the new patterns. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-put-auto-follow-pattern - PutAutoFollowPattern ccr_put_auto_follow_pattern.NewPutAutoFollowPattern - // Resume an auto-follow pattern. - // - // Resume a cross-cluster replication auto-follow pattern that was paused. - // The auto-follow pattern will resume configuring following indices for newly - // created indices that match its patterns on the remote cluster. - // Remote indices created while the pattern was paused will also be followed - // unless they have been deleted or closed in the interim. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-resume-auto-follow-pattern + Follow ccr_follow.NewFollow + FollowInfo ccr_follow_info.NewFollowInfo + FollowStats ccr_follow_stats.NewFollowStats + ForgetFollower ccr_forget_follower.NewForgetFollower + GetAutoFollowPattern ccr_get_auto_follow_pattern.NewGetAutoFollowPattern + PauseAutoFollowPattern ccr_pause_auto_follow_pattern.NewPauseAutoFollowPattern + PauseFollow ccr_pause_follow.NewPauseFollow + PutAutoFollowPattern ccr_put_auto_follow_pattern.NewPutAutoFollowPattern ResumeAutoFollowPattern ccr_resume_auto_follow_pattern.NewResumeAutoFollowPattern - // Resume a follower. - // Resume a cross-cluster replication follower index that was paused. - // The follower index could have been paused with the pause follower API. - // Alternatively it could be paused due to replication that cannot be retried - // due to failures during following tasks. - // When this API returns, the follower index will resume fetching operations - // from the leader index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-resume-follow - ResumeFollow ccr_resume_follow.NewResumeFollow - // Get cross-cluster replication stats. - // - // This API returns stats about auto-following and the same shard-level stats as - // the get follower stats API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-stats - Stats ccr_stats.NewStats - // Unfollow an index. - // - // Convert a cross-cluster replication follower index to a regular index. - // The API stops the following task associated with a follower index and removes - // index metadata and settings associated with cross-cluster replication. - // The follower index must be paused and closed before you call the unfollow - // API. - // - // > info - // > Currently cross-cluster replication does not support converting an existing - // regular index to a follower index. Converting a follower index to a regular - // index is an irreversible operation. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-unfollow - Unfollow ccr_unfollow.NewUnfollow + ResumeFollow ccr_resume_follow.NewResumeFollow + Stats ccr_stats.NewStats + Unfollow ccr_unfollow.NewUnfollow } type Cluster struct { - // Explain the shard allocations. - // Get explanations for shard allocations in the cluster. - // For unassigned shards, it provides an explanation for why the shard is - // unassigned. - // For assigned shards, it provides an explanation for why the shard is - // remaining on its current node and has not moved or rebalanced to another - // node. - // This API can be very useful when attempting to diagnose why a shard is - // unassigned or why a shard continues to remain on its current node when you - // might expect otherwise. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-allocation-explain - AllocationExplain cluster_allocation_explain.NewAllocationExplain - // Delete component templates. - // Component templates are building blocks for constructing index templates that - // specify index mappings, settings, and aliases. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template - 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/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions + AllocationExplain cluster_allocation_explain.NewAllocationExplain + DeleteComponentTemplate cluster_delete_component_template.NewDeleteComponentTemplate DeleteVotingConfigExclusions cluster_delete_voting_config_exclusions.NewDeleteVotingConfigExclusions - // Check component templates. - // Returns information about whether a particular component template exists. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template - ExistsComponentTemplate cluster_exists_component_template.NewExistsComponentTemplate - // Get component templates. - // Get information about component templates. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template - GetComponentTemplate cluster_get_component_template.NewGetComponentTemplate - // Get cluster-wide settings. - // By default, it returns only settings that have been explicitly defined. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-get-settings - GetSettings cluster_get_settings.NewGetSettings - // Get the cluster health status. - // - // You can also use the API to get the health status of only specified data - // streams and indices. - // For data streams, the API retrieves the health status of the stream’s backing - // indices. - // - // The cluster health status is: green, yellow or red. - // On the shard level, a red status indicates that the specific shard is not - // allocated in the cluster. Yellow means that the primary shard is allocated - // but replicas are not. Green means that all shards are allocated. - // The index level status is controlled by the worst shard status. - // - // One of the main benefits of the API is the ability to wait until the cluster - // reaches a certain high watermark health level. - // The cluster status is controlled by the worst index status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-health - Health cluster_health.NewHealth - // Get cluster info. - // Returns basic information about the cluster. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-info - Info cluster_info.NewInfo - // Get the pending cluster tasks. - // Get information about cluster-level changes (such as create index, update - // mapping, allocate or fail shard) that have not yet taken effect. - // - // NOTE: This API returns a list of any pending updates to the cluster state. - // These are distinct from the tasks reported by the task management API which - // include periodic tasks and tasks initiated by the user, such as node stats, - // search queries, or create index requests. - // However, if a user-initiated task such as a create index command causes a - // cluster state update, the activity of this task might be reported by both - // task api and pending cluster tasks API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-pending-tasks - PendingTasks cluster_pending_tasks.NewPendingTasks - // Update voting configuration exclusions. - // Update the cluster voting config exclusions by node IDs or node names. - // By default, if there are more than three master-eligible nodes in the cluster - // and you remove fewer than half of the master-eligible nodes in the cluster at - // once, the voting configuration automatically shrinks. - // If you want to shrink the voting configuration to contain fewer than three - // nodes or to remove half or more of the master-eligible nodes in the cluster - // at once, use this API to remove departing nodes from the voting configuration - // manually. - // The API adds an entry for each specified node to the cluster’s voting - // configuration exclusions list. - // It then waits until the cluster has reconfigured its voting configuration to - // exclude the specified nodes. - // - // Clusters should have no voting configuration exclusions in normal operation. - // Once the excluded nodes have stopped, clear the voting configuration - // exclusions with `DELETE /_cluster/voting_config_exclusions`. - // This API waits for the nodes to be fully removed from the cluster before it - // returns. - // If your cluster has voting configuration exclusions for nodes that you no - // longer intend to remove, use `DELETE - // /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the - // voting configuration exclusions without waiting for the nodes to leave the - // cluster. - // - // A response to `POST /_cluster/voting_config_exclusions` with an HTTP status - // code of 200 OK guarantees that the node has been removed from the voting - // configuration and will not be reinstated until the voting configuration - // exclusions are cleared by calling `DELETE - // /_cluster/voting_config_exclusions`. - // If the call to `POST /_cluster/voting_config_exclusions` fails or returns a - // response with an HTTP status code other than 200 OK then the node may not - // have been removed from the voting configuration. - // In that case, you may safely retry the call. - // - // NOTE: Voting exclusions are required only when you remove at least half of - // 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/docs/api/doc/elasticsearch/v9/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 - // specify index mappings, settings, and aliases. - // - // An index template can be composed of multiple component templates. - // To use a component template, specify it in an index template’s `composed_of` - // list. - // Component templates are only applied to new data streams and indices as part - // of a matching index template. - // - // Settings and mappings specified directly in the index template or the create - // index request override any settings or mappings specified in a component - // template. - // - // Component templates are only used during index creation. - // For data streams, this includes data stream creation and the creation of a - // stream’s backing indices. - // Changes to component templates do not affect existing indices, including a - // stream’s backing indices. - // - // You can use C-style `/* *\/` block comments in component templates. - // You can include comments anywhere in the request body except before the - // opening curly bracket. - // - // **Applying component templates** - // - // You cannot directly apply a component template to a data stream or index. - // To be applied, a component template must be included in an index template's - // `composed_of` list. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template - PutComponentTemplate cluster_put_component_template.NewPutComponentTemplate - // Update the cluster settings. - // - // Configure and update dynamic settings on a running cluster. - // You can also configure dynamic settings locally on an unstarted or shut down - // node in `elasticsearch.yml`. - // - // Updates made with this API can be persistent, which apply across cluster - // restarts, or transient, which reset after a cluster restart. - // You can also reset transient or persistent settings by assigning them a null - // value. - // - // If you configure the same setting using multiple methods, Elasticsearch - // applies the settings in following order of precedence: 1) Transient setting; - // 2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting - // value. - // For example, you can apply a transient setting to override a persistent - // setting or `elasticsearch.yml` setting. - // However, a change to an `elasticsearch.yml` setting will not override a - // defined transient or persistent setting. - // - // TIP: In Elastic Cloud, use the user settings feature to configure all cluster - // settings. This method automatically rejects unsafe settings that could break - // your cluster. - // If you run Elasticsearch on your own hardware, use this API to configure - // dynamic cluster settings. - // Only use `elasticsearch.yml` for static cluster settings and node settings. - // The API doesn’t require a restart and ensures a setting’s value is the same - // on all nodes. - // - // WARNING: Transient cluster settings are no longer recommended. Use persistent - // cluster settings instead. - // If a cluster becomes unstable, transient settings can clear unexpectedly, - // resulting in a potentially undesired cluster configuration. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-settings - PutSettings cluster_put_settings.NewPutSettings - // Get remote cluster information. - // - // Get information about configured remote clusters. - // The API returns connection and endpoint information keyed by the configured - // remote cluster alias. - // - // > info - // > This API returns information that reflects current state on the local - // cluster. - // > The `connected` field does not necessarily reflect whether a remote cluster - // is down or unavailable, only whether there is currently an open connection to - // it. - // > Elasticsearch does not spontaneously try to reconnect to a disconnected - // remote cluster. - // > To trigger a reconnection, attempt a cross-cluster search, ES|QL - // cross-cluster search, or try the [resolve cluster - // endpoint](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-remote-info - RemoteInfo cluster_remote_info.NewRemoteInfo - // Reroute the cluster. - // Manually change the allocation of individual shards in the cluster. - // For example, a shard can be moved from one node to another explicitly, an - // allocation can be canceled, and an unassigned shard can be explicitly - // allocated to a specific node. - // - // It is important to note that after processing any reroute commands - // Elasticsearch will perform rebalancing as normal (respecting the values of - // settings such as `cluster.routing.rebalance.enable`) in order to remain in a - // balanced state. - // For example, if the requested allocation includes moving a shard from node1 - // to node2 then this may cause a shard to be moved from node2 back to node1 to - // even things out. - // - // The cluster can be set to disable allocations using the - // `cluster.routing.allocation.enable` setting. - // If allocations are disabled then the only allocations that will be performed - // are explicit ones given using the reroute command, and consequent allocations - // due to rebalancing. - // - // The cluster will attempt to allocate a shard a maximum of - // `index.allocation.max_retries` times in a row (defaults to `5`), before - // giving up and leaving the shard unallocated. - // This scenario can be caused by structural problems such as having an analyzer - // which refers to a stopwords file which doesn’t exist on all nodes. - // - // Once the problem has been corrected, allocation can be manually retried by - // calling the reroute API with the `?retry_failed` URI query parameter, which - // will attempt a single retry round for these shards. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-reroute - Reroute cluster_reroute.NewReroute - // Get the cluster state. - // Get comprehensive information about the state of the cluster. - // - // The cluster state is an internal data structure which keeps track of a - // variety of information needed by every node, including the identity and - // attributes of the other nodes in the cluster; cluster-wide settings; index - // metadata, including the mapping and settings for each index; the location and - // status of every shard copy in the cluster. - // - // The elected master node ensures that every node in the cluster has a copy of - // the same cluster state. - // This API lets you retrieve a representation of this internal state for - // debugging or diagnostic purposes. - // You may need to consult the Elasticsearch source code to determine the - // precise meaning of the response. - // - // By default the API will route requests to the elected master node since this - // node is the authoritative source of cluster states. - // You can also retrieve the cluster state held on the node handling the API - // request by adding the `?local=true` query parameter. - // - // Elasticsearch may need to expend significant effort to compute a response to - // this API in larger clusters, and the response may comprise a very large - // quantity of data. - // If you use this API repeatedly, your cluster may become unstable. - // - // WARNING: The response is a representation of an internal data structure. - // Its format is not subject to the same compatibility guarantees as other more - // stable APIs and may change from version to version. - // Do not query this API using external monitoring tools. - // Instead, obtain the information you require using other more stable cluster - // APIs. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-state - State cluster_state.NewState - // Get cluster statistics. - // Get basic index metrics (shard numbers, store size, memory usage) and - // information about the current nodes that form the cluster (number, roles, os, - // jvm versions, memory usage, cpu and installed plugins). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-stats - Stats cluster_stats.NewStats + ExistsComponentTemplate cluster_exists_component_template.NewExistsComponentTemplate + GetComponentTemplate cluster_get_component_template.NewGetComponentTemplate + GetSettings cluster_get_settings.NewGetSettings + Health cluster_health.NewHealth + Info cluster_info.NewInfo + PendingTasks cluster_pending_tasks.NewPendingTasks + PostVotingConfigExclusions cluster_post_voting_config_exclusions.NewPostVotingConfigExclusions + PutComponentTemplate cluster_put_component_template.NewPutComponentTemplate + PutSettings cluster_put_settings.NewPutSettings + RemoteInfo cluster_remote_info.NewRemoteInfo + Reroute cluster_reroute.NewReroute + State cluster_state.NewState + Stats cluster_stats.NewStats } type Connector struct { - // Check in a connector. - // - // Update the `last_seen` field in the connector and set it to the current - // timestamp. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-check-in - CheckIn connector_check_in.NewCheckIn - // Delete a connector. - // - // Removes a connector and associated sync jobs. - // This is a destructive action that is not recoverable. - // NOTE: This action doesn’t delete any API keys, ingest pipelines, or data - // indices associated with the connector. - // These need to be removed manually. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-delete - Delete connector_delete.NewDelete - // Get a connector. - // - // Get the details about a connector. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-get - Get connector_get.NewGet - // Update the connector last sync stats. - // - // Update the fields related to the last sync of a connector. - // This action is used for analytics and monitoring. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-last-sync - LastSync connector_last_sync.NewLastSync - // Get all connectors. - // - // Get information about all connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-list - List connector_list.NewList - // Create a connector. - // - // Connectors are Elasticsearch integrations that bring content from third-party - // data sources, which can be deployed on Elastic Cloud or hosted on your own - // infrastructure. - // Elastic managed connectors (Native connectors) are a managed service on - // Elastic Cloud. - // Self-managed connectors (Connector clients) are self-managed on your - // infrastructure. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-put - Post connector_post.NewPost - // Create or update a connector. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-put - Put connector_put.NewPut - // Creates a secret for a Connector. - // - SecretPost connector_secret_post.NewSecretPost - // Cancel a connector sync job. - // - // Cancel a connector sync job, which sets the status to cancelling and updates - // `cancellation_requested_at` to the current time. - // The connector service is then responsible for setting the status of connector - // sync jobs to cancelled. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-cancel - SyncJobCancel connector_sync_job_cancel.NewSyncJobCancel - // Check in a connector sync job. - // Check in a connector sync job and set the `last_seen` field to the current - // time before updating it in the internal index. - // - // To sync data using self-managed connectors, you need to deploy the Elastic - // connector service on your own infrastructure. - // This service runs automatically on Elastic Cloud for Elastic managed - // connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in - SyncJobCheckIn connector_sync_job_check_in.NewSyncJobCheckIn - // Claim a connector sync job. - // This action updates the job status to `in_progress` and sets the `last_seen` - // and `started_at` timestamps to the current time. - // Additionally, it can set the `sync_cursor` property for the sync job. - // - // This API is not intended for direct connector management by users. - // It supports the implementation of services that utilize the connector - // protocol to communicate with Elasticsearch. - // - // To sync data using self-managed connectors, you need to deploy the Elastic - // connector service on your own infrastructure. - // This service runs automatically on Elastic Cloud for Elastic managed - // connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-claim - SyncJobClaim connector_sync_job_claim.NewSyncJobClaim - // Delete a connector sync job. - // - // Remove a connector sync job and its associated data. - // This is a destructive action that is not recoverable. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-delete - SyncJobDelete connector_sync_job_delete.NewSyncJobDelete - // Set a connector sync job error. - // Set the `error` field for a connector sync job and set its `status` to - // `error`. - // - // To sync data using self-managed connectors, you need to deploy the Elastic - // connector service on your own infrastructure. - // This service runs automatically on Elastic Cloud for Elastic managed - // connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-error - SyncJobError connector_sync_job_error.NewSyncJobError - // Get a connector sync job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-get - SyncJobGet connector_sync_job_get.NewSyncJobGet - // Get all connector sync jobs. - // - // Get information about all stored connector sync jobs listed by their creation - // date in ascending order. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-list - SyncJobList connector_sync_job_list.NewSyncJobList - // Create a connector sync job. - // - // Create a connector sync job document in the internal index and initialize its - // counters and timestamps with default values. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-post - SyncJobPost connector_sync_job_post.NewSyncJobPost - // Set the connector sync job stats. - // Stats include: `deleted_document_count`, `indexed_document_count`, - // `indexed_document_volume`, and `total_document_count`. - // You can also update `last_seen`. - // This API is mainly used by the connector service for updating sync job - // information. - // - // To sync data using self-managed connectors, you need to deploy the Elastic - // connector service on your own infrastructure. - // This service runs automatically on Elastic Cloud for Elastic managed - // connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-update-stats - SyncJobUpdateStats connector_sync_job_update_stats.NewSyncJobUpdateStats - // Activate the connector draft filter. - // - // Activates the valid draft filtering for a connector. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering - UpdateActiveFiltering connector_update_active_filtering.NewUpdateActiveFiltering - // Update the connector API key ID. - // - // Update the `api_key_id` and `api_key_secret_id` fields of a connector. - // You can specify the ID of the API key used for authorization and the ID of - // the connector secret where the API key is stored. - // The connector secret ID is required only for Elastic managed (native) - // connectors. - // Self-managed connectors (connector clients) do not use this field. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-api-key-id - UpdateApiKeyId connector_update_api_key_id.NewUpdateApiKeyId - // Update the connector configuration. - // - // Update the configuration field in the connector document. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-configuration - UpdateConfiguration connector_update_configuration.NewUpdateConfiguration - // Update the connector error field. - // - // Set the error field for the connector. - // If the error provided in the request body is non-null, the connector’s status - // is updated to error. - // Otherwise, if the error is reset to null, the connector status is updated to - // connected. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-error - UpdateError connector_update_error.NewUpdateError - // Update the connector features. - // Update the connector features in the connector document. - // This API can be used to control the following aspects of a connector: - // - // * document-level security - // * incremental syncs - // * advanced sync rules - // * basic sync rules - // - // Normally, the running connector service automatically manages these features. - // However, you can use this API to override the default behavior. - // - // To sync data using self-managed connectors, you need to deploy the Elastic - // connector service on your own infrastructure. - // This service runs automatically on Elastic Cloud for Elastic managed - // connectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-features - UpdateFeatures connector_update_features.NewUpdateFeatures - // Update the connector filtering. - // - // Update the draft filtering configuration of a connector and marks the draft - // validation state as edited. - // The filtering draft is activated once validated by the running Elastic - // connector service. - // The filtering property is used to configure sync rules (both basic and - // advanced) for a connector. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering - UpdateFiltering connector_update_filtering.NewUpdateFiltering - // Update the connector draft filtering validation. - // - // Update the draft filtering validation info for a connector. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering-validation + CheckIn connector_check_in.NewCheckIn + Delete connector_delete.NewDelete + Get connector_get.NewGet + LastSync connector_last_sync.NewLastSync + List connector_list.NewList + Post connector_post.NewPost + Put connector_put.NewPut + SecretPost connector_secret_post.NewSecretPost + SyncJobCancel connector_sync_job_cancel.NewSyncJobCancel + SyncJobCheckIn connector_sync_job_check_in.NewSyncJobCheckIn + SyncJobClaim connector_sync_job_claim.NewSyncJobClaim + SyncJobDelete connector_sync_job_delete.NewSyncJobDelete + SyncJobError connector_sync_job_error.NewSyncJobError + SyncJobGet connector_sync_job_get.NewSyncJobGet + SyncJobList connector_sync_job_list.NewSyncJobList + SyncJobPost connector_sync_job_post.NewSyncJobPost + SyncJobUpdateStats connector_sync_job_update_stats.NewSyncJobUpdateStats + UpdateActiveFiltering connector_update_active_filtering.NewUpdateActiveFiltering + UpdateApiKeyId connector_update_api_key_id.NewUpdateApiKeyId + UpdateConfiguration connector_update_configuration.NewUpdateConfiguration + UpdateError connector_update_error.NewUpdateError + UpdateFeatures connector_update_features.NewUpdateFeatures + UpdateFiltering connector_update_filtering.NewUpdateFiltering UpdateFilteringValidation connector_update_filtering_validation.NewUpdateFilteringValidation - // Update the connector index name. - // - // Update the `index_name` field of a connector, specifying the index where the - // data ingested by the connector is stored. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-index-name - UpdateIndexName connector_update_index_name.NewUpdateIndexName - // Update the connector name and description. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-name - UpdateName connector_update_name.NewUpdateName - // Update the connector is_native flag. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-native - UpdateNative connector_update_native.NewUpdateNative - // Update the connector pipeline. - // - // When you create a new connector, the configuration of an ingest pipeline is - // populated with default settings. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-pipeline - UpdatePipeline connector_update_pipeline.NewUpdatePipeline - // Update the connector scheduling. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-scheduling - UpdateScheduling connector_update_scheduling.NewUpdateScheduling - // Update the connector service type. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-service-type - UpdateServiceType connector_update_service_type.NewUpdateServiceType - // Update the connector status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-status - UpdateStatus connector_update_status.NewUpdateStatus + UpdateIndexName connector_update_index_name.NewUpdateIndexName + UpdateName connector_update_name.NewUpdateName + UpdateNative connector_update_native.NewUpdateNative + UpdatePipeline connector_update_pipeline.NewUpdatePipeline + UpdateScheduling connector_update_scheduling.NewUpdateScheduling + UpdateServiceType connector_update_service_type.NewUpdateServiceType + UpdateStatus connector_update_status.NewUpdateStatus } type Core struct { - // Bulk index or delete documents. - // Perform multiple `index`, `create`, `delete`, and `update` actions in a - // single request. - // This reduces overhead and can greatly increase indexing speed. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To use the `create` action, you must have the `create_doc`, `create`, - // `index`, or `write` index privilege. Data streams support only the `create` - // action. - // * To use the `index` action, you must have the `create`, `index`, or `write` - // index privilege. - // * To use the `delete` action, you must have the `delete` or `write` index - // privilege. - // * To use the `update` action, you must have the `index` or `write` index - // privilege. - // * To automatically create a data stream or index with a bulk API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // * To make the result of a bulk operation visible to search using the - // `refresh` parameter, you must have the `maintenance` or `manage` index - // privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // The actions are specified in the request body using a newline delimited JSON - // (NDJSON) structure: - // - // ``` - // action_and_meta_data\n - // optional_source\n - // action_and_meta_data\n - // optional_source\n - // .... - // action_and_meta_data\n - // optional_source\n - // ``` - // - // The `index` and `create` actions expect a source on the next line and have - // the same semantics as the `op_type` parameter in the standard index API. - // A `create` action fails if a document with the same ID already exists in the - // target - // An `index` action adds or replaces a document as necessary. - // - // NOTE: Data streams support only the `create` action. - // To update or delete a document in a data stream, you must target the backing - // index containing the document. - // - // An `update` action expects that the partial doc, upsert, and script and its - // options are specified on the next line. - // - // A `delete` action does not expect a source on the next line and has the same - // semantics as the standard delete API. - // - // NOTE: The final line of data must end with a newline character (`\n`). - // Each newline character may be preceded by a carriage return (`\r`). - // When sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header - // of `application/json` or `application/x-ndjson`. - // Because this format uses literal newline characters (`\n`) as delimiters, - // make sure that the JSON actions and sources are not pretty printed. - // - // If you provide a target in the request path, it is used for any actions that - // don't explicitly specify an `_index` argument. - // - // A note on the format: the idea here is to make processing as fast as - // possible. - // As some of the actions are redirected to other shards on other nodes, only - // `action_meta_data` is parsed on the receiving node side. - // - // Client libraries using this protocol should try and strive to do something - // similar on the client side, and reduce buffering as much as possible. - // - // There is no "correct" number of actions to perform in a single bulk request. - // Experiment with different settings to find the optimal size for your - // particular workload. - // Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by - // default so clients must ensure that no request exceeds this size. - // It is not possible to index a single document that exceeds the size limit, so - // you must pre-process any such documents into smaller pieces before sending - // them to Elasticsearch. - // For instance, split documents into pages or chapters before indexing them, or - // store raw binary data in a system outside Elasticsearch and replace the raw - // data with a link to the external system in the documents that you send to - // Elasticsearch. - // - // **Client suppport for bulk requests** - // - // Some of the officially supported clients provide helpers to assist with bulk - // requests and reindexing: - // - // * Go: Check out `esutil.BulkIndexer` - // * Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk` and - // `Search::Elasticsearch::Client::5_0::Scroll` - // * Python: Check out `elasticsearch.helpers.*` - // * JavaScript: Check out `client.helpers.*` - // * .NET: Check out `BulkAllObservable` - // * PHP: Check out bulk indexing. - // - // **Submitting bulk requests with cURL** - // - // If you're providing text file input to `curl`, you must use the - // `--data-binary` flag instead of plain `-d`. - // The latter doesn't preserve newlines. For example: - // - // ``` - // $ cat requests - // { "index" : { "_index" : "test", "_id" : "1" } } - // { "field1" : "value1" } - // $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk - // --data-binary "@requests"; echo - // {"took":7, "errors": false, - // "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} - // ``` - // - // **Optimistic concurrency control** - // - // Each `index` and `delete` action within a bulk API call may include the - // `if_seq_no` and `if_primary_term` parameters in their respective action and - // meta data lines. - // The `if_seq_no` and `if_primary_term` parameters control how operations are - // run, based on the last modification to existing documents. See Optimistic - // concurrency control for more details. - // - // **Versioning** - // - // Each bulk item can include the version value using the `version` field. - // It automatically follows the behavior of the index or delete operation based - // on the `_version` mapping. - // It also support the `version_type`. - // - // **Routing** - // - // Each bulk item can include the routing value using the `routing` field. - // It automatically follows the behavior of the index or delete operation based - // on the `_routing` mapping. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Wait for active shards** - // - // When making bulk calls, you can set the `wait_for_active_shards` parameter to - // require a minimum number of shard copies to be active before starting to - // process the bulk request. - // - // **Refresh** - // - // Control when the changes made by this request are visible to search. - // - // NOTE: Only the shards that receive the bulk request will be affected by - // refresh. - // Imagine a `_bulk?refresh=wait_for` request with three documents in it that - // happen to be routed to different shards in an index with five shards. - // The request will only wait for those three shards to refresh. - // The other two shards that make up the index do not participate in the `_bulk` - // request at all. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk - Bulk core_bulk.NewBulk - // Clear a scrolling search. - // Clear the search context and results for a scrolling search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-clear-scroll - ClearScroll core_clear_scroll.NewClearScroll - // Close a point in time. - // A point in time must be opened explicitly before being used in search - // requests. - // The `keep_alive` parameter tells Elasticsearch how long it should persist. - // A point in time is automatically closed when the `keep_alive` period has - // elapsed. - // However, keeping points in time has a cost; close them as soon as they are no - // longer required for search requests. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time - ClosePointInTime core_close_point_in_time.NewClosePointInTime - // Count search results. - // Get the number of documents matching a query. - // - // The query can be provided either by using a simple query string as a - // parameter, or by defining Query DSL within the request body. - // The query is optional. When no query is provided, the API uses `match_all` to - // count all the documents. - // - // The count API supports multi-target syntax. You can run a single count API - // search across multiple data streams and indices. - // - // The operation is broadcast across all shards. - // For each shard ID group, a replica is chosen and the search is run against - // it. - // This means that replicas increase the scalability of the count. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-count - Count core_count.NewCount - // Create a new document in the index. - // - // You can index a new JSON document with the `//_doc/` or - // `//_create/<_id>` APIs - // Using `_create` guarantees that the document is indexed only if it does not - // already exist. - // It returns a 409 response when a document with a same ID already exists in - // the index. - // To update an existing document, you must use the `//_doc/` API. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To add a document using the `PUT //_create/<_id>` or `POST - // //_create/<_id>` request formats, you must have the `create_doc`, - // `create`, `index`, or `write` index privilege. - // * To automatically create a data stream or index with this API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // **Automatically create data streams and indices** - // - // If the request's target doesn't exist and matches an index template with a - // `data_stream` definition, the index operation automatically creates the data - // stream. - // - // If the target doesn't exist and doesn't match a data stream template, the - // operation automatically creates the index and applies any matching index - // templates. - // - // NOTE: Elasticsearch includes several built-in index templates. To avoid - // naming collisions with these templates, refer to index pattern documentation. - // - // If no mapping exists, the index operation creates a dynamic mapping. - // By default, new fields and objects are automatically added to the mapping if - // needed. - // - // Automatic index creation is controlled by the `action.auto_create_index` - // setting. - // If it is `true`, any index can be created automatically. - // You can modify this setting to explicitly allow or block automatic creation - // of indices that match specified patterns or set it to `false` to turn off - // automatic index creation entirely. - // Specify a comma-separated list of patterns you want to allow or prefix each - // pattern with `+` or `-` to indicate whether it should be allowed or blocked. - // When a list is specified, the default behaviour is to disallow. - // - // NOTE: The `action.auto_create_index` setting affects the automatic creation - // of indices only. - // It does not affect the creation of data streams. - // - // **Routing** - // - // By default, shard placement — or routing — is controlled by using a hash of - // the document's ID value. - // For more explicit control, the value fed into the hash function used by the - // router can be directly specified on a per-operation basis using the `routing` - // parameter. - // - // When setting up explicit mapping, you can also use the `_routing` field to - // direct the index operation to extract the routing value from the document - // itself. - // This does come at the (very minimal) cost of an additional document parsing - // pass. - // If the `_routing` mapping is defined and set to be required, the index - // operation will fail if no routing value is provided or extracted. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Distributed** - // - // The index operation is directed to the primary shard based on its route and - // performed on the actual node containing this shard. - // After the primary shard completes the operation, if needed, the update is - // distributed to applicable replicas. - // - // **Active shards** - // - // To improve the resiliency of writes to the system, indexing operations can be - // configured to wait for a certain number of active shard copies before - // proceeding with the operation. - // If the requisite number of active shard copies are not available, then the - // write operation must wait and retry, until either the requisite shard copies - // have started or a timeout occurs. - // By default, write operations only wait for the primary shards to be active - // before proceeding (that is to say `wait_for_active_shards` is `1`). - // This default can be overridden in the index settings dynamically by setting - // `index.write.wait_for_active_shards`. - // To alter this behavior per operation, use the `wait_for_active_shards - // request` parameter. - // - // Valid values are all or any positive integer up to the total number of - // configured copies per shard in the index (which is `number_of_replicas`+1). - // Specifying a negative value or a number greater than the number of shard - // copies will throw an error. - // - // For example, suppose you have a cluster of three nodes, A, B, and C and you - // create an index index with the number of replicas set to 3 (resulting in 4 - // shard copies, one more copy than there are nodes). - // If you attempt an indexing operation, by default the operation will only - // ensure the primary copy of each shard is available before proceeding. - // This means that even if B and C went down and A hosted the primary shard - // copies, the indexing operation would still proceed with only one copy of the - // data. - // If `wait_for_active_shards` is set on the request to `3` (and all three nodes - // are up), the indexing operation will require 3 active shard copies before - // proceeding. - // This requirement should be met because there are 3 active nodes in the - // cluster, each one holding a copy of the shard. - // However, if you set `wait_for_active_shards` to `all` (or to `4`, which is - // the same in this situation), the indexing operation will not proceed as you - // do not have all 4 copies of each shard active in the index. - // The operation will timeout unless a new node is brought up in the cluster to - // host the fourth copy of the shard. - // - // It is important to note that this setting greatly reduces the chances of the - // write operation not writing to the requisite number of shard copies, but it - // does not completely eliminate the possibility, because this check occurs - // before the write operation starts. - // After the write operation is underway, it is still possible for replication - // to fail on any number of shard copies but still succeed on the primary. - // The `_shards` section of the API response reveals the number of shard copies - // on which replication succeeded and failed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create - Create core_create.NewCreate - // Delete a document. - // - // Remove a JSON document from the specified index. - // - // NOTE: You cannot send deletion requests directly to a data stream. - // To delete a document in a data stream, you must target the backing index - // containing the document. - // - // **Optimistic concurrency control** - // - // Delete operations can be made conditional and only be performed if the last - // modification to the document was assigned the sequence number and primary - // term specified by the `if_seq_no` and `if_primary_term` parameters. - // If a mismatch is detected, the operation will result in a - // `VersionConflictException` and a status code of `409`. - // - // **Versioning** - // - // Each document indexed is versioned. - // When deleting a document, the version can be specified to make sure the - // relevant document you are trying to delete is actually being deleted and it - // has not changed in the meantime. - // Every write operation run on a document, deletes included, causes its version - // to be incremented. - // The version number of a deleted document remains available for a short time - // after deletion to allow for control of concurrent operations. - // The length of time for which a deleted document's version remains available - // is determined by the `index.gc_deletes` index setting. - // - // **Routing** - // - // If routing is used during indexing, the routing value also needs to be - // specified to delete a document. - // - // If the `_routing` mapping is set to `required` and no routing value is - // specified, the delete API throws a `RoutingMissingException` and rejects the - // request. - // - // For example: - // - // ``` - // DELETE /my-index-000001/_doc/1?routing=shard-1 - // ``` - // - // This request deletes the document with ID 1, but it is routed based on the - // user. - // The document is not deleted if the correct routing is not specified. - // - // **Distributed** - // - // The delete operation gets hashed into a specific shard ID. - // It then gets redirected into the primary shard within that ID group and - // replicated (if needed) to shard replicas within that ID group. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete - Delete core_delete.NewDelete - // Delete documents. - // - // Deletes documents that match the specified query. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or alias: - // - // * `read` - // * `delete` or `write` - // - // You can specify the query criteria in the request URI or the request body - // using the same syntax as the search API. - // When you submit a delete by query request, Elasticsearch gets a snapshot of - // the data stream or index when it begins processing the request and deletes - // matching documents using internal versioning. - // If a document changes between the time that the snapshot is taken and the - // delete operation is processed, it results in a version conflict and the - // delete operation fails. - // - // NOTE: Documents with a version equal to 0 cannot be deleted using delete by - // query because internal versioning does not support 0 as a valid version - // number. - // - // While processing a delete by query request, Elasticsearch performs multiple - // search requests sequentially to find all of the matching documents to delete. - // A bulk delete request is performed for each batch of matching documents. - // If a search or bulk request is rejected, the requests are retried up to 10 - // times, with exponential back off. - // If the maximum retry limit is reached, processing halts and all failed - // requests are returned in the response. - // Any delete requests that completed successfully still stick, they are not - // rolled back. - // - // You can opt to count version conflicts instead of halting and returning by - // setting `conflicts` to `proceed`. - // Note that if you opt to count version conflicts the operation could attempt - // to delete more documents from the source than `max_docs` until it has - // successfully deleted `max_docs documents`, or it has gone through every - // document in the source query. - // - // **Throttling delete requests** - // - // To control the rate at which delete by query issues batches of delete - // operations, you can set `requests_per_second` to any positive decimal number. - // This pads each batch with a wait time to throttle the rate. - // Set `requests_per_second` to `-1` to disable throttling. - // - // Throttling uses a wait time between batches so that the internal scroll - // requests can be given a timeout that takes the request padding into account. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is `1000`, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single `_bulk` request, large batch sizes - // cause Elasticsearch to create many requests and wait before starting the next - // set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Delete by query supports sliced scroll to parallelize the delete process. - // This can improve efficiency and provide a convenient way to break the request - // down into smaller parts. - // - // Setting `slices` to `auto` lets Elasticsearch choose the number of slices to - // use. - // This setting will use one slice per shard, up to a certain limit. - // If there are multiple source data streams or indices, it will choose the - // number of slices based on the index or backing index with the smallest number - // of shards. - // Adding slices to the delete by query operation creates sub-requests which - // means it has some quirks: - // - // * You can see these requests in the tasks APIs. These sub-requests are - // "child" tasks of the task for the request with slices. - // * Fetching the status of the task for the request with slices only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with `slices` will cancel each sub-request. - // * Due to the nature of `slices` each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // `slices` are distributed proportionally to each sub-request. Combine that - // with the earlier point about distribution being uneven and you should - // conclude that using `max_docs` with `slices` might not result in exactly - // `max_docs` documents being deleted. - // * Each sub-request gets a slightly different snapshot of the source data - // stream or index though these are all taken at approximately the same time. - // - // If you're slicing manually or otherwise tuning automatic slicing, keep in - // mind that: - // - // * Query performance is most efficient when the number of slices is equal to - // the number of shards in the index or backing index. If that number is large - // (for example, 500), choose a lower number as too many `slices` hurts - // performance. Setting `slices` higher than the number of shards generally does - // not improve efficiency and adds overhead. - // * Delete performance scales linearly across available resources with the - // number of slices. - // - // Whether query or delete performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Cancel a delete by query operation** - // - // Any delete by query can be canceled using the task cancel API. For example: - // - // ``` - // POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel - // ``` - // - // The task ID can be found by using the get tasks API. - // - // Cancellation should happen quickly but might take a few seconds. - // The get task status API will continue to list the delete by query task until - // this task checks that it has been cancelled and terminates itself. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query - DeleteByQuery core_delete_by_query.NewDeleteByQuery - // Throttle a delete by query operation. - // - // Change the number of requests per second for a particular delete by query - // operation. - // Rethrottling that speeds up the query takes effect immediately but - // rethrotting that slows down the query takes effect after completing the - // current batch to prevent scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query-rethrottle + Bulk core_bulk.NewBulk + ClearScroll core_clear_scroll.NewClearScroll + ClosePointInTime core_close_point_in_time.NewClosePointInTime + Count core_count.NewCount + Create core_create.NewCreate + Delete core_delete.NewDelete + DeleteByQuery core_delete_by_query.NewDeleteByQuery DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle - // Delete a script or search template. - // Deletes a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-script - DeleteScript core_delete_script.NewDeleteScript - // Check a document. - // - // Verify that a document exists. - // For example, check to see if a document with the `_id` 0 exists: - // - // ``` - // HEAD my-index-000001/_doc/0 - // ``` - // - // If the document exists, the API returns a status code of `200 - OK`. - // If the document doesn’t exist, the API returns `404 - Not Found`. - // - // **Versioning support** - // - // You can use the `version` parameter to check the document only if its current - // version is equal to the specified one. - // - // Internally, Elasticsearch has marked the old document as deleted and added an - // entirely new document. - // The old version of the document doesn't disappear immediately, although you - // won't be able to access it. - // Elasticsearch cleans up deleted documents in the background as you continue - // to index more data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - Exists core_exists.NewExists - // Check for a document source. - // - // Check whether a document source exists in an index. - // For example: - // - // ``` - // HEAD my-index-000001/_source/1 - // ``` - // - // A document's source is not available if it is disabled in the mapping. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - ExistsSource core_exists_source.NewExistsSource - // Explain a document match result. - // Get information about why a specific document matches, or doesn't match, a - // query. - // It computes a score explanation for a query and a specific document. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-explain - Explain core_explain.NewExplain - // Get the field capabilities. - // - // Get information about the capabilities of fields among multiple indices. - // - // For data streams, the API returns field capabilities among the stream’s - // backing indices. - // It returns runtime fields like any other field. - // For example, a runtime field with a type of keyword is returned the same as - // any other field that belongs to the `keyword` family. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-field-caps - FieldCaps core_field_caps.NewFieldCaps - // Get a document by its ID. - // - // Get a document and its source or stored fields from an index. - // - // By default, this API is realtime and is not affected by the refresh rate of - // the index (when data will become visible for search). - // In the case where stored fields are requested with the `stored_fields` - // parameter and the document has been updated but is not yet refreshed, the API - // will have to parse and analyze the source to extract the stored fields. - // To turn off realtime behavior, set the `realtime` parameter to false. - // - // **Source filtering** - // - // By default, the API returns the contents of the `_source` field unless you - // have used the `stored_fields` parameter or the `_source` field is turned off. - // You can turn off `_source` retrieval by using the `_source` parameter: - // - // ``` - // GET my-index-000001/_doc/0?_source=false - // ``` - // - // If you only need one or two fields from the `_source`, use the - // `_source_includes` or `_source_excludes` parameters to include or filter out - // particular fields. - // This can be helpful with large documents where partial retrieval can save on - // network overhead - // Both parameters take a comma separated list of fields or wildcard - // expressions. - // For example: - // - // ``` - // GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities - // ``` - // - // If you only want to specify includes, you can use a shorter notation: - // - // ``` - // GET my-index-000001/_doc/0?_source=*.id - // ``` - // - // **Routing** - // - // If routing is used during indexing, the routing value also needs to be - // specified to retrieve a document. - // For example: - // - // ``` - // GET my-index-000001/_doc/2?routing=user1 - // ``` - // - // This request gets the document with ID 2, but it is routed based on the user. - // The document is not fetched if the correct routing is not specified. - // - // **Distributed** - // - // The GET operation is hashed into a specific shard ID. - // It is then redirected to one of the replicas within that shard ID and returns - // the result. - // The replicas are the primary shard and its replicas within that shard ID - // group. - // This means that the more replicas you have, the better your GET scaling will - // be. - // - // **Versioning support** - // - // You can use the `version` parameter to retrieve the document only if its - // current version is equal to the specified one. - // - // Internally, Elasticsearch has marked the old document as deleted and added an - // entirely new document. - // The old version of the document doesn't disappear immediately, although you - // won't be able to access it. - // Elasticsearch cleans up deleted documents in the background as you continue - // to index more data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - Get core_get.NewGet - // Get a script or search template. - // Retrieves a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script - GetScript core_get_script.NewGetScript - // Get script contexts. - // - // Get a list of supported script contexts and their methods. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-context - GetScriptContext core_get_script_context.NewGetScriptContext - // Get script languages. - // - // Get a list of available script types, languages, and contexts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-languages - GetScriptLanguages core_get_script_languages.NewGetScriptLanguages - // Get a document's source. - // - // Get the source of a document. - // For example: - // - // ``` - // GET my-index-000001/_source/1 - // ``` - // - // You can use the source filtering parameters to control which parts of the - // `_source` are returned: - // - // ``` - // GET - // my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - GetSource core_get_source.NewGetSource - // Get the cluster health. - // Get a report with the health status of an Elasticsearch cluster. - // The report contains a list of indicators that compose Elasticsearch - // functionality. - // - // Each indicator has a health status of: green, unknown, yellow or red. - // The indicator will provide an explanation and metadata describing the reason - // for its current health status. - // - // The cluster’s status is controlled by the worst indicator status. - // - // In the event that an indicator’s status is non-green, a list of impacts may - // be present in the indicator result which detail the functionalities that are - // negatively affected by the health issue. - // Each impact carries with it a severity level, an area of the system that is - // affected, and a simple description of the impact on the system. - // - // Some health indicators can determine the root cause of a health problem and - // prescribe a set of steps that can be performed in order to improve the health - // of the system. - // The root cause and remediation steps are encapsulated in a diagnosis. - // A diagnosis contains a cause detailing a root cause analysis, an action - // containing a brief description of the steps to take to fix the problem, the - // list of affected resources (if applicable), and a detailed step-by-step - // troubleshooting guide to fix the diagnosed problem. - // - // NOTE: The health indicators perform root cause analysis of non-green health - // statuses. This can be computationally expensive when called frequently. - // When setting up automated polling of the API for health status, set verbose - // to false to disable the more expensive analysis logic. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-health-report - HealthReport core_health_report.NewHealthReport - // Create or update a document in an index. - // - // Add a JSON document to the specified data stream or index and make it - // searchable. - // If the target is an index and the document already exists, the request - // updates the document and increments its version. - // - // NOTE: You cannot use this API to send update requests for existing documents - // in a data stream. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To add or overwrite a document using the `PUT //_doc/<_id>` request - // format, you must have the `create`, `index`, or `write` index privilege. - // * To add a document using the `POST //_doc/` request format, you must - // have the `create_doc`, `create`, `index`, or `write` index privilege. - // * To automatically create a data stream or index with this API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // NOTE: Replica shards might not all be started when an indexing operation - // returns successfully. - // By default, only the primary is required. Set `wait_for_active_shards` to - // change this default behavior. - // - // **Automatically create data streams and indices** - // - // If the request's target doesn't exist and matches an index template with a - // `data_stream` definition, the index operation automatically creates the data - // stream. - // - // If the target doesn't exist and doesn't match a data stream template, the - // operation automatically creates the index and applies any matching index - // templates. - // - // NOTE: Elasticsearch includes several built-in index templates. To avoid - // naming collisions with these templates, refer to index pattern documentation. - // - // If no mapping exists, the index operation creates a dynamic mapping. - // By default, new fields and objects are automatically added to the mapping if - // needed. - // - // Automatic index creation is controlled by the `action.auto_create_index` - // setting. - // If it is `true`, any index can be created automatically. - // You can modify this setting to explicitly allow or block automatic creation - // of indices that match specified patterns or set it to `false` to turn off - // automatic index creation entirely. - // Specify a comma-separated list of patterns you want to allow or prefix each - // pattern with `+` or `-` to indicate whether it should be allowed or blocked. - // When a list is specified, the default behaviour is to disallow. - // - // NOTE: The `action.auto_create_index` setting affects the automatic creation - // of indices only. - // It does not affect the creation of data streams. - // - // **Optimistic concurrency control** - // - // Index operations can be made conditional and only be performed if the last - // modification to the document was assigned the sequence number and primary - // term specified by the `if_seq_no` and `if_primary_term` parameters. - // If a mismatch is detected, the operation will result in a - // `VersionConflictException` and a status code of `409`. - // - // **Routing** - // - // By default, shard placement — or routing — is controlled by using a hash of - // the document's ID value. - // For more explicit control, the value fed into the hash function used by the - // router can be directly specified on a per-operation basis using the `routing` - // parameter. - // - // When setting up explicit mapping, you can also use the `_routing` field to - // direct the index operation to extract the routing value from the document - // itself. - // This does come at the (very minimal) cost of an additional document parsing - // pass. - // If the `_routing` mapping is defined and set to be required, the index - // operation will fail if no routing value is provided or extracted. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Distributed** - // - // The index operation is directed to the primary shard based on its route and - // performed on the actual node containing this shard. - // After the primary shard completes the operation, if needed, the update is - // distributed to applicable replicas. - // - // **Active shards** - // - // To improve the resiliency of writes to the system, indexing operations can be - // configured to wait for a certain number of active shard copies before - // proceeding with the operation. - // If the requisite number of active shard copies are not available, then the - // write operation must wait and retry, until either the requisite shard copies - // have started or a timeout occurs. - // By default, write operations only wait for the primary shards to be active - // before proceeding (that is to say `wait_for_active_shards` is `1`). - // This default can be overridden in the index settings dynamically by setting - // `index.write.wait_for_active_shards`. - // To alter this behavior per operation, use the `wait_for_active_shards - // request` parameter. - // - // Valid values are all or any positive integer up to the total number of - // configured copies per shard in the index (which is `number_of_replicas`+1). - // Specifying a negative value or a number greater than the number of shard - // copies will throw an error. - // - // For example, suppose you have a cluster of three nodes, A, B, and C and you - // create an index index with the number of replicas set to 3 (resulting in 4 - // shard copies, one more copy than there are nodes). - // If you attempt an indexing operation, by default the operation will only - // ensure the primary copy of each shard is available before proceeding. - // This means that even if B and C went down and A hosted the primary shard - // copies, the indexing operation would still proceed with only one copy of the - // data. - // If `wait_for_active_shards` is set on the request to `3` (and all three nodes - // are up), the indexing operation will require 3 active shard copies before - // proceeding. - // This requirement should be met because there are 3 active nodes in the - // cluster, each one holding a copy of the shard. - // However, if you set `wait_for_active_shards` to `all` (or to `4`, which is - // the same in this situation), the indexing operation will not proceed as you - // do not have all 4 copies of each shard active in the index. - // The operation will timeout unless a new node is brought up in the cluster to - // host the fourth copy of the shard. - // - // It is important to note that this setting greatly reduces the chances of the - // write operation not writing to the requisite number of shard copies, but it - // does not completely eliminate the possibility, because this check occurs - // before the write operation starts. - // After the write operation is underway, it is still possible for replication - // to fail on any number of shard copies but still succeed on the primary. - // The `_shards` section of the API response reveals the number of shard copies - // on which replication succeeded and failed. - // - // **No operation (noop) updates** - // - // When updating a document by using this API, a new version of the document is - // always created even if the document hasn't changed. - // If this isn't acceptable use the `_update` API with `detect_noop` set to - // `true`. - // The `detect_noop` option isn't available on this API because it doesn’t fetch - // the old source and isn't able to compare it against the new source. - // - // There isn't a definitive rule for when noop updates aren't acceptable. - // It's a combination of lots of factors like how frequently your data source - // sends updates that are actually noops and how many queries per second - // Elasticsearch runs on the shard receiving the updates. - // - // **Versioning** - // - // Each indexed document is given a version number. - // By default, internal versioning is used that starts at 1 and increments with - // each update, deletes included. - // Optionally, the version number can be set to an external value (for example, - // if maintained in a database). - // To enable this functionality, `version_type` should be set to `external`. - // The value provided must be a numeric, long value greater than or equal to 0, - // and less than around `9.2e+18`. - // - // NOTE: Versioning is completely real time, and is not affected by the near - // real time aspects of search operations. - // If no version is provided, the operation runs without any version checks. - // - // When using the external version type, the system checks to see if the version - // number passed to the index request is greater than the version of the - // currently stored document. - // If true, the document will be indexed and the new version number used. - // If the value provided is less than or equal to the stored document's version - // number, a version conflict will occur and the index operation will fail. For - // example: - // - // ``` - // PUT my-index-000001/_doc/1?version=2&version_type=external - // { - // "user": { - // "id": "elkbee" - // } - // } - // - // In this example, the operation will succeed since the supplied version of 2 - // is higher than the current document version of 1. - // If the document was already updated and its version was set to 2 or higher, - // the indexing command will fail and result in a conflict (409 HTTP status - // code). - // - // A nice side effect is that there is no need to maintain strict ordering of - // async indexing operations run as a result of changes to a source database, as - // long as version numbers from the source database are used. - // Even the simple case of updating the Elasticsearch index using data from a - // database is simplified if external versioning is used, as only the latest - // version will be used if the index operations arrive out of order. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create - Index core_index.NewIndex - // Get cluster info. - // Get basic build, version, and cluster information. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info - Info core_info.NewInfo - // Get multiple documents. - // - // Get multiple JSON documents by ID from one or more indices. - // If you specify an index in the request URI, you only need to specify the - // document IDs in the request body. - // To ensure fast responses, this multi get (mget) API responds with partial - // results if one or more shards fail. - // - // **Filter source fields** - // - // By default, the `_source` field is returned for every document (if stored). - // Use the `_source` and `_source_include` or `source_exclude` attributes to - // filter what fields are returned for a particular document. - // You can include the `_source`, `_source_includes`, and `_source_excludes` - // query parameters in the request URI to specify the defaults to use when there - // are no per-document instructions. - // - // **Get stored fields** - // - // Use the `stored_fields` attribute to specify the set of stored fields you - // want to retrieve. - // Any requested fields that are not stored are ignored. - // You can include the `stored_fields` query parameter in the request URI to - // specify the defaults to use when there are no per-document instructions. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mget - Mget core_mget.NewMget - // Run multiple searches. - // - // The format of the request is similar to the bulk API format and makes use of - // the newline delimited JSON (NDJSON) format. - // The structure is as follows: - // - // ``` - // header\n - // body\n - // header\n - // body\n - // ``` - // - // This structure is specifically optimized to reduce parsing if a specific - // search ends up redirected to another node. - // - // IMPORTANT: The final line of data must end with a newline character `\n`. - // Each newline character may be preceded by a carriage return `\r`. - // When sending requests to this endpoint the `Content-Type` header should be - // set to `application/x-ndjson`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch - Msearch core_msearch.NewMsearch - // Run multiple templated searches. - // - // Run multiple templated searches with a single request. - // If you are providing a text file or text input to `curl`, use the - // `--data-binary` flag instead of `-d` to preserve newlines. - // For example: - // - // ``` - // $ cat requests - // { "index": "my-index" } - // { "id": "my-search-template", "params": { "query_string": "hello world", - // "from": 0, "size": 10 }} - // { "index": "my-other-index" } - // { "id": "my-other-search-template", "params": { "query_type": "match_all" }} - // - // $ curl -H "Content-Type: application/x-ndjson" -XGET - // localhost:9200/_msearch/template --data-binary "@requests"; echo - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch-template - MsearchTemplate core_msearch_template.NewMsearchTemplate - // Get multiple term vectors. - // - // Get multiple term vectors with a single request. - // You can specify existing documents by index and ID or provide artificial - // documents in the body of the request. - // You can specify the index in the request body or request URI. - // The response contains a `docs` array with all the fetched termvectors. - // Each element has the structure provided by the termvectors API. - // - // **Artificial documents** - // - // You can also use `mtermvectors` to generate term vectors for artificial - // documents provided in the body of the request. - // The mapping used is determined by the specified `_index`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mtermvectors - Mtermvectors core_mtermvectors.NewMtermvectors - // Open a point in time. - // - // A search request by default runs against the most recent visible data of the - // target indices, - // which is called point in time. Elasticsearch pit (point in time) is a - // lightweight view into the - // state of the data as it existed when initiated. In some cases, it’s preferred - // to perform multiple - // search requests using the same point in time. For example, if refreshes - // happen between - // `search_after` requests, then the results of those requests might not be - // consistent as changes happening - // between searches are only visible to the more recent point in time. - // - // A point in time must be opened explicitly before being used in search - // requests. - // - // A subsequent search request with the `pit` parameter must not specify - // `index`, `routing`, or `preference` values as these parameters are copied - // from the point in time. - // - // Just like regular searches, you can use `from` and `size` to page through - // point in time search results, up to the first 10,000 hits. - // If you want to retrieve more hits, use PIT with `search_after`. - // - // IMPORTANT: The open point in time request and each subsequent search request - // can return different identifiers; always use the most recently received ID - // for the next search request. - // - // When a PIT that contains shard failures is used in a search request, the - // missing are always reported in the search response as a - // `NoShardAvailableActionException` exception. - // To get rid of these exceptions, a new PIT needs to be created so that shards - // missing from the previous PIT can be handled, assuming they become available - // in the meantime. - // - // **Keeping point in time alive** - // - // The `keep_alive` parameter, which is passed to a open point in time request - // and search request, extends the time to live of the corresponding point in - // time. - // The value does not need to be long enough to process all data — it just needs - // to be long enough for the next request. - // - // Normally, the background merge process optimizes the index by merging - // together smaller segments to create new, bigger segments. - // Once the smaller segments are no longer needed they are deleted. - // However, open point-in-times prevent the old segments from being deleted - // since they are still in use. - // - // TIP: Keeping older segments alive means that more disk space and file handles - // are needed. - // Ensure that you have configured your nodes to have ample free file handles. - // - // Additionally, if a segment contains deleted or updated documents then the - // point in time must keep track of whether each document in the segment was - // live at the time of the initial search request. - // Ensure that your nodes have sufficient heap space if you have many open - // point-in-times on an index that is subject to ongoing deletes or updates. - // Note that a point-in-time doesn't prevent its associated indices from being - // deleted. - // You can check how many point-in-times (that is, search contexts) are open - // with the nodes stats API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time - OpenPointInTime core_open_point_in_time.NewOpenPointInTime - // Ping the cluster. - // Get information about whether the cluster is running. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cluster - Ping core_ping.NewPing - // Create or update a script or search template. - // Creates or updates a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-put-script - PutScript core_put_script.NewPutScript - // Evaluate ranked search results. - // - // Evaluate the quality of ranked search results over a set of typical search - // queries. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rank-eval - RankEval core_rank_eval.NewRankEval - // Reindex documents. - // - // Copy documents from a source to a destination. - // You can copy all documents to the destination index or reindex a subset of - // the documents. - // The source can be any existing index, alias, or data stream. - // The destination must differ from the source. - // For example, you cannot reindex a data stream into itself. - // - // IMPORTANT: Reindex requires `_source` to be enabled for all documents in the - // source. - // The destination should be configured as wanted before calling the reindex - // API. - // Reindex does not copy the settings from the source or its associated - // template. - // Mappings, shard counts, and replicas, for example, must be configured ahead - // of time. - // - // If the Elasticsearch security features are enabled, you must have the - // following security privileges: - // - // * The `read` index privilege for the source data stream, index, or alias. - // * The `write` index privilege for the destination data stream, index, or - // index alias. - // * To automatically create a data stream or index with a reindex API request, - // you must have the `auto_configure`, `create_index`, or `manage` index - // privilege for the destination data stream, index, or alias. - // * If reindexing from a remote cluster, the `source.remote.user` must have the - // `monitor` cluster privilege and the `read` index privilege for the source - // data stream, index, or alias. - // - // If reindexing from a remote cluster, you must explicitly allow the remote - // host in the `reindex.remote.whitelist` setting. - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // The `dest` element can be configured like the index API to control optimistic - // concurrency control. - // Omitting `version_type` or setting it to `internal` causes Elasticsearch to - // blindly dump documents into the destination, overwriting any that happen to - // have the same ID. - // - // Setting `version_type` to `external` causes Elasticsearch to preserve the - // `version` from the source, create any documents that are missing, and update - // any documents that have an older version in the destination than they do in - // the source. - // - // Setting `op_type` to `create` causes the reindex API to create only missing - // documents in the destination. - // All existing documents will cause a version conflict. - // - // IMPORTANT: Because data streams are append-only, any reindex request to a - // destination data stream must have an `op_type` of `create`. - // A reindex can only add new documents to a destination data stream. - // It cannot update existing documents in a destination data stream. - // - // By default, version conflicts abort the reindex process. - // To continue reindexing if there are conflicts, set the `conflicts` request - // body property to `proceed`. - // In this case, the response includes a count of the version conflicts that - // were encountered. - // Note that the handling of other error types is unaffected by the `conflicts` - // property. - // Additionally, if you opt to count version conflicts, the operation could - // attempt to reindex more documents from the source than `max_docs` until it - // has successfully indexed `max_docs` documents into the target or it has gone - // through every document in the source query. - // - // NOTE: The reindex API makes no effort to handle ID collisions. - // The last document written will "win" but the order isn't usually predictable - // so it is not a good idea to rely on this behavior. - // Instead, make sure that IDs are unique by using a script. - // - // **Running reindex asynchronously** - // - // If the request contains `wait_for_completion=false`, Elasticsearch performs - // some preflight checks, launches the request, and returns a task you can use - // to cancel or get the status of the task. - // Elasticsearch creates a record of this task as a document at - // `_tasks/`. - // - // **Reindex from multiple sources** - // - // If you have many sources to reindex it is generally better to reindex them - // one at a time rather than using a glob pattern to pick up multiple sources. - // That way you can resume the process if there are any errors by removing the - // partially completed source and starting over. - // It also makes parallelizing the process fairly simple: split the list of - // sources to reindex and run each list in parallel. - // - // For example, you can use a bash script like this: - // - // ``` - // for index in i1 i2 i3 i4 i5; do - // curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty - // -d'{ - // "source": { - // "index": "'$index'" - // }, - // "dest": { - // "index": "'$index'-reindexed" - // } - // }' - // done - // ``` - // - // **Throttling** - // - // Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, - // for example) to throttle the rate at which reindex issues batches of index - // operations. - // Requests are throttled by padding each batch with a wait time. - // To turn off throttling, set `requests_per_second` to `-1`. - // - // The throttling is done by waiting between batches so that the scroll that - // reindex uses internally can be given a timeout that takes into account the - // padding. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is `1000`, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single bulk request, large batch sizes cause - // Elasticsearch to create many requests and then wait for a while before - // starting the next set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Reindex supports sliced scroll to parallelize the reindexing process. - // This parallelization can improve efficiency and provide a convenient way to - // break the request down into smaller parts. - // - // NOTE: Reindexing from remote clusters does not support manual or automatic - // slicing. - // - // You can slice a reindex request manually by providing a slice ID and total - // number of slices to each request. - // You can also let reindex automatically parallelize by using sliced scroll to - // slice on `_id`. - // The `slices` parameter specifies the number of slices to use. - // - // Adding `slices` to the reindex request just automates the manual process, - // creating sub-requests which means it has some quirks: - // - // * You can see these requests in the tasks API. These sub-requests are "child" - // tasks of the task for the request with slices. - // * Fetching the status of the task for the request with `slices` only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with `slices` will cancel each sub-request. - // * Due to the nature of `slices`, each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // `slices` are distributed proportionally to each sub-request. Combine that - // with the previous point about distribution being uneven and you should - // conclude that using `max_docs` with `slices` might not result in exactly - // `max_docs` documents being reindexed. - // * Each sub-request gets a slightly different snapshot of the source, though - // these are all taken at approximately the same time. - // - // If slicing automatically, setting `slices` to `auto` will choose a reasonable - // number for most indices. - // If slicing manually or otherwise tuning automatic slicing, use the following - // guidelines. - // - // Query performance is most efficient when the number of slices is equal to the - // number of shards in the index. - // If that number is large (for example, `500`), choose a lower number as too - // many slices will hurt performance. - // Setting slices higher than the number of shards generally does not improve - // efficiency and adds overhead. - // - // Indexing performance scales linearly across available resources with the - // number of slices. - // - // Whether query or indexing performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Modify documents during reindexing** - // - // Like `_update_by_query`, reindex operations support a script that modifies - // the document. - // Unlike `_update_by_query`, the script is allowed to modify the document's - // metadata. - // - // Just as in `_update_by_query`, you can set `ctx.op` to change the operation - // that is run on the destination. - // For example, set `ctx.op` to `noop` if your script decides that the document - // doesn’t have to be indexed in the destination. This "no operation" will be - // reported in the `noop` counter in the response body. - // Set `ctx.op` to `delete` if your script decides that the document must be - // deleted from the destination. - // The deletion will be reported in the `deleted` counter in the response body. - // Setting `ctx.op` to anything else will return an error, as will setting any - // other field in `ctx`. - // - // Think of the possibilities! Just be careful; you are able to change: - // - // * `_id` - // * `_index` - // * `_version` - // * `_routing` - // - // Setting `_version` to `null` or clearing it from the `ctx` map is just like - // not sending the version in an indexing request. - // It will cause the document to be overwritten in the destination regardless of - // the version on the target or the version type you use in the reindex API. - // - // **Reindex from remote** - // - // Reindex supports reindexing from a remote Elasticsearch cluster. - // The `host` parameter must contain a scheme, host, port, and optional path. - // The `username` and `password` parameters are optional and when they are - // present the reindex operation will connect to the remote Elasticsearch node - // using basic authentication. - // Be sure to use HTTPS when using basic authentication or the password will be - // sent in plain text. - // There are a range of settings available to configure the behavior of the - // HTTPS connection. - // - // When using Elastic Cloud, it is also possible to authenticate against the - // remote cluster through the use of a valid API key. - // Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` - // setting. - // It can be set to a comma delimited list of allowed remote host and port - // combinations. - // Scheme is ignored; only the host and port are used. - // For example: - // - // ``` - // reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, - // localhost:*"] - // ``` - // - // The list of allowed hosts must be configured on any nodes that will - // coordinate the reindex. - // This feature should work with remote clusters of any version of - // Elasticsearch. - // This should enable you to upgrade from any version of Elasticsearch to the - // current version by reindexing from a cluster of the old version. - // - // WARNING: Elasticsearch does not support forward compatibility across major - // versions. - // For example, you cannot reindex from a 7.x cluster into a 6.x cluster. - // - // To enable queries sent to older versions of Elasticsearch, the `query` - // parameter is sent directly to the remote host without validation or - // modification. - // - // NOTE: Reindexing from remote clusters does not support manual or automatic - // slicing. - // - // Reindexing from a remote server uses an on-heap buffer that defaults to a - // maximum size of 100mb. - // If the remote index includes very large documents you'll need to use a - // smaller batch size. - // It is also possible to set the socket read timeout on the remote connection - // with the `socket_timeout` field and the connection timeout with the - // `connect_timeout` field. - // Both default to 30 seconds. - // - // **Configuring SSL parameters** - // - // Reindex from remote supports configurable SSL settings. - // These must be specified in the `elasticsearch.yml` file, with the exception - // of the secure settings, which you add in the Elasticsearch keystore. - // It is not possible to configure SSL in the body of the reindex request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex - Reindex core_reindex.NewReindex - // Throttle a reindex operation. - // - // Change the number of requests per second for a particular reindex operation. - // For example: - // - // ``` - // POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 - // ``` - // - // Rethrottling that speeds up the query takes effect immediately. - // Rethrottling that slows down the query will take effect after completing the - // current batch. - // This behavior prevents scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex - ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Render a search template. - // - // Render a search template as a search request body. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-render-search-template - RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate - // Run a script. - // - // Runs a script and returns a result. - // Use this API to build and test scripts, such as when defining a script for a - // runtime field. - // This API requires very few dependencies and is especially useful if you don't - // have permissions to write documents on a cluster. - // - // The API uses several _contexts_, which control how scripts are run, what - // variables are available at runtime, and what the return type is. - // - // Each context requires a script, but additional parameters depend on the - // context you're using for that script. - // https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples - ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute - // Run a scrolling search. - // - // IMPORTANT: The scroll API is no longer recommend for deep pagination. If you - // need to preserve the index state while paging through more than 10,000 hits, - // use the `search_after` parameter with a point in time (PIT). - // - // The scroll API gets large sets of results from a single scrolling search - // request. - // To get the necessary scroll ID, submit a search API request that includes an - // argument for the `scroll` query parameter. - // The `scroll` parameter indicates how long Elasticsearch should retain the - // search context for the request. - // The search response returns a scroll ID in the `_scroll_id` response body - // parameter. - // You can then use the scroll ID with the scroll API to retrieve the next batch - // of results for the request. - // If the Elasticsearch security features are enabled, the access to the results - // of a specific scroll ID is restricted to the user or API key that submitted - // the search. - // - // You can also use the scroll API to specify a new scroll parameter that - // extends or shortens the retention period for the search context. - // - // IMPORTANT: Results from a scrolling search reflect the state of the index at - // the time of the initial search request. Subsequent indexing or document - // changes only affect later search and scroll requests. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-scroll - Scroll core_scroll.NewScroll - // Run a search. - // - // Get search hits that match the query defined in the request. - // You can provide search queries using the `q` query string parameter or the - // request body. - // If both are specified, only the query parameter is used. - // - // If the Elasticsearch security features are enabled, you must have the read - // index privilege for the target data stream, index, or alias. For - // cross-cluster search, refer to the documentation about configuring CCS - // privileges. - // To search a point in time (PIT) for an alias, you must have the `read` index - // privilege for the alias's data streams or indices. - // - // **Search slicing** - // - // When paging through a large number of documents, it can be helpful to split - // the search into multiple slices to consume them independently with the - // `slice` and `pit` properties. - // By default the splitting is done first on the shards, then locally on each - // shard. - // The local splitting partitions the shard into contiguous ranges based on - // Lucene document IDs. - // - // For instance if the number of shards is equal to 2 and you request 4 slices, - // the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are - // assigned to the second shard. - // - // IMPORTANT: The same point-in-time ID should be used for all slices. - // If different PIT IDs are used, slices can overlap and miss documents. - // This situation can occur because the splitting criterion is based on Lucene - // document IDs, which are not stable across changes to the index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search - Search core_search.NewSearch - // Search a vector tile. - // - // Search a vector tile for geospatial values. - // Before using this API, you should be familiar with the Mapbox vector tile - // specification. - // The API returns results as a binary mapbox vector tile. - // - // Internally, Elasticsearch translates a vector tile search API request into a - // search containing: - // - // * A `geo_bounding_box` query on the ``. The query uses the - // `//` tile as a bounding box. - // * A `geotile_grid` or `geohex_grid` aggregation on the ``. The - // `grid_agg` parameter determines the aggregation type. The aggregation uses - // the `//` tile as a bounding box. - // * Optionally, a `geo_bounds` aggregation on the ``. The search only - // includes this aggregation if the `exact_bounds` parameter is `true`. - // * If the optional parameter `with_labels` is `true`, the internal search will - // include a dynamic runtime field that calls the `getLabelPosition` function of - // the geometry doc value. This enables the generation of new point features - // containing suggested geometry labels, so that, for example, multi-polygons - // will have only one label. - // - // For example, Elasticsearch may translate a vector tile search API request - // with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of - // `true` into the following search - // - // ``` - // GET my-index/_search - // { - // "size": 10000, - // "query": { - // "geo_bounding_box": { - // "my-geo-field": { - // "top_left": { - // "lat": -40.979898069620134, - // "lon": -45 - // }, - // "bottom_right": { - // "lat": -66.51326044311186, - // "lon": 0 - // } - // } - // } - // }, - // "aggregations": { - // "grid": { - // "geotile_grid": { - // "field": "my-geo-field", - // "precision": 11, - // "size": 65536, - // "bounds": { - // "top_left": { - // "lat": -40.979898069620134, - // "lon": -45 - // }, - // "bottom_right": { - // "lat": -66.51326044311186, - // "lon": 0 - // } - // } - // } - // }, - // "bounds": { - // "geo_bounds": { - // "field": "my-geo-field", - // "wrap_longitude": false - // } - // } - // } - // } - // ``` - // - // The API returns results as a binary Mapbox vector tile. - // Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the - // tile contains three layers: - // - // * A `hits` layer containing a feature for each `` value matching the - // `geo_bounding_box` query. - // * An `aggs` layer containing a feature for each cell of the `geotile_grid` or - // `geohex_grid`. The layer only contains features for cells with matching data. - // * A meta layer containing: - // * A feature containing a bounding box. By default, this is the bounding box - // of the tile. - // * Value ranges for any sub-aggregations on the `geotile_grid` or - // `geohex_grid`. - // * Metadata for the search. - // - // The API only returns features that can display at its zoom level. - // For example, if a polygon feature has no area at its zoom level, the API - // omits it. - // The API returns errors as UTF-8 encoded JSON. - // - // IMPORTANT: You can specify several options for this API as either a query - // parameter or request body parameter. - // If you specify both parameters, the query parameter takes precedence. - // - // **Grid precision for geotile** - // - // For a `grid_agg` of `geotile`, you can use cells in the `aggs` layer as tiles - // for lower zoom levels. - // `grid_precision` represents the additional zoom levels available through - // these cells. The final precision is computed by as follows: ` + - // grid_precision`. - // For example, if `` is 7 and `grid_precision` is 8, then the - // `geotile_grid` aggregation will use a precision of 15. - // The maximum final precision is 29. - // The `grid_precision` also determines the number of cells for the grid as - // follows: `(2^grid_precision) x (2^grid_precision)`. - // For example, a value of 8 divides the tile into a grid of 256 x 256 cells. - // The `aggs` layer only contains features for cells with matching data. - // - // **Grid precision for geohex** - // - // For a `grid_agg` of `geohex`, Elasticsearch uses `` and - // `grid_precision` to calculate a final precision as follows: ` + - // grid_precision`. - // - // This precision determines the H3 resolution of the hexagonal cells produced - // by the `geohex` aggregation. - // The following table maps the H3 resolution for each precision. - // For example, if `` is 3 and `grid_precision` is 3, the precision is 6. - // At a precision of 6, hexagonal cells have an H3 resolution of 2. - // If `` is 3 and `grid_precision` is 4, the precision is 7. - // At a precision of 7, hexagonal cells have an H3 resolution of 3. - // - // | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | - // | --------- | ---------------- | ------------- | ----------------| ----- | - // | 1 | 4 | 0 | 122 | 30.5 | - // | 2 | 16 | 0 | 122 | 7.625 | - // | 3 | 64 | 1 | 842 | 13.15625 | - // | 4 | 256 | 1 | 842 | 3.2890625 | - // | 5 | 1024 | 2 | 5882 | 5.744140625 | - // | 6 | 4096 | 2 | 5882 | 1.436035156 | - // | 7 | 16384 | 3 | 41162 | 2.512329102 | - // | 8 | 65536 | 3 | 41162 | 0.6280822754 | - // | 9 | 262144 | 4 | 288122 | 1.099098206 | - // | 10 | 1048576 | 4 | 288122 | 0.2747745514 | - // | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | - // | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | - // | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | - // | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | - // | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | - // | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | - // | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | - // | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | - // | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | - // | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | - // | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | - // | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | - // | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | - // | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | - // | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | - // | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | - // | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | - // | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | - // | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | - // - // Hexagonal cells don't align perfectly on a vector tile. - // Some cells may intersect more than one vector tile. - // To compute the H3 resolution for each precision, Elasticsearch compares the - // average density of hexagonal bins at each resolution with the average density - // of tile bins at each zoom level. - // Elasticsearch uses the H3 resolution that is closest to the corresponding - // geotile density. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-mvt - SearchMvt core_search_mvt.NewSearchMvt - // Get the search shards. - // - // Get the indices and shards that a search request would be run against. - // This information can be useful for working out issues or planning - // optimizations with routing and shard preferences. - // When filtered aliases are used, the filter is returned as part of the - // `indices` section. - // - // If the Elasticsearch security features are enabled, you must have the - // `view_index_metadata` or `manage` index privilege for the target data stream, - // index, or alias. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-shards - SearchShards core_search_shards.NewSearchShards - // Run a search with a search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-template - SearchTemplate core_search_template.NewSearchTemplate - // Get terms in an index. - // - // Discover terms that match a partial string in an index. - // This API is designed for low-latency look-ups used in auto-complete - // scenarios. - // - // > info - // > The terms enum API may return terms from deleted documents. Deleted - // documents are initially only marked as deleted. It is not until their - // segments are merged that documents are actually deleted. Until that happens, - // the terms enum API will return terms from these documents. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-terms-enum - TermsEnum core_terms_enum.NewTermsEnum - // Get term vector information. - // - // Get information and statistics about terms in the fields of a particular - // document. - // - // You can retrieve term vectors for documents stored in the index or for - // artificial documents passed in the body of the request. - // You can specify the fields you are interested in through the `fields` - // parameter or by adding the fields to the request body. - // For example: - // - // ``` - // GET /my-index-000001/_termvectors/1?fields=message - // ``` - // - // Fields can be specified using wildcards, similar to the multi match query. - // - // Term vectors are real-time by default, not near real-time. - // This can be changed by setting `realtime` parameter to `false`. - // - // You can request three types of values: _term information_, _term statistics_, - // and _field statistics_. - // By default, all term information and field statistics are returned for all - // fields but term statistics are excluded. - // - // **Term information** - // - // * term frequency in the field (always returned) - // * term positions (`positions: true`) - // * start and end offsets (`offsets: true`) - // * term payloads (`payloads: true`), as base64 encoded bytes - // - // If the requested information wasn't stored in the index, it will be computed - // on the fly if possible. - // Additionally, term vectors could be computed for documents not even existing - // in the index, but instead provided by the user. - // - // > warn - // > Start and end offsets assume UTF-16 encoding is being used. If you want to - // use these offsets in order to get the original text that produced this token, - // you should make sure that the string you are taking a sub-string of is also - // encoded using UTF-16. - // - // **Behaviour** - // - // The term and field statistics are not accurate. - // Deleted documents are not taken into account. - // The information is only retrieved for the shard the requested document - // resides in. - // The term and field statistics are therefore only useful as relative measures - // whereas the absolute numbers have no meaning in this context. - // By default, when requesting term vectors of artificial documents, a shard to - // get the statistics from is randomly selected. - // Use `routing` only to hit a particular shard. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-termvectors - Termvectors core_termvectors.NewTermvectors - // Update a document. - // - // Update a document by running a script or passing a partial document. - // - // If the Elasticsearch security features are enabled, you must have the `index` - // or `write` index privilege for the target index or index alias. - // - // The script can update, delete, or skip modifying the document. - // The API also supports passing a partial document, which is merged into the - // existing document. - // To fully replace an existing document, use the index API. - // This operation: - // - // * Gets the document (collocated with the shard) from the index. - // * Runs the specified script. - // * Indexes the result. - // - // The document must still be reindexed, but using this API removes some network - // roundtrips and reduces chances of version conflicts between the GET and the - // index operation. - // - // The `_source` field must be enabled to use this API. - // In addition to `_source`, you can access the following variables through the - // `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the - // current timestamp). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update - Update core_update.NewUpdate - // Update documents. - // Updates documents that match the specified query. - // If no query is specified, performs an update on every document in the data - // stream or index without modifying the source, which is useful for picking up - // mapping changes. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or alias: - // - // * `read` - // * `index` or `write` - // - // You can specify the query criteria in the request URI or the request body - // using the same syntax as the search API. - // - // When you submit an update by query request, Elasticsearch gets a snapshot of - // the data stream or index when it begins processing the request and updates - // matching documents using internal versioning. - // When the versions match, the document is updated and the version number is - // incremented. - // If a document changes between the time that the snapshot is taken and the - // update operation is processed, it results in a version conflict and the - // operation fails. - // You can opt to count version conflicts instead of halting and returning by - // setting `conflicts` to `proceed`. - // Note that if you opt to count version conflicts, the operation could attempt - // to update more documents from the source than `max_docs` until it has - // successfully updated `max_docs` documents or it has gone through every - // document in the source query. - // - // NOTE: Documents with a version equal to 0 cannot be updated using update by - // query because internal versioning does not support 0 as a valid version - // number. - // - // While processing an update by query request, Elasticsearch performs multiple - // search requests sequentially to find all of the matching documents. - // A bulk update request is performed for each batch of matching documents. - // Any query or update failures cause the update by query request to fail and - // the failures are shown in the response. - // Any update requests that completed successfully still stick, they are not - // rolled back. - // - // **Throttling update requests** - // - // To control the rate at which update by query issues batches of update - // operations, you can set `requests_per_second` to any positive decimal number. - // This pads each batch with a wait time to throttle the rate. - // Set `requests_per_second` to `-1` to turn off throttling. - // - // Throttling uses a wait time between batches so that the internal scroll - // requests can be given a timeout that takes the request padding into account. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is 1000, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single _bulk request, large batch sizes cause - // Elasticsearch to create many requests and wait before starting the next set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Update by query supports sliced scroll to parallelize the update process. - // This can improve efficiency and provide a convenient way to break the request - // down into smaller parts. - // - // Setting `slices` to `auto` chooses a reasonable number for most data streams - // and indices. - // This setting will use one slice per shard, up to a certain limit. - // If there are multiple source data streams or indices, it will choose the - // number of slices based on the index or backing index with the smallest number - // of shards. - // - // Adding `slices` to `_update_by_query` just automates the manual process of - // creating sub-requests, which means it has some quirks: - // - // * You can see these requests in the tasks APIs. These sub-requests are - // "child" tasks of the task for the request with slices. - // * Fetching the status of the task for the request with `slices` only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with slices will cancel each sub-request. - // * Due to the nature of slices each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // slices are distributed proportionally to each sub-request. Combine that with - // the point above about distribution being uneven and you should conclude that - // using `max_docs` with `slices` might not result in exactly `max_docs` - // documents being updated. - // * Each sub-request gets a slightly different snapshot of the source data - // stream or index though these are all taken at approximately the same time. - // - // If you're slicing manually or otherwise tuning automatic slicing, keep in - // mind that: - // - // * Query performance is most efficient when the number of slices is equal to - // the number of shards in the index or backing index. If that number is large - // (for example, 500), choose a lower number as too many slices hurts - // performance. Setting slices higher than the number of shards generally does - // not improve efficiency and adds overhead. - // * Update performance scales linearly across available resources with the - // number of slices. - // - // Whether query or update performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Update the document source** - // - // Update by query supports scripts to update the document source. - // As with the update API, you can set `ctx.op` to change the operation that is - // performed. - // - // Set `ctx.op = "noop"` if your script decides that it doesn't have to make any - // changes. - // The update by query operation skips updating the document and increments the - // `noop` counter. - // - // Set `ctx.op = "delete"` if your script decides that the document should be - // deleted. - // The update by query operation deletes the document and increments the - // `deleted` counter. - // - // Update by query supports only `index`, `noop`, and `delete`. - // Setting `ctx.op` to anything else is an error. - // Setting any other field in `ctx` is an error. - // This API enables you to only modify the source of matching documents; you - // cannot move them. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query - UpdateByQuery core_update_by_query.NewUpdateByQuery - // Throttle an update by query operation. - // - // Change the number of requests per second for a particular update by query - // operation. - // Rethrottling that speeds up the query takes effect immediately but - // rethrotting that slows down the query takes effect after completing the - // current batch to prevent scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query-rethrottle + DeleteScript core_delete_script.NewDeleteScript + Exists core_exists.NewExists + ExistsSource core_exists_source.NewExistsSource + Explain core_explain.NewExplain + FieldCaps core_field_caps.NewFieldCaps + Get core_get.NewGet + GetScript core_get_script.NewGetScript + GetScriptContext core_get_script_context.NewGetScriptContext + GetScriptLanguages core_get_script_languages.NewGetScriptLanguages + GetSource core_get_source.NewGetSource + HealthReport core_health_report.NewHealthReport + Index core_index.NewIndex + Info core_info.NewInfo + Mget core_mget.NewMget + Msearch core_msearch.NewMsearch + MsearchTemplate core_msearch_template.NewMsearchTemplate + Mtermvectors core_mtermvectors.NewMtermvectors + OpenPointInTime core_open_point_in_time.NewOpenPointInTime + Ping core_ping.NewPing + PutScript core_put_script.NewPutScript + RankEval core_rank_eval.NewRankEval + Reindex core_reindex.NewReindex + ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle + RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate + ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute + Scroll core_scroll.NewScroll + Search core_search.NewSearch + SearchMvt core_search_mvt.NewSearchMvt + SearchShards core_search_shards.NewSearchShards + SearchTemplate core_search_template.NewSearchTemplate + TermsEnum core_terms_enum.NewTermsEnum + Termvectors core_termvectors.NewTermvectors + Update core_update.NewUpdate + UpdateByQuery core_update_by_query.NewUpdateByQuery UpdateByQueryRethrottle core_update_by_query_rethrottle.NewUpdateByQueryRethrottle } type DanglingIndices struct { - // Delete a dangling index. - // If Elasticsearch encounters index data that is absent from the current - // cluster state, those indices are considered to be dangling. - // For example, this can happen if you delete more than - // `cluster.indices.tombstones.size` indices while an Elasticsearch node is - // offline. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-delete-dangling-index DeleteDanglingIndex dangling_indices_delete_dangling_index.NewDeleteDanglingIndex - // Import a dangling index. - // - // If Elasticsearch encounters index data that is absent from the current - // cluster state, those indices are considered to be dangling. - // For example, this can happen if you delete more than - // `cluster.indices.tombstones.size` indices while an Elasticsearch node is - // offline. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-import-dangling-index ImportDanglingIndex dangling_indices_import_dangling_index.NewImportDanglingIndex - // Get the dangling indices. - // - // If Elasticsearch encounters index data that is absent from the current - // cluster state, those indices are considered to be dangling. - // For example, this can happen if you delete more than - // `cluster.indices.tombstones.size` indices while an Elasticsearch node is - // offline. - // - // Use this API to list dangling indices, which you can then import or delete. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-list-dangling-indices ListDanglingIndices dangling_indices_list_dangling_indices.NewListDanglingIndices } type Enrich struct { - // Delete an enrich policy. - // Deletes an existing enrich policy and its enrich index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-delete-policy - DeletePolicy enrich_delete_policy.NewDeletePolicy - // Run an enrich policy. - // Create the enrich index for an existing enrich policy. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-execute-policy + DeletePolicy enrich_delete_policy.NewDeletePolicy ExecutePolicy enrich_execute_policy.NewExecutePolicy - // Get an enrich policy. - // Returns information about an enrich policy. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-get-policy - GetPolicy enrich_get_policy.NewGetPolicy - // Create an enrich policy. - // Creates an enrich policy. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-put-policy - PutPolicy enrich_put_policy.NewPutPolicy - // Get enrich stats. - // Returns enrich coordinator statistics and information about enrich policies - // that are currently executing. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-stats - Stats enrich_stats.NewStats + GetPolicy enrich_get_policy.NewGetPolicy + PutPolicy enrich_put_policy.NewPutPolicy + Stats enrich_stats.NewStats } type Eql struct { - // Delete an async EQL search. - // Delete an async EQL search or a stored synchronous EQL search. - // The API also deletes results for the search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-delete - Delete eql_delete.NewDelete - // Get async EQL search results. - // Get the current status and available results for an async EQL search or a - // stored synchronous EQL search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get - Get eql_get.NewGet - // Get the async EQL status. - // Get the current status for an async EQL search or a stored synchronous EQL - // search without returning results. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get-status + Delete eql_delete.NewDelete + Get eql_get.NewGet GetStatus eql_get_status.NewGetStatus - // Get EQL search results. - // Returns search results for an Event Query Language (EQL) query. - // EQL assumes each document in a data stream or index corresponds to an event. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-search - Search eql_search.NewSearch + Search eql_search.NewSearch } type Esql struct { - // Run an async ES|QL query. - // Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its - // progress, and retrieve results when they become available. - // - // The API accepts the same parameters and request body as the synchronous query - // API, along with additional async related properties. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query - AsyncQuery esql_async_query.NewAsyncQuery - // Delete an async ES|QL query. - // If the query is still running, it is cancelled. - // Otherwise, the stored results are deleted. - // - // If the Elasticsearch security features are enabled, only the following users - // can use this API to delete a query: - // - // * The authenticated user that submitted the original query request - // * Users with the `cancel_task` cluster privilege - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-delete + AsyncQuery esql_async_query.NewAsyncQuery AsyncQueryDelete esql_async_query_delete.NewAsyncQueryDelete - // Get async ES|QL query results. - // Get the current status and available results or stored results for an ES|QL - // asynchronous query. - // If the Elasticsearch security features are enabled, only the user who first - // submitted the ES|QL query can retrieve the results using this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-get - AsyncQueryGet esql_async_query_get.NewAsyncQueryGet - // Stop async ES|QL query. - // - // This API interrupts the query execution and returns the results so far. - // If the Elasticsearch security features are enabled, only the user who first - // submitted the ES|QL query can stop it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-stop - AsyncQueryStop esql_async_query_stop.NewAsyncQueryStop - // Run an ES|QL query. - // Get search results for an ES|QL (Elasticsearch query language) query. - // https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest - Query esql_query.NewQuery + AsyncQueryGet esql_async_query_get.NewAsyncQueryGet + AsyncQueryStop esql_async_query_stop.NewAsyncQueryStop + Query esql_query.NewQuery } type Features struct { - // Get the features. - // Get a list of features that can be included in snapshots using the - // `feature_states` field when creating a snapshot. - // You can use this API to determine which feature states to include when taking - // a snapshot. - // By default, all feature states are included in a snapshot if that snapshot - // includes the global state, or none if it does not. - // - // A feature state includes one or more system indices necessary for a given - // feature to function. - // In order to ensure data integrity, all system indices that comprise a feature - // state are snapshotted and restored together. - // - // The features listed by this API are a combination of built-in features and - // features defined by plugins. - // In order for a feature state to be listed in this API and recognized as a - // valid feature state by the create snapshot API, the plugin that defines that - // feature must be installed on the master node. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-get-features - GetFeatures features_get_features.NewGetFeatures - // Reset the features. - // Clear all of the state information stored in system indices by Elasticsearch - // features, including the security and machine learning indices. - // - // WARNING: Intended for development and testing use only. Do not reset features - // on a production cluster. - // - // Return a cluster to the same state as a new installation by resetting the - // feature state for all Elasticsearch features. - // This deletes all state information stored in system indices. - // - // The response code is HTTP 200 if the state is successfully reset for all - // features. - // It is HTTP 500 if the reset operation failed for any feature. - // - // Note that select features might provide a way to reset particular system - // indices. - // Using this API resets all features, both those that are built-in and - // implemented as plugins. - // - // To list the features that will be affected, use the get features API. - // - // IMPORTANT: The features installed on the node you submit this request to are - // the features that will be reset. Run on the master node if you have any - // doubts about which plugins are installed on individual nodes. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-reset-features + GetFeatures features_get_features.NewGetFeatures ResetFeatures features_reset_features.NewResetFeatures } type Fleet struct { - // Get global checkpoints. - // - // Get the current global checkpoints for an index. - // This API is designed for internal use by the Fleet server project. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-fleet GlobalCheckpoints fleet_global_checkpoints.NewGlobalCheckpoints - // Run multiple Fleet searches. - // Run several Fleet searches with a single API request. - // The API follows the same structure as the multi search API. - // However, similar to the Fleet search API, it supports the - // `wait_for_checkpoints` parameter. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-fleet-msearch - Msearch fleet_msearch.NewMsearch - // Creates a secret stored by Fleet. - // - PostSecret fleet_post_secret.NewPostSecret - // Run a Fleet search. - // The purpose of the Fleet search API is to provide an API where the search - // will be run only - // after the provided checkpoint has been processed and is visible for searches - // inside of Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-fleet-search - Search fleet_search.NewSearch + Msearch fleet_msearch.NewMsearch + PostSecret fleet_post_secret.NewPostSecret + Search fleet_search.NewSearch } type Graph struct { - // Explore graph analytics. - // Extract and summarize information about the documents and terms in an - // Elasticsearch data stream or index. - // The easiest way to understand the behavior of this API is to use the Graph UI - // to explore connections. - // An initial request to the `_explore` API contains a seed query that - // identifies the documents of interest and specifies the fields that define the - // vertices and connections you want to include in the graph. - // Subsequent requests enable you to spider out from one more vertices of - // interest. - // You can exclude vertices that have already been returned. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-graph Explore graph_explore.NewExplore } type Ilm struct { - // Delete a lifecycle policy. - // You cannot delete policies that are currently in use. If the policy is being - // used to manage any indices, the request fails and returns an error. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-delete-lifecycle - DeleteLifecycle ilm_delete_lifecycle.NewDeleteLifecycle - // Explain the lifecycle state. - // Get the current lifecycle status for one or more indices. - // For data streams, the API retrieves the current lifecycle status for the - // stream's backing indices. - // - // The response indicates when the index entered each lifecycle state, provides - // the definition of the running phase, and information about any failures. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-explain-lifecycle - ExplainLifecycle ilm_explain_lifecycle.NewExplainLifecycle - // Get lifecycle policies. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-lifecycle - GetLifecycle ilm_get_lifecycle.NewGetLifecycle - // Get the ILM status. - // - // Get the current index lifecycle management status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-status - GetStatus ilm_get_status.NewGetStatus - // Migrate to data tiers routing. - // Switch the indices, ILM policies, and legacy, composable, and component - // templates from using custom node attributes and attribute-based allocation - // filters to using data tiers. - // Optionally, delete one legacy index template. - // Using node roles enables ILM to automatically move the indices between data - // tiers. - // - // Migrating away from custom node attributes routing can be manually performed. - // This API provides an automated way of performing three out of the four manual - // steps listed in the migration guide: - // - // 1. Stop setting the custom hot attribute on new indices. - // 1. Remove custom allocation settings from existing ILM policies. - // 1. Replace custom allocation settings from existing indices with the - // corresponding tier preference. - // - // ILM must be stopped before performing the migration. - // Use the stop ILM and get ILM status APIs to wait until the reported operation - // mode is `STOPPED`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-migrate-to-data-tiers + DeleteLifecycle ilm_delete_lifecycle.NewDeleteLifecycle + ExplainLifecycle ilm_explain_lifecycle.NewExplainLifecycle + GetLifecycle ilm_get_lifecycle.NewGetLifecycle + GetStatus ilm_get_status.NewGetStatus MigrateToDataTiers ilm_migrate_to_data_tiers.NewMigrateToDataTiers - // Move to a lifecycle step. - // Manually move an index into a specific step in the lifecycle policy and run - // that step. - // - // WARNING: This operation can result in the loss of data. Manually moving an - // index into a specific step runs that step even if it has already been - // performed. This is a potentially destructive action and this should be - // considered an expert level API. - // - // You must specify both the current step and the step to be executed in the - // body of the request. - // The request will fail if the current step does not match the step currently - // running for the index - // This is to prevent the index from being moved from an unexpected step into - // the next step. - // - // When specifying the target (`next_step`) to which the index will be moved, - // either the name or both the action and name fields are optional. - // If only the phase is specified, the index will move to the first step of the - // first action in the target phase. - // If the phase and action are specified, the index will move to the first step - // of the specified action in the specified phase. - // Only actions specified in the ILM policy are considered valid. - // An index cannot move to a step that is not part of its policy. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-move-to-step - MoveToStep ilm_move_to_step.NewMoveToStep - // Create or update a lifecycle policy. - // If the specified policy exists, it is replaced and the policy version is - // incremented. - // - // NOTE: Only the latest version of the policy is stored, you cannot revert to - // previous versions. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-put-lifecycle - PutLifecycle ilm_put_lifecycle.NewPutLifecycle - // Remove policies from an index. - // Remove the assigned lifecycle policies from an index or a data stream's - // backing indices. - // It also stops managing the indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-remove-policy - RemovePolicy ilm_remove_policy.NewRemovePolicy - // Retry a policy. - // Retry running the lifecycle policy for an index that is in the ERROR step. - // The API sets the policy back to the step where the error occurred and runs - // the step. - // Use the explain lifecycle state API to determine whether an index is in the - // ERROR step. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-retry - Retry ilm_retry.NewRetry - // Start the ILM plugin. - // Start the index lifecycle management plugin if it is currently stopped. - // ILM is started automatically when the cluster is formed. - // Restarting ILM is necessary only when it has been stopped using the stop ILM - // API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-start - Start ilm_start.NewStart - // Stop the ILM plugin. - // Halt all lifecycle management operations and stop the index lifecycle - // management plugin. - // This is useful when you are performing maintenance on the cluster and need to - // prevent ILM from performing any actions on your indices. - // - // The API returns as soon as the stop request has been acknowledged, but the - // plugin might continue to run until in-progress operations complete and the - // plugin can be safely stopped. - // Use the get ILM status API to check whether ILM is running. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-stop - Stop ilm_stop.NewStop + MoveToStep ilm_move_to_step.NewMoveToStep + PutLifecycle ilm_put_lifecycle.NewPutLifecycle + RemovePolicy ilm_remove_policy.NewRemovePolicy + Retry ilm_retry.NewRetry + Start ilm_start.NewStart + Stop ilm_stop.NewStop } type Indices struct { - // Add an index block. - // - // Add an index block to an index. - // Index blocks limit the operations allowed on an index by blocking specific - // operation types. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-add-block - AddBlock indices_add_block.NewAddBlock - // Get tokens from text analysis. - // The analyze API performs analysis on a text string and returns the resulting - // tokens. - // - // Generating excessive amount of tokens may cause a node to run out of memory. - // The `index.analyze.max_token_count` setting enables you to limit the number - // of tokens that can be produced. - // If more than this limit of tokens gets generated, an error occurs. - // The `_analyze` endpoint without a specified index will always use `10000` as - // its limit. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-analyze - Analyze indices_analyze.NewAnalyze - // Cancel a migration reindex operation. - // - // Cancel a migration reindex attempt for a data stream or index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-cancel-migrate-reindex - CancelMigrateReindex indices_cancel_migrate_reindex.NewCancelMigrateReindex - // Clear the cache. - // Clear the cache of one or more indices. - // For data streams, the API clears the caches of the stream's backing indices. - // - // By default, the clear cache API clears all caches. - // To clear only specific caches, use the `fielddata`, `query`, or `request` - // parameters. - // To clear the cache only of specific fields, use the `fields` parameter. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-clear-cache - ClearCache indices_clear_cache.NewClearCache - // Clone an index. - // Clone an existing index into a new index. - // Each original primary shard is cloned into a new primary shard in the new - // index. - // - // IMPORTANT: Elasticsearch does not apply index templates to the resulting - // index. - // The API also does not copy index metadata from the original index. - // Index metadata includes aliases, index lifecycle management phase - // definitions, and cross-cluster replication (CCR) follower information. - // For example, if you clone a CCR follower index, the resulting clone will not - // be a follower index. - // - // The clone API copies most index settings from the source index to the - // resulting index, with the exception of `index.number_of_replicas` and - // `index.auto_expand_replicas`. - // To set the number of replicas in the resulting index, configure these - // settings in the clone request. - // - // Cloning works as follows: - // - // * First, it creates a new target index with the same definition as the source - // index. - // * Then it hard-links segments from the source index into the target index. If - // the file system does not support hard-linking, all segments are copied into - // the new index, which is a much more time consuming process. - // * Finally, it recovers the target index as though it were a closed index - // which had just been re-opened. - // - // IMPORTANT: Indices can only be cloned if they meet the following - // requirements: - // - // * The index must be marked as read-only and have a cluster health status of - // green. - // * The target index must not exist. - // * The source index must have the same number of primary shards as the target - // index. - // * The node handling the clone process must have sufficient free disk space to - // accommodate a second copy of the existing index. - // - // The current write index on a data stream cannot be cloned. - // In order to clone the current write index, the data stream must first be - // rolled over so that a new write index is created and then the previous write - // index can be cloned. - // - // NOTE: Mappings cannot be specified in the `_clone` request. The mappings of - // the source index will be used for the target index. - // - // **Monitor the cloning process** - // - // The cloning process can be monitored with the cat recovery API or the cluster - // health API can be used to wait until all primary shards have been allocated - // by setting the `wait_for_status` parameter to `yellow`. - // - // The `_clone` API returns as soon as the target index has been added to the - // cluster state, before any shards have been allocated. - // At this point, all shards are in the state unassigned. - // If, for any reason, the target index can't be allocated, its primary shard - // will remain unassigned until it can be allocated on that node. - // - // Once the primary shard is allocated, it moves to state initializing, and the - // clone process begins. - // When the clone operation completes, the shard will become active. - // At that point, Elasticsearch will try to allocate any replicas and may decide - // to relocate the primary shard to another node. - // - // **Wait for active shards** - // - // Because the clone operation creates a new index to clone the shards to, the - // wait for active shards setting on index creation applies to the clone index - // action as well. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-clone - Clone indices_clone.NewClone - // Close an index. - // A closed index is blocked for read or write operations and does not allow all - // operations that opened indices allow. - // It is not possible to index documents or to search for documents in a closed - // index. - // Closed indices do not have to maintain internal data structures for indexing - // or searching documents, which results in a smaller overhead on the cluster. - // - // When opening or closing an index, the master node is responsible for - // restarting the index shards to reflect the new state of the index. - // The shards will then go through the normal recovery process. - // The data of opened and closed indices is automatically replicated by the - // cluster to ensure that enough shard copies are safely kept around at all - // times. - // - // You can open and close multiple indices. - // An error is thrown if the request explicitly refers to a missing index. - // This behaviour can be turned off using the `ignore_unavailable=true` - // parameter. - // - // By default, you must explicitly name the indices you are opening or closing. - // To open or close indices with `_all`, `*`, or other wildcard expressions, - // change the` action.destructive_requires_name` setting to `false`. This - // setting can also be changed with the cluster update settings API. - // - // Closed indices consume a significant amount of disk-space which can cause - // problems in managed environments. - // Closing indices can be turned off with the cluster settings API by setting - // `cluster.indices.close.enable` to `false`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-close - Close indices_close.NewClose - // Create an index. - // You can use the create index API to add a new index to an Elasticsearch - // cluster. - // When creating an index, you can specify the following: - // - // * Settings for the index. - // * Mappings for fields in the index. - // * Index aliases - // - // **Wait for active shards** - // - // By default, index creation will only return a response to the client when the - // primary copies of each shard have been started, or the request times out. - // The index creation response will indicate what happened. - // For example, `acknowledged` indicates whether the index was successfully - // created in the cluster, `while shards_acknowledged` indicates whether the - // requisite number of shard copies were started for each shard in the index - // before timing out. - // Note that it is still possible for either `acknowledged` or - // `shards_acknowledged` to be `false`, but for the index creation to be - // successful. - // These values simply indicate whether the operation completed before the - // timeout. - // If `acknowledged` is false, the request timed out before the cluster state - // was updated with the newly created index, but it probably will be created - // sometime soon. - // If `shards_acknowledged` is false, then the request timed out before the - // requisite number of shards were started (by default just the primaries), even - // if the cluster state was successfully updated to reflect the newly created - // index (that is to say, `acknowledged` is `true`). - // - // You can change the default of only waiting for the primary shards to start - // through the index setting `index.write.wait_for_active_shards`. - // Note that changing this setting will also affect the `wait_for_active_shards` - // value on all subsequent write operations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create - Create indices_create.NewCreate - // Create a data stream. - // - // You must have a matching index template with data stream enabled. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-data-stream - CreateDataStream indices_create_data_stream.NewCreateDataStream - // Create an index from a source index. - // - // Copy the mappings and settings from the source index to a destination index - // while allowing request settings and mappings to override the source values. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-from - CreateFrom indices_create_from.NewCreateFrom - // Get data stream stats. - // - // Get statistics for one or more data streams. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-data-streams-stats-1 - DataStreamsStats indices_data_streams_stats.NewDataStreamsStats - // Delete indices. - // Deleting an index deletes its documents, shards, and metadata. - // It does not delete related Kibana components, such as data views, - // visualizations, or dashboards. - // - // You cannot delete the current write index of a data stream. - // To delete the index, you must roll over the data stream so a new write index - // is created. - // You can then use the delete index API to delete the previous write index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete - Delete indices_delete.NewDelete - // Delete an alias. - // Removes a data stream or index from an alias. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-alias - DeleteAlias indices_delete_alias.NewDeleteAlias - // Delete data stream lifecycles. - // Removes the data stream lifecycle from a data stream, rendering it not - // managed by the data stream lifecycle. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-lifecycle - DeleteDataLifecycle indices_delete_data_lifecycle.NewDeleteDataLifecycle - // Delete data streams. - // Deletes one or more data streams and their backing indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-stream - DeleteDataStream indices_delete_data_stream.NewDeleteDataStream - // Delete an index template. - // The provided may contain multiple template names separated - // by a comma. If multiple template - // names are specified then there is no wildcard support and the provided names - // should match completely with - // existing templates. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-index-template - DeleteIndexTemplate indices_delete_index_template.NewDeleteIndexTemplate - // Delete a legacy index template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-template - DeleteTemplate indices_delete_template.NewDeleteTemplate - // Analyze the index disk usage. - // Analyze the disk usage of each field of an index or data stream. - // This API might not support indices created in previous Elasticsearch - // versions. - // The result of a small index can be inaccurate as some parts of an index might - // not be analyzed by the API. - // - // NOTE: The total size of fields of the analyzed shards of the index in the - // response is usually smaller than the index `store_size` value because some - // small metadata files are ignored and some parts of data files might not be - // scanned by the API. - // Since stored fields are stored together in a compressed format, the sizes of - // stored fields are also estimates and can be inaccurate. - // The stored size of the `_id` field is likely underestimated while the - // `_source` field is overestimated. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-disk-usage - DiskUsage indices_disk_usage.NewDiskUsage - // Downsample an index. - // Aggregate a time series (TSDS) index and store pre-computed statistical - // summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric - // field grouped by a configured time interval. - // For example, a TSDS index that contains metrics sampled every 10 seconds can - // be downsampled to an hourly index. - // All documents within an hour interval are summarized and stored as a single - // document in the downsample index. - // - // NOTE: Only indices in a time series data stream are supported. - // Neither field nor document level security can be defined on the source index. - // The source index must be read only (`index.blocks.write: true`). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-downsample - Downsample indices_downsample.NewDownsample - // Check indices. - // Check if one or more indices, index aliases, or data streams exist. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists - Exists indices_exists.NewExists - // Check aliases. - // - // Check if one or more data stream or index aliases exist. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-alias - ExistsAlias indices_exists_alias.NewExistsAlias - // Check index templates. - // - // Check whether index templates exist. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-index-template - ExistsIndexTemplate indices_exists_index_template.NewExistsIndexTemplate - // Check existence of index templates. - // Get information about whether index templates exist. - // Index templates define settings, mappings, and aliases that can be applied - // automatically to new indices. - // - // IMPORTANT: This documentation is about legacy index templates, which are - // deprecated and will be replaced by the composable templates introduced in - // Elasticsearch 7.8. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-template - ExistsTemplate indices_exists_template.NewExistsTemplate - // Get the status for a data stream lifecycle. - // Get information about an index or data stream's current data stream lifecycle - // status, such as time since index creation, time since rollover, the lifecycle - // configuration managing the index, or any errors encountered during lifecycle - // execution. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-explain-data-lifecycle - ExplainDataLifecycle indices_explain_data_lifecycle.NewExplainDataLifecycle - // Get field usage stats. - // Get field usage information for each shard and field of an index. - // Field usage statistics are automatically captured when queries are running on - // a cluster. - // A shard-level search request that accesses a given field, even if multiple - // times during that request, is counted as a single use. - // - // The response body reports the per-shard usage count of the data structures - // that back the fields in the index. - // A given request will increment each count by a maximum value of 1, even if - // the request accesses the same field multiple times. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-field-usage-stats - FieldUsageStats indices_field_usage_stats.NewFieldUsageStats - // Flush data streams or indices. - // Flushing a data stream or index is the process of making sure that any data - // that is currently only stored in the transaction log is also permanently - // stored in the Lucene index. - // When restarting, Elasticsearch replays any unflushed operations from the - // transaction log into the Lucene index to bring it back into the state that it - // was in before the restart. - // Elasticsearch automatically triggers flushes as needed, using heuristics that - // trade off the size of the unflushed transaction log against the cost of - // performing each flush. - // - // After each operation has been flushed it is permanently stored in the Lucene - // index. - // This may mean that there is no need to maintain an additional copy of it in - // the transaction log. - // The transaction log is made up of multiple files, called generations, and - // Elasticsearch will delete any generation files when they are no longer - // needed, freeing up disk space. - // - // It is also possible to trigger a flush on one or more indices using the flush - // API, although it is rare for users to need to call this API directly. - // If you call the flush API after indexing some documents then a successful - // response indicates that Elasticsearch has flushed all the documents that were - // indexed before the flush API was called. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-flush - Flush indices_flush.NewFlush - // Force a merge. - // Perform the force merge operation on the shards of one or more indices. - // For data streams, the API forces a merge on the shards of the stream's - // backing indices. - // - // Merging reduces the number of segments in each shard by merging some of them - // together and also frees up the space used by deleted documents. - // Merging normally happens automatically, but sometimes it is useful to trigger - // a merge manually. - // - // WARNING: We recommend force merging only a read-only index (meaning the index - // is no longer receiving writes). - // When documents are updated or deleted, the old version is not immediately - // removed but instead soft-deleted and marked with a "tombstone". - // These soft-deleted documents are automatically cleaned up during regular - // segment merges. - // But force merge can cause very large (greater than 5 GB) segments to be - // produced, which are not eligible for regular merges. - // So the number of soft-deleted documents can then grow rapidly, resulting in - // higher disk usage and worse search performance. - // If you regularly force merge an index receiving writes, this can also make - // snapshots more expensive, since the new documents can't be backed up - // incrementally. - // - // **Blocks during a force merge** - // - // Calls to this API block until the merge is complete (unless request contains - // `wait_for_completion=false`). - // If the client connection is lost before completion then the force merge - // process will continue in the background. - // Any new requests to force merge the same indices will also block until the - // ongoing force merge is complete. - // - // **Running force merge asynchronously** - // - // If the request contains `wait_for_completion=false`, Elasticsearch performs - // some preflight checks, launches the request, and returns a task you can use - // to get the status of the task. - // However, you can not cancel this task as the force merge task is not - // cancelable. - // Elasticsearch creates a record of this task as a document at - // `_tasks/`. - // When you are done with a task, you should delete the task document so - // Elasticsearch can reclaim the space. - // - // **Force merging multiple indices** - // - // You can force merge multiple indices with a single request by targeting: - // - // * One or more data streams that contain multiple backing indices - // * Multiple indices - // * One or more aliases - // * All data streams and indices in a cluster - // - // Each targeted shard is force-merged separately using the force_merge - // threadpool. - // By default each node only has a single `force_merge` thread which means that - // the shards on that node are force-merged one at a time. - // If you expand the `force_merge` threadpool on a node then it will force merge - // its shards in parallel - // - // Force merge makes the storage for the shard being merged temporarily - // increase, as it may require free space up to triple its size in case - // `max_num_segments parameter` is set to `1`, to rewrite all segments into a - // new one. - // - // **Data streams and time-based indices** - // - // Force-merging is useful for managing a data stream's older backing indices - // and other time-based indices, particularly after a rollover. - // In these cases, each index only receives indexing traffic for a certain - // period of time. - // Once an index receive no more writes, its shards can be force-merged to a - // single segment. - // This can be a good idea because single-segment shards can sometimes use - // simpler and more efficient data structures to perform searches. - // For example: - // - // ``` - // POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-forcemerge - Forcemerge indices_forcemerge.NewForcemerge - // Get index information. - // Get information about one or more indices. For data streams, the API returns - // information about the - // stream’s backing indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get - Get indices_get.NewGet - // Get aliases. - // Retrieves information for one or more data stream or index aliases. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-alias - GetAlias indices_get_alias.NewGetAlias - // Get data stream lifecycles. - // - // Get the data stream lifecycle configuration of one or more data streams. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle - GetDataLifecycle indices_get_data_lifecycle.NewGetDataLifecycle - // Get data stream lifecycle stats. - // Get statistics about the data streams that are managed by a data stream - // lifecycle. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle-stats - GetDataLifecycleStats indices_get_data_lifecycle_stats.NewGetDataLifecycleStats - // Get data streams. - // - // Get information about one or more data streams. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-stream - GetDataStream indices_get_data_stream.NewGetDataStream - // Get mapping definitions. - // Retrieves mapping definitions for one or more fields. - // For data streams, the API retrieves field mappings for the stream’s backing - // indices. - // - // This API is useful if you don't need a complete mapping or if an index - // mapping contains a large number of fields. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping - GetFieldMapping indices_get_field_mapping.NewGetFieldMapping - // Get index templates. - // Get information about one or more index templates. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-index-template - GetIndexTemplate indices_get_index_template.NewGetIndexTemplate - // Get mapping definitions. - // For data streams, the API retrieves mappings for the stream’s backing - // indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping - GetMapping indices_get_mapping.NewGetMapping - // Get the migration reindexing status. - // - // Get the status of a migration reindex attempt for a data stream or index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + AddBlock indices_add_block.NewAddBlock + Analyze indices_analyze.NewAnalyze + CancelMigrateReindex indices_cancel_migrate_reindex.NewCancelMigrateReindex + ClearCache indices_clear_cache.NewClearCache + Clone indices_clone.NewClone + Close indices_close.NewClose + Create indices_create.NewCreate + CreateDataStream indices_create_data_stream.NewCreateDataStream + CreateFrom indices_create_from.NewCreateFrom + DataStreamsStats indices_data_streams_stats.NewDataStreamsStats + Delete indices_delete.NewDelete + DeleteAlias indices_delete_alias.NewDeleteAlias + DeleteDataLifecycle indices_delete_data_lifecycle.NewDeleteDataLifecycle + DeleteDataStream indices_delete_data_stream.NewDeleteDataStream + DeleteIndexTemplate indices_delete_index_template.NewDeleteIndexTemplate + DeleteTemplate indices_delete_template.NewDeleteTemplate + DiskUsage indices_disk_usage.NewDiskUsage + Downsample indices_downsample.NewDownsample + Exists indices_exists.NewExists + ExistsAlias indices_exists_alias.NewExistsAlias + ExistsIndexTemplate indices_exists_index_template.NewExistsIndexTemplate + ExistsTemplate indices_exists_template.NewExistsTemplate + ExplainDataLifecycle indices_explain_data_lifecycle.NewExplainDataLifecycle + FieldUsageStats indices_field_usage_stats.NewFieldUsageStats + Flush indices_flush.NewFlush + Forcemerge indices_forcemerge.NewForcemerge + Get indices_get.NewGet + GetAlias indices_get_alias.NewGetAlias + GetDataLifecycle indices_get_data_lifecycle.NewGetDataLifecycle + GetDataLifecycleStats indices_get_data_lifecycle_stats.NewGetDataLifecycleStats + GetDataStream indices_get_data_stream.NewGetDataStream + GetFieldMapping indices_get_field_mapping.NewGetFieldMapping + GetIndexTemplate indices_get_index_template.NewGetIndexTemplate + GetMapping indices_get_mapping.NewGetMapping GetMigrateReindexStatus indices_get_migrate_reindex_status.NewGetMigrateReindexStatus - // Get index settings. - // Get setting information for one or more indices. - // For data streams, it returns setting information for the stream's backing - // indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-settings - GetSettings indices_get_settings.NewGetSettings - // Get index templates. - // Get information about one or more index templates. - // - // IMPORTANT: This documentation is about legacy index templates, which are - // deprecated and will be replaced by the composable templates introduced in - // Elasticsearch 7.8. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-template - GetTemplate indices_get_template.NewGetTemplate - // Reindex legacy backing indices. - // - // Reindex all legacy backing indices for a data stream. - // This operation occurs in a persistent task. - // The persistent task ID is returned immediately and the reindexing work is - // completed in that task. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-reindex - MigrateReindex indices_migrate_reindex.NewMigrateReindex - // Convert an index alias to a data stream. - // Converts an index alias to a data stream. - // You must have a matching index template that is data stream enabled. - // The alias must meet the following criteria: - // The alias must have a write index; - // All indices for the alias must have a `@timestamp` field mapping of a `date` - // or `date_nanos` field type; - // The alias must not have any filters; - // The alias must not use custom routing. - // If successful, the request removes the alias and creates a data stream with - // the same name. - // The indices for the alias become hidden backing indices for the stream. - // The write index for the alias becomes the write index for the stream. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-to-data-stream - MigrateToDataStream indices_migrate_to_data_stream.NewMigrateToDataStream - // Update data streams. - // Performs one or more data stream modification actions in a single atomic - // operation. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-modify-data-stream - ModifyDataStream indices_modify_data_stream.NewModifyDataStream - // Open a closed index. - // For data streams, the API opens any closed backing indices. - // - // A closed index is blocked for read/write operations and does not allow all - // operations that opened indices allow. - // It is not possible to index documents or to search for documents in a closed - // index. - // This allows closed indices to not have to maintain internal data structures - // for indexing or searching documents, resulting in a smaller overhead on the - // cluster. - // - // When opening or closing an index, the master is responsible for restarting - // the index shards to reflect the new state of the index. - // The shards will then go through the normal recovery process. - // The data of opened or closed indices is automatically replicated by the - // cluster to ensure that enough shard copies are safely kept around at all - // times. - // - // You can open and close multiple indices. - // An error is thrown if the request explicitly refers to a missing index. - // This behavior can be turned off by using the `ignore_unavailable=true` - // parameter. - // - // By default, you must explicitly name the indices you are opening or closing. - // To open or close indices with `_all`, `*`, or other wildcard expressions, - // change the `action.destructive_requires_name` setting to `false`. - // This setting can also be changed with the cluster update settings API. - // - // Closed indices consume a significant amount of disk-space which can cause - // problems in managed environments. - // Closing indices can be turned off with the cluster settings API by setting - // `cluster.indices.close.enable` to `false`. - // - // Because opening or closing an index allocates its shards, the - // `wait_for_active_shards` setting on index creation applies to the `_open` and - // `_close` index actions as well. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-open - Open indices_open.NewOpen - // Promote a data stream. - // Promote a data stream from a replicated data stream managed by cross-cluster - // replication (CCR) to a regular data stream. - // - // With CCR auto following, a data stream from a remote cluster can be - // replicated to the local cluster. - // These data streams can't be rolled over in the local cluster. - // These replicated data streams roll over only if the upstream data stream - // rolls over. - // In the event that the remote cluster is no longer available, the data stream - // in the local cluster can be promoted to a regular data stream, which allows - // these data streams to be rolled over in the local cluster. - // - // NOTE: When promoting a data stream, ensure the local cluster has a data - // stream enabled index template that matches the data stream. - // If this is missing, the data stream will not be able to roll over until a - // matching index template is created. - // This will affect the lifecycle management of the data stream and interfere - // with the data stream size and retention. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-promote-data-stream - PromoteDataStream indices_promote_data_stream.NewPromoteDataStream - // Create or update an alias. - // Adds a data stream or index to an alias. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-alias - PutAlias indices_put_alias.NewPutAlias - // Update data stream lifecycles. - // Update the data stream lifecycle of the specified data streams. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-data-lifecycle - PutDataLifecycle indices_put_data_lifecycle.NewPutDataLifecycle - // Create or update an index template. - // Index templates define settings, mappings, and aliases that can be applied - // automatically to new indices. - // - // Elasticsearch applies templates to new indices based on an wildcard pattern - // that matches the index name. - // Index templates are applied during data stream or index creation. - // For data streams, these settings and mappings are applied when the stream's - // backing indices are created. - // Settings and mappings specified in a create index API request override any - // settings or mappings specified in an index template. - // Changes to index templates do not affect existing indices, including the - // existing backing indices of a data stream. - // - // You can use C-style `/* *\/` block comments in index templates. - // You can include comments anywhere in the request body, except before the - // opening curly bracket. - // - // **Multiple matching templates** - // - // If multiple index templates match the name of a new index or data stream, the - // template with the highest priority is used. - // - // Multiple templates with overlapping index patterns at the same priority are - // not allowed and an error will be thrown when attempting to create a template - // matching an existing index template at identical priorities. - // - // **Composing aliases, mappings, and settings** - // - // When multiple component templates are specified in the `composed_of` field - // for an index template, they are merged in the order specified, meaning that - // later component templates override earlier component templates. - // Any mappings, settings, or aliases from the parent index template are merged - // in next. - // Finally, any configuration on the index request itself is merged. - // Mapping definitions are merged recursively, which means that later mapping - // components can introduce new field mappings and update the mapping - // configuration. - // If a field mapping is already contained in an earlier component, its - // definition will be completely overwritten by the later one. - // This recursive merging strategy applies not only to field mappings, but also - // root options like `dynamic_templates` and `meta`. - // If an earlier component contains a `dynamic_templates` block, then by default - // new `dynamic_templates` entries are appended onto the end. - // If an entry already exists with the same key, then it is overwritten by the - // new definition. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-index-template - PutIndexTemplate indices_put_index_template.NewPutIndexTemplate - // Update field mappings. - // Add new fields to an existing data stream or index. - // You can also use this API to change the search settings of existing fields - // and add new properties to existing object fields. - // For data streams, these changes are applied to all backing indices by - // default. - // - // **Add multi-fields to an existing field** - // - // Multi-fields let you index the same field in different ways. - // You can use this API to update the fields mapping parameter and enable - // multi-fields for an existing field. - // WARNING: If an index (or data stream) contains documents when you add a - // multi-field, those documents will not have values for the new multi-field. - // You can populate the new multi-field with the update by query API. - // - // **Change supported mapping parameters for an existing field** - // - // The documentation for each mapping parameter indicates whether you can update - // it for an existing field using this API. - // For example, you can use the update mapping API to update the `ignore_above` - // parameter. - // - // **Change the mapping of an existing field** - // - // Except for supported mapping parameters, you can't change the mapping or - // field type of an existing field. - // Changing an existing field could invalidate data that's already indexed. - // - // If you need to change the mapping of a field in a data stream's backing - // indices, refer to documentation about modifying data streams. - // If you need to change the mapping of a field in other indices, create a new - // index with the correct mapping and reindex your data into that index. - // - // **Rename a field** - // - // Renaming a field would invalidate data already indexed under the old field - // name. - // Instead, add an alias field to create an alternate field name. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-mapping - PutMapping indices_put_mapping.NewPutMapping - // Update index settings. - // Changes dynamic index settings in real time. - // For data streams, index setting changes are applied to all backing indices by - // default. - // - // To revert a setting to the default value, use a null value. - // The list of per-index settings that can be updated dynamically on live - // indices can be found in index module documentation. - // To preserve existing settings from being updated, set the `preserve_existing` - // parameter to `true`. - // - // NOTE: You can only define new analyzers on closed indices. - // To add an analyzer, you must close the index, define the analyzer, and reopen - // the index. - // You cannot close the write index of a data stream. - // To update the analyzer for a data stream's write index and future backing - // indices, update the analyzer in the index template used by the stream. - // Then roll over the data stream to apply the new analyzer to the stream's - // write index and future backing indices. - // This affects searches and any new data added to the stream after the - // rollover. - // However, it does not affect the data stream's backing indices or their - // existing data. - // To change the analyzer for existing backing indices, you must create a new - // data stream and reindex your data into it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-settings - PutSettings indices_put_settings.NewPutSettings - // Create or update an index template. - // Index templates define settings, mappings, and aliases that can be applied - // automatically to new indices. - // Elasticsearch applies templates to new indices based on an index pattern that - // matches the index name. - // - // IMPORTANT: This documentation is about legacy index templates, which are - // deprecated and will be replaced by the composable templates introduced in - // Elasticsearch 7.8. - // - // Composable templates always take precedence over legacy templates. - // If no composable template matches a new index, matching legacy templates are - // applied according to their order. - // - // Index templates are only applied during index creation. - // Changes to index templates do not affect existing indices. - // Settings and mappings specified in create index API requests override any - // settings or mappings specified in an index template. - // - // You can use C-style `/* *\/` block comments in index templates. - // You can include comments anywhere in the request body, except before the - // opening curly bracket. - // - // **Indices matching multiple templates** - // - // Multiple index templates can potentially match an index, in this case, both - // the settings and mappings are merged into the final configuration of the - // index. - // The order of the merging can be controlled using the order parameter, with - // lower order being applied first, and higher orders overriding them. - // NOTE: Multiple matching templates with the same order value will result in a - // non-deterministic merging order. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-template - PutTemplate indices_put_template.NewPutTemplate - // Get index recovery information. - // Get information about ongoing and completed shard recoveries for one or more - // indices. - // For data streams, the API returns information for the stream's backing - // indices. - // - // All recoveries, whether ongoing or complete, are kept in the cluster state - // and may be reported on at any time. - // - // Shard recovery is the process of initializing a shard copy, such as restoring - // a primary shard from a snapshot or creating a replica shard from a primary - // shard. - // When a shard recovery completes, the recovered shard is available for search - // and indexing. - // - // Recovery automatically occurs during the following processes: - // - // * When creating an index for the first time. - // * When a node rejoins the cluster and starts up any missing primary shard - // copies using the data that it holds in its data path. - // * Creation of new replica shard copies from the primary. - // * Relocation of a shard copy to a different node in the same cluster. - // * A snapshot restore operation. - // * A clone, shrink, or split operation. - // - // You can determine the cause of a shard recovery using the recovery or cat - // recovery APIs. - // - // The index recovery API reports information about completed recoveries only - // for shard copies that currently exist in the cluster. - // It only reports the last recovery for each shard copy and does not report - // historical information about earlier recoveries, nor does it report - // information about the recoveries of shard copies that no longer exist. - // This means that if a shard copy completes a recovery and then Elasticsearch - // relocates it onto a different node then the information about the original - // recovery will not be shown in the recovery API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-recovery - Recovery indices_recovery.NewRecovery - // Refresh an index. - // A refresh makes recent operations performed on one or more indices available - // for search. - // For data streams, the API runs the refresh operation on the stream’s backing - // indices. - // - // By default, Elasticsearch periodically refreshes indices every second, but - // only on indices that have received one search request or more in the last 30 - // seconds. - // You can change this default interval with the `index.refresh_interval` - // setting. - // - // Refresh requests are synchronous and do not return a response until the - // refresh operation completes. - // - // Refreshes are resource-intensive. - // To ensure good cluster performance, it's recommended to wait for - // Elasticsearch's periodic refresh rather than performing an explicit refresh - // when possible. - // - // If your application workflow indexes documents and then runs a search to - // retrieve the indexed document, it's recommended to use the index API's - // `refresh=wait_for` query parameter option. - // This option ensures the indexing operation waits for a periodic refresh - // before running the search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-refresh - Refresh indices_refresh.NewRefresh - // Reload search analyzers. - // Reload an index's search analyzers and their resources. - // For data streams, the API reloads search analyzers and resources for the - // stream's backing indices. - // - // IMPORTANT: After reloading the search analyzers you should clear the request - // cache to make sure it doesn't contain responses derived from the previous - // versions of the analyzer. - // - // You can use the reload search analyzers API to pick up changes to synonym - // files used in the `synonym_graph` or `synonym` token filter of a search - // analyzer. - // To be eligible, the token filter must have an `updateable` flag of `true` and - // only be used in search analyzers. - // - // NOTE: This API does not perform a reload for each shard of an index. - // Instead, it performs a reload for each node containing index shards. - // As a result, the total shard count returned by the API can differ from the - // number of index shards. - // Because reloading affects every node with an index shard, it is important to - // update the synonym file on every data node in the cluster--including nodes - // that don't contain a shard replica--before using this API. - // This ensures the synonym file is updated everywhere in the cluster in case - // shards are relocated in the future. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-reload-search-analyzers - ReloadSearchAnalyzers indices_reload_search_analyzers.NewReloadSearchAnalyzers - // Resolve the cluster. - // - // Resolve the specified index expressions to return information about each - // cluster, including the local "querying" cluster, if included. - // If no index expression is provided, the API will return information about all - // the remote clusters that are configured on the querying cluster. - // - // This endpoint is useful before doing a cross-cluster search in order to - // determine which remote clusters should be included in a search. - // - // You use the same index expression with this endpoint as you would for - // cross-cluster search. - // Index and cluster exclusions are also supported with this endpoint. - // - // For each cluster in the index expression, information is returned about: - // - // * Whether the querying ("local") cluster is currently connected to each - // remote cluster specified in the index expression. Note that this endpoint - // actively attempts to contact the remote clusters, unlike the `remote/info` - // endpoint. - // * Whether each remote cluster is configured with `skip_unavailable` as `true` - // or `false`. - // * Whether there are any indices, aliases, or data streams on that cluster - // that match the index expression. - // * Whether the search is likely to have errors returned when you do the - // cross-cluster search (including any authorization errors if you do not have - // permission to query the index). - // * Cluster version information, including the Elasticsearch server version. - // - // For example, `GET /_resolve/cluster/my-index-*,cluster*:my-index-*` returns - // information about the local cluster and all remotely configured clusters that - // start with the alias `cluster*`. - // Each cluster returns information about whether it has any indices, aliases or - // data streams that match `my-index-*`. - // - // ## Note on backwards compatibility - // The ability to query without an index expression was added in version 8.18, - // so when - // querying remote clusters older than that, the local cluster will send the - // index - // expression `dummy*` to those remote clusters. Thus, if an errors occur, you - // may see a reference - // to that index expression even though you didn't request it. If it causes a - // problem, you can - // instead include an index expression like `*:*` to bypass the issue. - // - // ## Advantages of using this endpoint before a cross-cluster search - // - // You may want to exclude a cluster or index from a search when: - // - // * A remote cluster is not currently connected and is configured with - // `skip_unavailable=false`. Running a cross-cluster search under those - // conditions will cause the entire search to fail. - // * A cluster has no matching indices, aliases or data streams for the index - // expression (or your user does not have permissions to search them). For - // example, suppose your index expression is `logs*,remote1:logs*` and the - // remote1 cluster has no indices, aliases or data streams that match `logs*`. - // In that case, that cluster will return no results from that cluster if you - // include it in a cross-cluster search. - // * The index expression (combined with any query parameters you specify) will - // likely cause an exception to be thrown when you do the search. In these - // cases, the "error" field in the `_resolve/cluster` response will be present. - // (This is also where security/permission errors will be shown.) - // * A remote cluster is an older version that does not support the feature you - // want to use in your search. - // - // ## Test availability of remote clusters - // - // The `remote/info` endpoint is commonly used to test whether the "local" - // cluster (the cluster being queried) is connected to its remote clusters, but - // it does not necessarily reflect whether the remote cluster is available or - // not. - // The remote cluster may be available, while the local cluster is not currently - // connected to it. - // - // You can use the `_resolve/cluster` API to attempt to reconnect to remote - // clusters. - // For example with `GET _resolve/cluster` or `GET _resolve/cluster/*:*`. - // The `connected` field in the response will indicate whether it was - // successful. - // If a connection was (re-)established, this will also cause the `remote/info` - // endpoint to now indicate a connected status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-cluster - ResolveCluster indices_resolve_cluster.NewResolveCluster - // Resolve indices. - // Resolve the names and/or index patterns for indices, aliases, and data - // streams. - // Multiple patterns and remote clusters are supported. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-index - ResolveIndex indices_resolve_index.NewResolveIndex - // Roll over to a new index. - // TIP: It is recommended to use the index lifecycle rollover action to automate - // rollovers. - // - // The rollover API creates a new index for a data stream or index alias. - // The API behavior depends on the rollover target. - // - // **Roll over a data stream** - // - // If you roll over a data stream, the API creates a new write index for the - // stream. - // The stream's previous write index becomes a regular backing index. - // A rollover also increments the data stream's generation. - // - // **Roll over an index alias with a write index** - // - // TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a - // write index to manage time series data. - // Data streams replace this functionality, require less maintenance, and - // automatically integrate with data tiers. - // - // If an index alias points to multiple indices, one of the indices must be a - // write index. - // The rollover API creates a new write index for the alias with - // `is_write_index` set to `true`. - // The API also `sets is_write_index` to `false` for the previous write index. - // - // **Roll over an index alias with one index** - // - // If you roll over an index alias that points to only one index, the API - // creates a new index for the alias and removes the original index from the - // alias. - // - // NOTE: A rollover creates a new index and is subject to the - // `wait_for_active_shards` setting. - // - // **Increment index names for an alias** - // - // When you roll over an index alias, you can specify a name for the new index. - // If you don't specify a name and the current index ends with `-` and a number, - // such as `my-index-000001` or `my-index-3`, the new index name increments that - // number. - // For example, if you roll over an alias with a current index of - // `my-index-000001`, the rollover creates a new index named `my-index-000002`. - // This number is always six characters and zero-padded, regardless of the - // previous index's name. - // - // If you use an index alias for time series data, you can use date math in the - // index name to track the rollover date. - // For example, you can create an alias that points to an index named - // ``. - // If you create the index on May 6, 2099, the index's name is - // `my-index-2099.05.06-000001`. - // If you roll over the alias on May 7, 2099, the new index's name is - // `my-index-2099.05.07-000002`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-rollover - Rollover indices_rollover.NewRollover - // Get index segments. - // Get low-level information about the Lucene segments in index shards. - // For data streams, the API returns information about the stream's backing - // indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-segments - Segments indices_segments.NewSegments - // Get index shard stores. - // Get store information about replica shards in one or more indices. - // For data streams, the API retrieves store information for the stream's - // backing indices. - // - // The index shard stores API returns the following information: - // - // * The node on which each replica shard exists. - // * The allocation ID for each replica shard. - // * A unique ID for each replica shard. - // * Any errors encountered while opening the shard index or from an earlier - // failure. - // - // By default, the API returns store information only for primary shards that - // are unassigned or have one or more unassigned replica shards. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-shard-stores - ShardStores indices_shard_stores.NewShardStores - // Shrink an index. - // Shrink an index into a new index with fewer primary shards. - // - // Before you can shrink an index: - // - // * The index must be read-only. - // * A copy of every shard in the index must reside on the same node. - // * The index must have a green health status. - // - // To make shard allocation easier, we recommend you also remove the index's - // replica shards. - // You can later re-add replica shards as part of the shrink operation. - // - // The requested number of primary shards in the target index must be a factor - // of the number of shards in the source index. - // For example an index with 8 primary shards can be shrunk into 4, 2 or 1 - // primary shards or an index with 15 primary shards can be shrunk into 5, 3 or - // 1. - // If the number of shards in the index is a prime number it can only be shrunk - // into a single primary shard - // Before shrinking, a (primary or replica) copy of every shard in the index - // must be present on the same node. - // - // The current write index on a data stream cannot be shrunk. In order to shrink - // the current write index, the data stream must first be rolled over so that a - // new write index is created and then the previous write index can be shrunk. - // - // A shrink operation: - // - // * Creates a new target index with the same definition as the source index, - // but with a smaller number of primary shards. - // * Hard-links segments from the source index into the target index. If the - // file system does not support hard-linking, then all segments are copied into - // the new index, which is a much more time consuming process. Also if using - // multiple data paths, shards on different data paths require a full copy of - // segment files if they are not on the same disk since hardlinks do not work - // across disks. - // * Recovers the target index as though it were a closed index which had just - // been re-opened. Recovers shards to the - // `.routing.allocation.initial_recovery._id` index setting. - // - // IMPORTANT: Indices can only be shrunk if they satisfy the following - // requirements: - // - // * The target index must not exist. - // * The source index must have more primary shards than the target index. - // * The number of primary shards in the target index must be a factor of the - // number of primary shards in the source index. The source index must have more - // primary shards than the target index. - // * The index must not contain more than 2,147,483,519 documents in total - // across all shards that will be shrunk into a single shard on the target index - // as this is the maximum number of docs that can fit into a single shard. - // * The node handling the shrink process must have sufficient free disk space - // to accommodate a second copy of the existing index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-shrink - Shrink indices_shrink.NewShrink - // Simulate an index. - // Get the index configuration that would be applied to the specified index from - // an existing index template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-simulate-index-template - SimulateIndexTemplate indices_simulate_index_template.NewSimulateIndexTemplate - // Simulate an index template. - // Get the index configuration that would be applied by a particular index - // template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-simulate-template - SimulateTemplate indices_simulate_template.NewSimulateTemplate - // Split an index. - // Split an index into a new index with more primary shards. - // * Before you can split an index: - // - // * The index must be read-only. - // * The cluster health status must be green. - // - // You can do make an index read-only with the following request using the add - // index block API: - // - // ``` - // PUT /my_source_index/_block/write - // ``` - // - // The current write index on a data stream cannot be split. - // In order to split the current write index, the data stream must first be - // rolled over so that a new write index is created and then the previous write - // index can be split. - // - // The number of times the index can be split (and the number of shards that - // each original shard can be split into) is determined by the - // `index.number_of_routing_shards` setting. - // The number of routing shards specifies the hashing space that is used - // internally to distribute documents across shards with consistent hashing. - // For instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x - // 2 x 3) could be split by a factor of 2 or 3. - // - // A split operation: - // - // * Creates a new target index with the same definition as the source index, - // but with a larger number of primary shards. - // * Hard-links segments from the source index into the target index. If the - // file system doesn't support hard-linking, all segments are copied into the - // new index, which is a much more time consuming process. - // * Hashes all documents again, after low level files are created, to delete - // documents that belong to a different shard. - // * Recovers the target index as though it were a closed index which had just - // been re-opened. - // - // IMPORTANT: Indices can only be split if they satisfy the following - // requirements: - // - // * The target index must not exist. - // * The source index must have fewer primary shards than the target index. - // * The number of primary shards in the target index must be a multiple of the - // number of primary shards in the source index. - // * The node handling the split process must have sufficient free disk space to - // accommodate a second copy of the existing index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-split - Split indices_split.NewSplit - // Get index statistics. - // For data streams, the API retrieves statistics for the stream's backing - // indices. - // - // By default, the returned statistics are index-level with `primaries` and - // `total` aggregations. - // `primaries` are the values for only the primary shards. - // `total` are the accumulated values for both primary and replica shards. - // - // To get shard-level statistics, set the `level` parameter to `shards`. - // - // NOTE: When moving to another node, the shard-level statistics for a shard are - // cleared. - // Although the shard is no longer part of the node, that node retains any - // node-level statistics to which the shard contributed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-stats - Stats indices_stats.NewStats - // Create or update an alias. - // Adds a data stream or index to an alias. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-update-aliases - UpdateAliases indices_update_aliases.NewUpdateAliases - // Validate a query. - // Validates a query without running it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-validate-query - ValidateQuery indices_validate_query.NewValidateQuery + GetSettings indices_get_settings.NewGetSettings + GetTemplate indices_get_template.NewGetTemplate + MigrateReindex indices_migrate_reindex.NewMigrateReindex + MigrateToDataStream indices_migrate_to_data_stream.NewMigrateToDataStream + ModifyDataStream indices_modify_data_stream.NewModifyDataStream + Open indices_open.NewOpen + PromoteDataStream indices_promote_data_stream.NewPromoteDataStream + PutAlias indices_put_alias.NewPutAlias + PutDataLifecycle indices_put_data_lifecycle.NewPutDataLifecycle + PutIndexTemplate indices_put_index_template.NewPutIndexTemplate + PutMapping indices_put_mapping.NewPutMapping + PutSettings indices_put_settings.NewPutSettings + PutTemplate indices_put_template.NewPutTemplate + Recovery indices_recovery.NewRecovery + Refresh indices_refresh.NewRefresh + ReloadSearchAnalyzers indices_reload_search_analyzers.NewReloadSearchAnalyzers + ResolveCluster indices_resolve_cluster.NewResolveCluster + ResolveIndex indices_resolve_index.NewResolveIndex + Rollover indices_rollover.NewRollover + Segments indices_segments.NewSegments + ShardStores indices_shard_stores.NewShardStores + Shrink indices_shrink.NewShrink + SimulateIndexTemplate indices_simulate_index_template.NewSimulateIndexTemplate + SimulateTemplate indices_simulate_template.NewSimulateTemplate + Split indices_split.NewSplit + Stats indices_stats.NewStats + UpdateAliases indices_update_aliases.NewUpdateAliases + ValidateQuery indices_validate_query.NewValidateQuery } type Inference struct { - // Perform chat completion inference - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-unified-inference ChatCompletionUnified inference_chat_completion_unified.NewChatCompletionUnified - // Perform completion inference on the service - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference - Completion inference_completion.NewCompletion - // Delete an inference endpoint - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-delete - Delete inference_delete.NewDelete - // Get an inference endpoint - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-get - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference - 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. - // 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. - // - // IMPORTANT: The inference APIs enable you to use certain services, such as - // built-in machine learning models (ELSER, E5), models uploaded through Eland, - // Cohere, OpenAI, Mistral, Azure OpenAI, 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-alibabacloud - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-amazonbedrock - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-anthropic - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureaistudio - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureopenai - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-cohere - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elasticsearch - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elser - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googleaistudio - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googlevertexai - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-hugging-face - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-jinaai - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-mistral - PutMistral inference_put_mistral.NewPutMistral - // Create an OpenAI inference endpoint. - // - // Create an inference endpoint to perform an inference task with the `openai` - // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-openai - 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-voyageai - PutVoyageai inference_put_voyageai.NewPutVoyageai - // Create a Watsonx inference endpoint. - // - // Create an inference endpoint to perform an inference task with the - // `watsonxai` service. - // You need an IBM Cloud Databases for Elasticsearch deployment to use the - // `watsonxai` inference service. - // You can provision one through the IBM catalog, the Cloud Databases CLI - // plug-in, the Cloud Databases API, or Terraform. - // - // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-watsonx - PutWatsonx inference_put_watsonx.NewPutWatsonx - // Perform rereanking inference on the service - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference - Rerank inference_rerank.NewRerank - // Perform sparse embedding inference on the service - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference - SparseEmbedding inference_sparse_embedding.NewSparseEmbedding - // Perform streaming inference. - // Get real-time responses for completion tasks by delivering answers - // incrementally, reducing response times during computation. - // This API works only with the completion task type. - // - // IMPORTANT: 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. - // - // This API requires the `monitor_inference` cluster privilege (the built-in - // `inference_admin` and `inference_user` roles grant this privilege). You must - // use a client that supports streaming. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-stream-inference - StreamCompletion inference_stream_completion.NewStreamCompletion - // Perform text embedding inference on the service - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference - TextEmbedding inference_text_embedding.NewTextEmbedding - // Update an inference endpoint. - // - // Modify `task_settings`, secrets (within `service_settings`), or - // `num_allocations` for an inference endpoint, depending on the specific - // endpoint service and `task_type`. - // - // IMPORTANT: 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-update - Update inference_update.NewUpdate + Completion inference_completion.NewCompletion + Delete inference_delete.NewDelete + Get inference_get.NewGet + Inference inference_inference.NewInference + Put inference_put.NewPut + PutAlibabacloud inference_put_alibabacloud.NewPutAlibabacloud + PutAmazonbedrock inference_put_amazonbedrock.NewPutAmazonbedrock + PutAnthropic inference_put_anthropic.NewPutAnthropic + PutAzureaistudio inference_put_azureaistudio.NewPutAzureaistudio + PutAzureopenai inference_put_azureopenai.NewPutAzureopenai + PutCohere inference_put_cohere.NewPutCohere + PutElasticsearch inference_put_elasticsearch.NewPutElasticsearch + PutElser inference_put_elser.NewPutElser + PutGoogleaistudio inference_put_googleaistudio.NewPutGoogleaistudio + PutGooglevertexai inference_put_googlevertexai.NewPutGooglevertexai + PutHuggingFace inference_put_hugging_face.NewPutHuggingFace + PutJinaai inference_put_jinaai.NewPutJinaai + PutMistral inference_put_mistral.NewPutMistral + PutOpenai inference_put_openai.NewPutOpenai + PutVoyageai inference_put_voyageai.NewPutVoyageai + PutWatsonx inference_put_watsonx.NewPutWatsonx + Rerank inference_rerank.NewRerank + SparseEmbedding inference_sparse_embedding.NewSparseEmbedding + StreamCompletion inference_stream_completion.NewStreamCompletion + TextEmbedding inference_text_embedding.NewTextEmbedding + Update inference_update.NewUpdate } type Ingest struct { - // Delete GeoIP database configurations. - // - // Delete one or more IP geolocation database configurations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-geoip-database - DeleteGeoipDatabase ingest_delete_geoip_database.NewDeleteGeoipDatabase - // Delete IP geolocation database configurations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-ip-location-database + DeleteGeoipDatabase ingest_delete_geoip_database.NewDeleteGeoipDatabase DeleteIpLocationDatabase ingest_delete_ip_location_database.NewDeleteIpLocationDatabase - // Delete pipelines. - // Delete one or more ingest pipelines. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-pipeline - DeletePipeline ingest_delete_pipeline.NewDeletePipeline - // Get GeoIP statistics. - // Get download statistics for GeoIP2 databases that are used with the GeoIP - // processor. - // https://www.elastic.co/docs/reference/enrich-processor/geoip-processor - GeoIpStats ingest_geo_ip_stats.NewGeoIpStats - // Get GeoIP database configurations. - // - // Get information about one or more IP geolocation database configurations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-geoip-database - GetGeoipDatabase ingest_get_geoip_database.NewGetGeoipDatabase - // Get IP geolocation database configurations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-ip-location-database - GetIpLocationDatabase ingest_get_ip_location_database.NewGetIpLocationDatabase - // Get pipelines. - // - // Get information about one or more ingest pipelines. - // This API returns a local reference of the pipeline. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-pipeline - GetPipeline ingest_get_pipeline.NewGetPipeline - // Run a grok processor. - // Extract structured fields out of a single text field within a document. - // You must choose which field to extract matched fields from, as well as the - // grok pattern you expect will match. - // A grok pattern is like a regular expression that supports aliased expressions - // that can be reused. - // https://www.elastic.co/docs/reference/enrich-processor/grok-processor - ProcessorGrok ingest_processor_grok.NewProcessorGrok - // Create or update a GeoIP database configuration. - // - // Refer to the create or update IP geolocation database configuration API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-put-geoip-database - PutGeoipDatabase ingest_put_geoip_database.NewPutGeoipDatabase - // Create or update an IP geolocation database configuration. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-put-ip-location-database - PutIpLocationDatabase ingest_put_ip_location_database.NewPutIpLocationDatabase - // Create or update a pipeline. - // Changes made using this API take effect immediately. - // https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines - PutPipeline ingest_put_pipeline.NewPutPipeline - // Simulate a pipeline. - // - // Run an ingest pipeline against a set of provided documents. - // You can either specify an existing pipeline to use with the provided - // documents or supply a pipeline definition in the body of the request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-simulate - Simulate ingest_simulate.NewSimulate + DeletePipeline ingest_delete_pipeline.NewDeletePipeline + GeoIpStats ingest_geo_ip_stats.NewGeoIpStats + GetGeoipDatabase ingest_get_geoip_database.NewGetGeoipDatabase + GetIpLocationDatabase ingest_get_ip_location_database.NewGetIpLocationDatabase + GetPipeline ingest_get_pipeline.NewGetPipeline + ProcessorGrok ingest_processor_grok.NewProcessorGrok + PutGeoipDatabase ingest_put_geoip_database.NewPutGeoipDatabase + PutIpLocationDatabase ingest_put_ip_location_database.NewPutIpLocationDatabase + PutPipeline ingest_put_pipeline.NewPutPipeline + Simulate ingest_simulate.NewSimulate } type License struct { - // Delete the license. - // - // When the license expires, your subscription level reverts to Basic. - // - // If the operator privileges feature is enabled, only operator users can use - // this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-delete - Delete license_delete.NewDelete - // Get license information. - // - // Get information about your Elastic license including its type, its status, - // when it was issued, and when it expires. - // - // >info - // > If the master node is generating a new cluster state, the get license API - // may return a `404 Not Found` response. - // > If you receive an unexpected 404 response after cluster startup, wait a - // short period and retry the request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get - Get license_get.NewGet - // Get the basic license status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-basic-status + Delete license_delete.NewDelete + Get license_get.NewGet GetBasicStatus license_get_basic_status.NewGetBasicStatus - // Get the trial status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-trial-status GetTrialStatus license_get_trial_status.NewGetTrialStatus - // Update the license. - // - // You can update your license at runtime without shutting down your nodes. - // License updates take effect immediately. - // If the license you are installing does not support all of the features that - // were available with your previous license, however, you are notified in the - // response. - // You must then re-submit the API request with the acknowledge parameter set to - // true. - // - // NOTE: If Elasticsearch security features are enabled and you are installing a - // gold or higher license, you must enable TLS on the transport networking layer - // before you install the license. - // If the operator privileges feature is enabled, only operator users can use - // this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post - Post license_post.NewPost - // Start a basic license. - // - // Start an indefinite basic license, which gives access to all the basic - // features. - // - // NOTE: In order to start a basic license, you must not currently have a basic - // license. - // - // If the basic license does not support all of the features that are available - // with your current license, however, you are notified in the response. - // You must then re-submit the API request with the `acknowledge` parameter set - // to `true`. - // - // To check the status of your basic license, use the get basic license API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-basic + Post license_post.NewPost PostStartBasic license_post_start_basic.NewPostStartBasic - // Start a trial. - // Start a 30-day trial, which gives access to all subscription features. - // - // NOTE: You are allowed to start a trial only if your cluster has not already - // activated a trial for the current major product version. - // For example, if you have already activated a trial for v8.0, you cannot start - // a new trial until v9.0. You can, however, request an extended trial at - // https://www.elastic.co/trialextension. - // - // To check the status of your trial, use the get trial status API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-trial PostStartTrial license_post_start_trial.NewPostStartTrial } type Logstash struct { - // Delete a Logstash pipeline. - // Delete a pipeline that is used for Logstash Central Management. - // If the request succeeds, you receive an empty response with an appropriate - // status code. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-delete-pipeline DeletePipeline logstash_delete_pipeline.NewDeletePipeline - // Get Logstash pipelines. - // Get pipelines that are used for Logstash Central Management. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-get-pipeline - GetPipeline logstash_get_pipeline.NewGetPipeline - // Create or update a Logstash pipeline. - // - // Create a pipeline that is used for Logstash Central Management. - // If the specified pipeline exists, it is replaced. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-put-pipeline - PutPipeline logstash_put_pipeline.NewPutPipeline + GetPipeline logstash_get_pipeline.NewGetPipeline + PutPipeline logstash_put_pipeline.NewPutPipeline } type Migration struct { - // Get deprecation information. - // Get information about different cluster, node, and index level settings that - // use deprecated features that will be removed or changed in the next major - // version. - // - // TIP: This APIs is designed for indirect use by the Upgrade Assistant. - // You are strongly recommended to use the Upgrade Assistant. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-deprecations - Deprecations migration_deprecations.NewDeprecations - // Get feature migration information. - // Version upgrades sometimes require changes to how features store - // configuration information and data in system indices. - // Check which features need to be migrated and the status of any migrations - // that are in progress. - // - // TIP: This API is designed for indirect use by the Upgrade Assistant. - // You are strongly recommended to use the Upgrade Assistant. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status + Deprecations migration_deprecations.NewDeprecations GetFeatureUpgradeStatus migration_get_feature_upgrade_status.NewGetFeatureUpgradeStatus - // Start the feature migration. - // Version upgrades sometimes require changes to how features store - // configuration information and data in system indices. - // This API starts the automatic migration process. - // - // Some functionality might be temporarily unavailable during the migration - // process. - // - // TIP: The API is designed for indirect use by the Upgrade Assistant. We - // strongly recommend you use the Upgrade Assistant. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status - PostFeatureUpgrade migration_post_feature_upgrade.NewPostFeatureUpgrade + PostFeatureUpgrade migration_post_feature_upgrade.NewPostFeatureUpgrade } type Ml struct { - // Clear trained model deployment cache. - // - // Cache will be cleared on all nodes where the trained model is assigned. - // A trained model deployment may have an inference cache enabled. - // As requests are handled by each allocated node, their responses may be cached - // on that individual node. - // Calling this API clears the caches without restarting the deployment. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-clear-trained-model-deployment-cache ClearTrainedModelDeploymentCache ml_clear_trained_model_deployment_cache.NewClearTrainedModelDeploymentCache - // Close anomaly detection jobs. - // - // A job can be opened and closed multiple times throughout its lifecycle. A - // closed job cannot receive data or perform analysis operations, but you can - // still explore and navigate results. - // When you close a job, it runs housekeeping tasks such as pruning the model - // history, flushing buffers, calculating final results and persisting the model - // snapshots. Depending upon the size of the job, it could take several minutes - // to close and the equivalent time to re-open. After it is closed, the job has - // a minimal overhead on the cluster except for maintaining its meta data. - // Therefore it is a best practice to close jobs that are no longer required to - // process data. - // If you close an anomaly detection job whose datafeed is running, the request - // first tries to stop the datafeed. This behavior is equivalent to calling stop - // datafeed API with the same timeout and force parameters as the close job - // request. - // When a datafeed that has a specified end date stops, it automatically closes - // its associated job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-close-job - CloseJob ml_close_job.NewCloseJob - // Delete a calendar. - // - // Remove all scheduled events from a calendar, then delete it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar - DeleteCalendar ml_delete_calendar.NewDeleteCalendar - // Delete events from a calendar. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-event - DeleteCalendarEvent ml_delete_calendar_event.NewDeleteCalendarEvent - // Delete anomaly jobs from a calendar. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-job - DeleteCalendarJob ml_delete_calendar_job.NewDeleteCalendarJob - // Delete a data frame analytics job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-data-frame-analytics - DeleteDataFrameAnalytics ml_delete_data_frame_analytics.NewDeleteDataFrameAnalytics - // Delete a datafeed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-datafeed - DeleteDatafeed ml_delete_datafeed.NewDeleteDatafeed - // Delete expired ML data. - // - // Delete all job results, model snapshots and forecast data that have exceeded - // their retention days period. Machine learning state documents that are not - // associated with any job are also deleted. - // You can limit the request to a single or set of anomaly detection jobs by - // using a job identifier, a group name, a comma-separated list of jobs, or a - // wildcard expression. You can delete expired data for all anomaly detection - // jobs by using `_all`, by specifying `*` as the ``, or by omitting the - // ``. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-expired-data - DeleteExpiredData ml_delete_expired_data.NewDeleteExpiredData - // Delete a filter. - // - // If an anomaly detection job references the filter, you cannot delete the - // filter. You must update or delete the job before you can delete the filter. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-filter - DeleteFilter ml_delete_filter.NewDeleteFilter - // Delete forecasts from a job. - // - // By default, forecasts are retained for 14 days. You can specify a - // different retention period with the `expires_in` parameter in the forecast - // jobs API. The delete forecast API enables you to delete one or more - // forecasts before they expire. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-forecast - DeleteForecast ml_delete_forecast.NewDeleteForecast - // Delete an anomaly detection job. - // - // All job configuration, model state and results are deleted. - // It is not currently possible to delete multiple jobs using wildcards or a - // comma separated list. If you delete a job that has a datafeed, the request - // first tries to delete the datafeed. This behavior is equivalent to calling - // the delete datafeed API with the same timeout and force parameters as the - // delete job request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-job - DeleteJob ml_delete_job.NewDeleteJob - // Delete a model snapshot. - // - // You cannot delete the active model snapshot. To delete that snapshot, first - // revert to a different one. To identify the active model snapshot, refer to - // the `model_snapshot_id` in the results from the get jobs API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-model-snapshot - DeleteModelSnapshot ml_delete_model_snapshot.NewDeleteModelSnapshot - // Delete an unreferenced trained model. - // - // The request deletes a trained inference model that is not referenced by an - // ingest pipeline. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model - DeleteTrainedModel ml_delete_trained_model.NewDeleteTrainedModel - // Delete a trained model alias. - // - // This API deletes an existing model alias that refers to a trained model. If - // the model alias is missing or refers to a model other than the one identified - // by the `model_id`, this API returns an error. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model-alias - DeleteTrainedModelAlias ml_delete_trained_model_alias.NewDeleteTrainedModelAlias - // Estimate job model memory usage. - // - // Make an estimation of the memory usage for an anomaly detection job model. - // The estimate is based on analysis configuration details for the job and - // cardinality - // estimates for the fields it references. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-estimate-model-memory - EstimateModelMemory ml_estimate_model_memory.NewEstimateModelMemory - // Evaluate data frame analytics. - // - // The API packages together commonly used evaluation metrics for various types - // of machine learning features. This has been designed for use on indexes - // created by data frame analytics. Evaluation requires both a ground truth - // field and an analytics result field to be present. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-evaluate-data-frame - EvaluateDataFrame ml_evaluate_data_frame.NewEvaluateDataFrame - // Explain data frame analytics config. - // - // This API provides explanations for a data frame analytics config that either - // exists already or one that has not been created yet. The following - // explanations are provided: - // * which fields are included or not in the analysis and why, - // * how much memory is estimated to be required. The estimate can be used when - // deciding the appropriate value for model_memory_limit setting later on. - // If you have object fields or fields that are excluded via source filtering, - // they are not included in the explanation. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-explain-data-frame-analytics - ExplainDataFrameAnalytics ml_explain_data_frame_analytics.NewExplainDataFrameAnalytics - // Force buffered data to be processed. - // The flush jobs API is only applicable when sending data for analysis using - // the post data API. Depending on the content of the buffer, then it might - // additionally calculate new results. Both flush and close operations are - // similar, however the flush is more efficient if you are expecting to send - // more data for analysis. When flushing, the job remains open and is available - // to continue analyzing data. A close operation additionally prunes and - // persists the model state to disk and the job must be opened again before - // analyzing further data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-flush-job - FlushJob ml_flush_job.NewFlushJob - // Predict future behavior of a time series. - // - // Forecasts are not supported for jobs that perform population analysis; an - // error occurs if you try to create a forecast for a job that has an - // `over_field_name` in its configuration. Forcasts predict future behavior - // based on historical data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-forecast - Forecast ml_forecast.NewForecast - // Get anomaly detection job results for buckets. - // The API presents a chronological view of the records, grouped by bucket. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-buckets - GetBuckets ml_get_buckets.NewGetBuckets - // Get info about events in calendars. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-calendar-events - GetCalendarEvents ml_get_calendar_events.NewGetCalendarEvents - // Get calendar configuration info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-calendars - GetCalendars ml_get_calendars.NewGetCalendars - // Get anomaly detection job results for categories. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-categories - GetCategories ml_get_categories.NewGetCategories - // Get data frame analytics job configuration info. - // You can get information for multiple data frame analytics jobs in a single - // API request by using a comma-separated list of data frame analytics jobs or a - // wildcard expression. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics - GetDataFrameAnalytics ml_get_data_frame_analytics.NewGetDataFrameAnalytics - // Get data frame analytics jobs usage info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics-stats - GetDataFrameAnalyticsStats ml_get_data_frame_analytics_stats.NewGetDataFrameAnalyticsStats - // Get datafeeds usage info. - // You can get statistics for multiple datafeeds in a single API request by - // using a comma-separated list of datafeeds or a wildcard expression. You can - // get statistics for all datafeeds by using `_all`, by specifying `*` as the - // ``, or by omitting the ``. If the datafeed is stopped, the - // only information you receive is the `datafeed_id` and the `state`. - // This API returns a maximum of 10,000 datafeeds. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeed-stats - GetDatafeedStats ml_get_datafeed_stats.NewGetDatafeedStats - // Get datafeeds configuration info. - // You can get information for multiple datafeeds in a single API request by - // using a comma-separated list of datafeeds or a wildcard expression. You can - // get information for all datafeeds by using `_all`, by specifying `*` as the - // ``, or by omitting the ``. - // This API returns a maximum of 10,000 datafeeds. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeeds - GetDatafeeds ml_get_datafeeds.NewGetDatafeeds - // Get filters. - // You can get a single filter or all filters. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-filters - GetFilters ml_get_filters.NewGetFilters - // Get anomaly detection job results for influencers. - // Influencers are the entities that have contributed to, or are to blame for, - // the anomalies. Influencer results are available only if an - // `influencer_field_name` is specified in the job configuration. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-influencers - GetInfluencers ml_get_influencers.NewGetInfluencers - // Get anomaly detection jobs usage info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-job-stats - GetJobStats ml_get_job_stats.NewGetJobStats - // Get anomaly detection jobs configuration info. - // You can get information for multiple anomaly detection jobs in a single API - // request by using a group name, a comma-separated list of jobs, or a wildcard - // expression. You can get information for all anomaly detection jobs by using - // `_all`, by specifying `*` as the ``, or by omitting the ``. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-jobs - GetJobs ml_get_jobs.NewGetJobs - // Get machine learning memory usage info. - // Get information about how machine learning jobs and trained models are using - // memory, - // on each node, both within the JVM heap, and natively, outside of the JVM. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-memory-stats - GetMemoryStats ml_get_memory_stats.NewGetMemoryStats - // Get anomaly detection job model snapshot upgrade usage info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-model-snapshot-upgrade-stats - GetModelSnapshotUpgradeStats ml_get_model_snapshot_upgrade_stats.NewGetModelSnapshotUpgradeStats - // Get model snapshots info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-model-snapshots - GetModelSnapshots ml_get_model_snapshots.NewGetModelSnapshots - // Get overall bucket results. - // - // Retrievs overall bucket results that summarize the bucket results of - // multiple anomaly detection jobs. - // - // The `overall_score` is calculated by combining the scores of all the - // buckets within the overall bucket span. First, the maximum - // `anomaly_score` per anomaly detection job in the overall bucket is - // calculated. Then the `top_n` of those scores are averaged to result in - // the `overall_score`. This means that you can fine-tune the - // `overall_score` so that it is more or less sensitive to the number of - // jobs that detect an anomaly at the same time. For example, if you set - // `top_n` to `1`, the `overall_score` is the maximum bucket score in the - // overall bucket. Alternatively, if you set `top_n` to the number of jobs, - // the `overall_score` is high only when all jobs detect anomalies in that - // overall bucket. If you set the `bucket_span` parameter (to a value - // greater than its default), the `overall_score` is the maximum - // `overall_score` of the overall buckets that have a span equal to the - // jobs' largest bucket span. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-overall-buckets - GetOverallBuckets ml_get_overall_buckets.NewGetOverallBuckets - // Get anomaly records for an anomaly detection job. - // Records contain the detailed analytical results. They describe the anomalous - // activity that has been identified in the input data based on the detector - // configuration. - // There can be many anomaly records depending on the characteristics and size - // of the input data. In practice, there are often too many to be able to - // manually process them. The machine learning features therefore perform a - // sophisticated aggregation of the anomaly records into buckets. - // The number of record results depends on the number of anomalies found in each - // bucket, which relates to the number of time series being modeled and the - // number of detectors. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-records - GetRecords ml_get_records.NewGetRecords - // Get trained model configuration info. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models - GetTrainedModels ml_get_trained_models.NewGetTrainedModels - // Get trained models usage info. - // You can get usage information for multiple trained - // models in a single API request by using a comma-separated list of model IDs - // or a wildcard expression. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models-stats - GetTrainedModelsStats ml_get_trained_models_stats.NewGetTrainedModelsStats - // Evaluate a trained model. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-infer-trained-model - InferTrainedModel ml_infer_trained_model.NewInferTrainedModel - // Get machine learning information. - // Get defaults and limits used by machine learning. - // This endpoint is designed to be used by a user interface that needs to fully - // understand machine learning configurations where some options are not - // specified, meaning that the defaults should be used. This endpoint may be - // used to find out what those defaults are. It also provides information about - // the maximum size of machine learning jobs that could run in the current - // cluster configuration. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-info - Info ml_info.NewInfo - // Open anomaly detection jobs. - // - // An anomaly detection job must be opened to be ready to receive and analyze - // data. It can be opened and closed multiple times throughout its lifecycle. - // When you open a new job, it starts with an empty model. - // When you open an existing job, the most recent model state is automatically - // loaded. The job is ready to resume its analysis from where it left off, once - // new data is received. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-open-job - OpenJob ml_open_job.NewOpenJob - // Add scheduled events to the calendar. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-post-calendar-events - PostCalendarEvents ml_post_calendar_events.NewPostCalendarEvents - // Send data to an anomaly detection job for analysis. - // - // IMPORTANT: For each job, data can be accepted from only a single connection - // at a time. - // It is not currently possible to post data to multiple jobs using wildcards or - // a comma-separated list. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-post-data - PostData ml_post_data.NewPostData - // Preview features used by data frame analytics. - // Preview the extracted features used by a data frame analytics config. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-preview-data-frame-analytics - PreviewDataFrameAnalytics ml_preview_data_frame_analytics.NewPreviewDataFrameAnalytics - // Preview a datafeed. - // This API returns the first "page" of search results from a datafeed. - // You can preview an existing datafeed or provide configuration details for a - // datafeed - // and anomaly detection job in the API. The preview shows the structure of the - // data - // that will be passed to the anomaly detection engine. - // IMPORTANT: When Elasticsearch security features are enabled, the preview uses - // the credentials of the user that - // called the API. However, when the datafeed starts it uses the roles of the - // last user that created or updated the - // datafeed. To get a preview that accurately reflects the behavior of the - // datafeed, use the appropriate credentials. - // You can also use secondary authorization headers to supply the credentials. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-preview-datafeed - PreviewDatafeed ml_preview_datafeed.NewPreviewDatafeed - // Create a calendar. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-calendar - PutCalendar ml_put_calendar.NewPutCalendar - // Add anomaly detection job to calendar. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-calendar-job - PutCalendarJob ml_put_calendar_job.NewPutCalendarJob - // Create a data frame analytics job. - // This API creates a data frame analytics job that performs an analysis on the - // source indices and stores the outcome in a destination index. - // By default, the query used in the source configuration is `{"match_all": - // {}}`. - // - // If the destination index does not exist, it is created automatically when you - // start the job. - // - // If you supply only a subset of the regression or classification parameters, - // hyperparameter optimization occurs. It determines a value for each of the - // undefined parameters. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-data-frame-analytics - PutDataFrameAnalytics ml_put_data_frame_analytics.NewPutDataFrameAnalytics - // Create a datafeed. - // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly - // detection job. - // You can associate only one datafeed with each anomaly detection job. - // The datafeed contains a query that runs at a defined interval (`frequency`). - // If you are concerned about delayed data, you can add a delay (`query_delay') - // at each interval. - // By default, the datafeed uses the following query: `{"match_all": {"boost": - // 1}}`. - // - // When Elasticsearch security features are enabled, your datafeed remembers - // which roles the user who created it had - // at the time of creation and runs the query using those same roles. If you - // provide secondary authorization headers, - // those credentials are used instead. - // You must use Kibana, this API, or the create anomaly detection jobs API to - // create a datafeed. Do not add a datafeed - // directly to the `.ml-config` index. Do not give users `write` privileges on - // the `.ml-config` index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-datafeed - PutDatafeed ml_put_datafeed.NewPutDatafeed - // Create a filter. - // A filter contains a list of strings. It can be used by one or more anomaly - // detection jobs. - // Specifically, filters are referenced in the `custom_rules` property of - // detector configuration objects. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-filter - PutFilter ml_put_filter.NewPutFilter - // Create an anomaly detection job. - // - // If you include a `datafeed_config`, you must have read index privileges on - // the source index. - // If you include a `datafeed_config` but do not provide a query, the datafeed - // uses `{"match_all": {"boost": 1}}`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-job - PutJob ml_put_job.NewPutJob - // Create a trained model. - // Enable you to supply a trained model that is not created by data frame - // analytics. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model - PutTrainedModel ml_put_trained_model.NewPutTrainedModel - // Create or update a trained model alias. - // A trained model alias is a logical name used to reference a single trained - // model. - // You can use aliases instead of trained model identifiers to make it easier to - // reference your models. For example, you can use aliases in inference - // aggregations and processors. - // An alias must be unique and refer to only a single trained model. However, - // you can have multiple aliases for each trained model. - // If you use this API to update an alias such that it references a different - // trained model ID and the model uses a different type of data frame analytics, - // an error occurs. For example, this situation occurs if you have a trained - // model for regression analysis and a trained model for classification - // analysis; you cannot reassign an alias from one type of trained model to - // another. - // If you use this API to update an alias and there are very few input fields in - // common between the old and new trained models for the model alias, the API - // returns a warning. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-alias - PutTrainedModelAlias ml_put_trained_model_alias.NewPutTrainedModelAlias - // Create part of a trained model definition. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-definition-part - PutTrainedModelDefinitionPart ml_put_trained_model_definition_part.NewPutTrainedModelDefinitionPart - // Create a trained model vocabulary. - // This API is supported only for natural language processing (NLP) models. - // The vocabulary is stored in the index as described in - // `inference_config.*.vocabulary` of the trained model definition. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-vocabulary - PutTrainedModelVocabulary ml_put_trained_model_vocabulary.NewPutTrainedModelVocabulary - // Reset an anomaly detection job. - // All model state and results are deleted. The job is ready to start over as if - // it had just been created. - // It is not currently possible to reset multiple jobs using wildcards or a - // comma separated list. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-reset-job - ResetJob ml_reset_job.NewResetJob - // Revert to a snapshot. - // The machine learning features react quickly to anomalous input, learning new - // behaviors in data. Highly anomalous input increases the variance in the - // models whilst the system learns whether this is a new step-change in behavior - // or a one-off event. In the case where this anomalous input is known to be a - // one-off, then it might be appropriate to reset the model state to a time - // before this event. For example, you might consider reverting to a saved - // snapshot after Black Friday or a critical system failure. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-revert-model-snapshot - RevertModelSnapshot ml_revert_model_snapshot.NewRevertModelSnapshot - // Set upgrade_mode for ML indices. - // Sets a cluster wide upgrade_mode setting that prepares machine learning - // indices for an upgrade. - // When upgrading your cluster, in some circumstances you must restart your - // nodes and reindex your machine learning indices. In those circumstances, - // there must be no machine learning jobs running. You can close the machine - // learning jobs, do the upgrade, then open all the jobs again. Alternatively, - // you can use this API to temporarily halt tasks associated with the jobs and - // datafeeds and prevent new jobs from opening. You can also use this API - // during upgrades that do not require you to reindex your machine learning - // indices, though stopping jobs is not a requirement in that case. - // You can see the current value for the upgrade_mode setting by using the get - // machine learning info API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-set-upgrade-mode - SetUpgradeMode ml_set_upgrade_mode.NewSetUpgradeMode - // Start a data frame analytics job. - // A data frame analytics job can be started and stopped multiple times - // throughout its lifecycle. - // If the destination index does not exist, it is created automatically the - // first time you start the data frame analytics job. The - // `index.number_of_shards` and `index.number_of_replicas` settings for the - // destination index are copied from the source index. If there are multiple - // source indices, the destination index copies the highest setting values. The - // mappings for the destination index are also copied from the source indices. - // If there are any mapping conflicts, the job fails to start. - // If the destination index exists, it is used as is. You can therefore set up - // the destination index in advance with custom settings and mappings. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-data-frame-analytics - StartDataFrameAnalytics ml_start_data_frame_analytics.NewStartDataFrameAnalytics - // Start datafeeds. - // - // A datafeed must be started in order to retrieve data from Elasticsearch. A - // datafeed can be started and stopped - // multiple times throughout its lifecycle. - // - // Before you can start a datafeed, the anomaly detection job must be open. - // Otherwise, an error occurs. - // - // If you restart a stopped datafeed, it continues processing input data from - // the next millisecond after it was stopped. - // If new data was indexed for that exact millisecond between stopping and - // starting, it will be ignored. - // - // When Elasticsearch security features are enabled, your datafeed remembers - // which roles the last user to create or - // update it had at the time of creation or update and runs the query using - // those same roles. If you provided secondary - // authorization headers when you created or updated the datafeed, those - // credentials are used instead. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-datafeed - StartDatafeed ml_start_datafeed.NewStartDatafeed - // Start a trained model deployment. - // It allocates the model to every machine learning node. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-trained-model-deployment - StartTrainedModelDeployment ml_start_trained_model_deployment.NewStartTrainedModelDeployment - // Stop data frame analytics jobs. - // A data frame analytics job can be started and stopped multiple times - // throughout its lifecycle. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-data-frame-analytics - StopDataFrameAnalytics ml_stop_data_frame_analytics.NewStopDataFrameAnalytics - // Stop datafeeds. - // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A - // datafeed can be started and stopped - // multiple times throughout its lifecycle. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-datafeed - StopDatafeed ml_stop_datafeed.NewStopDatafeed - // Stop a trained model deployment. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-trained-model-deployment - StopTrainedModelDeployment ml_stop_trained_model_deployment.NewStopTrainedModelDeployment - // Update a data frame analytics job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/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. - // When Elasticsearch security features are enabled, your datafeed remembers - // which roles the user who updated it had at - // the time of the update and runs the query using those same roles. If you - // provide secondary authorization headers, - // those credentials are used instead. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-datafeed - UpdateDatafeed ml_update_datafeed.NewUpdateDatafeed - // Update a filter. - // Updates the description of a filter, adds items, or removes items from the - // list. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-filter - UpdateFilter ml_update_filter.NewUpdateFilter - // Update an anomaly detection job. - // Updates certain properties of an anomaly detection job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-job - UpdateJob ml_update_job.NewUpdateJob - // Update a snapshot. - // Updates certain properties of a snapshot. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-model-snapshot - UpdateModelSnapshot ml_update_model_snapshot.NewUpdateModelSnapshot - // Update a trained model deployment. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/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. - // Over time, older snapshot formats are deprecated and removed. Anomaly - // detection jobs support only snapshots that are from the current or previous - // major version. - // This API provides a means to upgrade a snapshot to the current major version. - // This aids in preparing the cluster for an upgrade to the next major version. - // Only one snapshot per anomaly detection job can be upgraded at a time and the - // upgraded snapshot cannot be the current snapshot of the anomaly detection - // job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-upgrade-job-snapshot - UpgradeJobSnapshot ml_upgrade_job_snapshot.NewUpgradeJobSnapshot - // Validate an anomaly detection job. - // https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html - Validate ml_validate.NewValidate - // Validate an anomaly detection job. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/ - ValidateDetector ml_validate_detector.NewValidateDetector + CloseJob ml_close_job.NewCloseJob + DeleteCalendar ml_delete_calendar.NewDeleteCalendar + DeleteCalendarEvent ml_delete_calendar_event.NewDeleteCalendarEvent + DeleteCalendarJob ml_delete_calendar_job.NewDeleteCalendarJob + DeleteDataFrameAnalytics ml_delete_data_frame_analytics.NewDeleteDataFrameAnalytics + DeleteDatafeed ml_delete_datafeed.NewDeleteDatafeed + DeleteExpiredData ml_delete_expired_data.NewDeleteExpiredData + DeleteFilter ml_delete_filter.NewDeleteFilter + DeleteForecast ml_delete_forecast.NewDeleteForecast + DeleteJob ml_delete_job.NewDeleteJob + DeleteModelSnapshot ml_delete_model_snapshot.NewDeleteModelSnapshot + DeleteTrainedModel ml_delete_trained_model.NewDeleteTrainedModel + DeleteTrainedModelAlias ml_delete_trained_model_alias.NewDeleteTrainedModelAlias + EstimateModelMemory ml_estimate_model_memory.NewEstimateModelMemory + EvaluateDataFrame ml_evaluate_data_frame.NewEvaluateDataFrame + ExplainDataFrameAnalytics ml_explain_data_frame_analytics.NewExplainDataFrameAnalytics + FlushJob ml_flush_job.NewFlushJob + Forecast ml_forecast.NewForecast + GetBuckets ml_get_buckets.NewGetBuckets + GetCalendarEvents ml_get_calendar_events.NewGetCalendarEvents + GetCalendars ml_get_calendars.NewGetCalendars + GetCategories ml_get_categories.NewGetCategories + GetDataFrameAnalytics ml_get_data_frame_analytics.NewGetDataFrameAnalytics + GetDataFrameAnalyticsStats ml_get_data_frame_analytics_stats.NewGetDataFrameAnalyticsStats + GetDatafeedStats ml_get_datafeed_stats.NewGetDatafeedStats + GetDatafeeds ml_get_datafeeds.NewGetDatafeeds + GetFilters ml_get_filters.NewGetFilters + GetInfluencers ml_get_influencers.NewGetInfluencers + GetJobStats ml_get_job_stats.NewGetJobStats + GetJobs ml_get_jobs.NewGetJobs + GetMemoryStats ml_get_memory_stats.NewGetMemoryStats + GetModelSnapshotUpgradeStats ml_get_model_snapshot_upgrade_stats.NewGetModelSnapshotUpgradeStats + GetModelSnapshots ml_get_model_snapshots.NewGetModelSnapshots + GetOverallBuckets ml_get_overall_buckets.NewGetOverallBuckets + GetRecords ml_get_records.NewGetRecords + GetTrainedModels ml_get_trained_models.NewGetTrainedModels + GetTrainedModelsStats ml_get_trained_models_stats.NewGetTrainedModelsStats + InferTrainedModel ml_infer_trained_model.NewInferTrainedModel + Info ml_info.NewInfo + OpenJob ml_open_job.NewOpenJob + PostCalendarEvents ml_post_calendar_events.NewPostCalendarEvents + PostData ml_post_data.NewPostData + PreviewDataFrameAnalytics ml_preview_data_frame_analytics.NewPreviewDataFrameAnalytics + PreviewDatafeed ml_preview_datafeed.NewPreviewDatafeed + PutCalendar ml_put_calendar.NewPutCalendar + PutCalendarJob ml_put_calendar_job.NewPutCalendarJob + PutDataFrameAnalytics ml_put_data_frame_analytics.NewPutDataFrameAnalytics + PutDatafeed ml_put_datafeed.NewPutDatafeed + PutFilter ml_put_filter.NewPutFilter + PutJob ml_put_job.NewPutJob + PutTrainedModel ml_put_trained_model.NewPutTrainedModel + PutTrainedModelAlias ml_put_trained_model_alias.NewPutTrainedModelAlias + PutTrainedModelDefinitionPart ml_put_trained_model_definition_part.NewPutTrainedModelDefinitionPart + PutTrainedModelVocabulary ml_put_trained_model_vocabulary.NewPutTrainedModelVocabulary + ResetJob ml_reset_job.NewResetJob + RevertModelSnapshot ml_revert_model_snapshot.NewRevertModelSnapshot + SetUpgradeMode ml_set_upgrade_mode.NewSetUpgradeMode + StartDataFrameAnalytics ml_start_data_frame_analytics.NewStartDataFrameAnalytics + StartDatafeed ml_start_datafeed.NewStartDatafeed + StartTrainedModelDeployment ml_start_trained_model_deployment.NewStartTrainedModelDeployment + StopDataFrameAnalytics ml_stop_data_frame_analytics.NewStopDataFrameAnalytics + StopDatafeed ml_stop_datafeed.NewStopDatafeed + StopTrainedModelDeployment ml_stop_trained_model_deployment.NewStopTrainedModelDeployment + UpdateDataFrameAnalytics ml_update_data_frame_analytics.NewUpdateDataFrameAnalytics + UpdateDatafeed ml_update_datafeed.NewUpdateDatafeed + UpdateFilter ml_update_filter.NewUpdateFilter + UpdateJob ml_update_job.NewUpdateJob + UpdateModelSnapshot ml_update_model_snapshot.NewUpdateModelSnapshot + UpdateTrainedModelDeployment ml_update_trained_model_deployment.NewUpdateTrainedModelDeployment + UpgradeJobSnapshot ml_upgrade_job_snapshot.NewUpgradeJobSnapshot + Validate ml_validate.NewValidate + ValidateDetector ml_validate_detector.NewValidateDetector } type Monitoring struct { - // Send monitoring data. - // This API is used by the monitoring features to send monitoring data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/ Bulk monitoring_bulk.NewBulk } type Nodes struct { - // Clear the archived repositories metering. - // Clear the archived repositories metering information in the cluster. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-clear-repositories-metering-archive ClearRepositoriesMeteringArchive nodes_clear_repositories_metering_archive.NewClearRepositoriesMeteringArchive - // Get cluster repositories metering. - // Get repositories metering information for a cluster. - // This API exposes monotonically non-decreasing counters and it is expected - // that clients would durably store the information needed to compute - // aggregations over a period of time. - // Additionally, the information exposed by this API is volatile, meaning that - // it will not be present after node restarts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-get-repositories-metering-info - GetRepositoriesMeteringInfo nodes_get_repositories_metering_info.NewGetRepositoriesMeteringInfo - // Get the hot threads for nodes. - // Get a breakdown of the hot threads on each selected node in the cluster. - // The output is plain text with a breakdown of the top hot threads for each - // node. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-hot-threads - HotThreads nodes_hot_threads.NewHotThreads - // Get node information. - // - // By default, the API returns all attributes and core settings for cluster - // nodes. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-info - Info nodes_info.NewInfo - // Reload the keystore on nodes in the cluster. - // - // Secure settings are stored in an on-disk keystore. Certain of these settings - // are reloadable. - // That is, you can change them on disk and reload them without restarting any - // nodes in the cluster. - // When you have updated reloadable secure settings in your keystore, you can - // use this API to reload those settings on each node. - // - // When the Elasticsearch keystore is password protected and not simply - // obfuscated, you must provide the password for the keystore when you reload - // the secure settings. - // Reloading the settings for the whole cluster assumes that the keystores for - // all nodes are protected with the same password; this method is allowed only - // when inter-node communications are encrypted. - // Alternatively, you can reload the secure settings on each node by locally - // accessing the API and passing the node-specific Elasticsearch keystore - // password. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-reload-secure-settings - ReloadSecureSettings nodes_reload_secure_settings.NewReloadSecureSettings - // Get node statistics. - // Get statistics for nodes in a cluster. - // By default, all stats are returned. You can limit the returned information by - // using metrics. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-stats - Stats nodes_stats.NewStats - // Get feature usage information. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-usage - Usage nodes_usage.NewUsage + GetRepositoriesMeteringInfo nodes_get_repositories_metering_info.NewGetRepositoriesMeteringInfo + HotThreads nodes_hot_threads.NewHotThreads + Info nodes_info.NewInfo + ReloadSecureSettings nodes_reload_secure_settings.NewReloadSecureSettings + Stats nodes_stats.NewStats + Usage nodes_usage.NewUsage } type Profiling struct { - // Extracts a UI-optimized structure to render flamegraphs from Universal - // Profiling. - // https://www.elastic.co/guide/en/observability/current/universal-profiling.html - Flamegraph profiling_flamegraph.NewFlamegraph - // Extracts raw stacktrace information from Universal Profiling. - // https://www.elastic.co/guide/en/observability/current/universal-profiling.html - Stacktraces profiling_stacktraces.NewStacktraces - // Returns basic information about the status of Universal Profiling. - // https://www.elastic.co/guide/en/observability/current/universal-profiling.html - Status profiling_status.NewStatus - // Extracts a list of topN functions from Universal Profiling. - // https://www.elastic.co/guide/en/observability/current/universal-profiling.html + Flamegraph profiling_flamegraph.NewFlamegraph + Stacktraces profiling_stacktraces.NewStacktraces + Status profiling_status.NewStatus TopnFunctions profiling_topn_functions.NewTopnFunctions } type QueryRules struct { - // Delete a query rule. - // Delete a query rule within a query ruleset. - // This is a destructive action that is only recoverable by re-adding the same - // rule with the create or update query rule API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-rule - DeleteRule query_rules_delete_rule.NewDeleteRule - // Delete a query ruleset. - // Remove a query ruleset and its associated data. - // This is a destructive action that is not recoverable. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-ruleset + DeleteRule query_rules_delete_rule.NewDeleteRule DeleteRuleset query_rules_delete_ruleset.NewDeleteRuleset - // Get a query rule. - // Get details about a query rule within a query ruleset. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-rule - GetRule query_rules_get_rule.NewGetRule - // Get a query ruleset. - // Get details about a query ruleset. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-ruleset - GetRuleset query_rules_get_ruleset.NewGetRuleset - // Get all query rulesets. - // Get summarized information about the query rulesets. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-list-rulesets - ListRulesets query_rules_list_rulesets.NewListRulesets - // Create or update a query rule. - // Create or update a query rule within a query ruleset. - // - // IMPORTANT: Due to limitations within pinned queries, you can only pin - // documents using ids or docs, but cannot use both in single rule. - // It is advised to use one or the other in query rulesets, to avoid errors. - // Additionally, pinned queries have a maximum limit of 100 pinned hits. - // If multiple matching rules pin more than 100 documents, only the first 100 - // documents are pinned in the order they are specified in the ruleset. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-rule - PutRule query_rules_put_rule.NewPutRule - // Create or update a query ruleset. - // There is a limit of 100 rules per ruleset. - // This limit can be increased by using the - // `xpack.applications.rules.max_rules_per_ruleset` cluster setting. - // - // IMPORTANT: Due to limitations within pinned queries, you can only select - // documents using `ids` or `docs`, but cannot use both in single rule. - // It is advised to use one or the other in query rulesets, to avoid errors. - // Additionally, pinned queries have a maximum limit of 100 pinned hits. - // If multiple matching rules pin more than 100 documents, only the first 100 - // documents are pinned in the order they are specified in the ruleset. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-ruleset - PutRuleset query_rules_put_ruleset.NewPutRuleset - // Test a query ruleset. - // Evaluate match criteria against a query ruleset to identify the rules that - // would match that criteria. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-test - Test query_rules_test.NewTest + GetRule query_rules_get_rule.NewGetRule + GetRuleset query_rules_get_ruleset.NewGetRuleset + ListRulesets query_rules_list_rulesets.NewListRulesets + PutRule query_rules_put_rule.NewPutRule + PutRuleset query_rules_put_ruleset.NewPutRuleset + Test query_rules_test.NewTest } type Rollup struct { - // Delete a rollup job. - // - // A job must be stopped before it can be deleted. - // If you attempt to delete a started job, an error occurs. - // Similarly, if you attempt to delete a nonexistent job, an exception occurs. - // - // IMPORTANT: When you delete a job, you remove only the process that is - // actively monitoring and rolling up data. - // The API does not delete any previously rolled up data. - // This is by design; a user may wish to roll up a static data set. - // Because the data set is static, after it has been fully rolled up there is no - // need to keep the indexing rollup job around (as there will be no new data). - // Thus the job can be deleted, leaving behind the rolled up data for analysis. - // If you wish to also remove the rollup data and the rollup index contains the - // data for only a single job, you can delete the whole rollup index. - // If the rollup index stores data from several jobs, you must issue a - // delete-by-query that targets the rollup job's identifier in the rollup index. - // For example: - // - // ``` - // POST my_rollup_index/_delete_by_query - // { - // "query": { - // "term": { - // "_rollup.id": "the_rollup_job_id" - // } - // } - // } - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-delete-job - DeleteJob rollup_delete_job.NewDeleteJob - // Get rollup job information. - // Get the configuration, stats, and status of rollup jobs. - // - // NOTE: This API returns only active (both `STARTED` and `STOPPED`) jobs. - // If a job was created, ran for a while, then was deleted, the API does not - // return any details about it. - // For details about a historical rollup job, the rollup capabilities API may be - // more useful. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-get-jobs - GetJobs rollup_get_jobs.NewGetJobs - // Get the rollup job capabilities. - // Get the capabilities of any rollup jobs that have been configured for a - // specific index or index pattern. - // - // This API is useful because a rollup job is often configured to rollup only a - // subset of fields from the source index. - // Furthermore, only certain aggregations can be configured for various fields, - // leading to a limited subset of functionality depending on that configuration. - // This API enables you to inspect an index and determine: - // - // 1. Does this index have associated rollup data somewhere in the cluster? - // 2. If yes to the first question, what fields were rolled up, what - // aggregations can be performed, and where does the data live? - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-get-rollup-caps - GetRollupCaps rollup_get_rollup_caps.NewGetRollupCaps - // Get the rollup index capabilities. - // Get the rollup capabilities of all jobs inside of a rollup index. - // A single rollup index may store the data for multiple rollup jobs and may - // have a variety of capabilities depending on those jobs. This API enables you - // to determine: - // - // * What jobs are stored in an index (or indices specified via a pattern)? - // * What target indices were rolled up, what fields were used in those rollups, - // and what aggregations can be performed on each job? - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-get-rollup-index-caps + DeleteJob rollup_delete_job.NewDeleteJob + GetJobs rollup_get_jobs.NewGetJobs + GetRollupCaps rollup_get_rollup_caps.NewGetRollupCaps GetRollupIndexCaps rollup_get_rollup_index_caps.NewGetRollupIndexCaps - // Create a rollup job. - // - // WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will - // fail with a message about the deprecation and planned removal of rollup - // features. A cluster needs to contain either a rollup job or a rollup index in - // order for this API to be allowed to run. - // - // The rollup job configuration contains all the details about how the job - // should run, when it indexes documents, and what future queries will be able - // to run against the rollup index. - // - // There are three main sections to the job configuration: the logistical - // details about the job (for example, the cron schedule), the fields that are - // used for grouping, and what metrics to collect for each group. - // - // Jobs are created in a `STOPPED` state. You can start them with the start - // rollup jobs API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-put-job - PutJob rollup_put_job.NewPutJob - // Search rolled-up data. - // The rollup search endpoint is needed because, internally, rolled-up documents - // utilize a different document structure than the original data. - // It rewrites standard Query DSL into a format that matches the rollup - // documents then takes the response and rewrites it back to what a client would - // expect given the original query. - // - // The request body supports a subset of features from the regular search API. - // The following functionality is not available: - // - // `size`: Because rollups work on pre-aggregated data, no search hits can be - // returned and so size must be set to zero or omitted entirely. - // `highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are - // similarly disallowed. - // - // **Searching both historical rollup and non-rollup data** - // - // The rollup search API has the capability to search across both "live" - // non-rollup data and the aggregated rollup data. - // This is done by simply adding the live indices to the URI. For example: - // - // ``` - // GET sensor-1,sensor_rollup/_rollup_search - // { - // "size": 0, - // "aggregations": { - // "max_temperature": { - // "max": { - // "field": "temperature" - // } - // } - // } - // } - // ``` - // - // The rollup search endpoint does two things when the search runs: - // - // * The original request is sent to the non-rollup index unaltered. - // * A rewritten version of the original request is sent to the rollup index. - // - // When the two responses are received, the endpoint rewrites the rollup - // response and merges the two together. - // During the merging process, if there is any overlap in buckets between the - // two responses, the buckets from the non-rollup index are used. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-rollup-search - RollupSearch rollup_rollup_search.NewRollupSearch - // Start rollup jobs. - // If you try to start a job that does not exist, an exception occurs. - // If you try to start a job that is already started, nothing happens. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-start-job - StartJob rollup_start_job.NewStartJob - // Stop rollup jobs. - // If you try to stop a job that does not exist, an exception occurs. - // If you try to stop a job that is already stopped, nothing happens. - // - // Since only a stopped job can be deleted, it can be useful to block the API - // until the indexer has fully stopped. - // This is accomplished with the `wait_for_completion` query parameter, and - // optionally a timeout. For example: - // - // ``` - // POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s - // ``` - // The parameter blocks the API call from returning until either the job has - // moved to STOPPED or the specified time has elapsed. - // If the specified time elapses without the job moving to STOPPED, a timeout - // exception occurs. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-stop-job - StopJob rollup_stop_job.NewStopJob + PutJob rollup_put_job.NewPutJob + RollupSearch rollup_rollup_search.NewRollupSearch + StartJob rollup_start_job.NewStartJob + StopJob rollup_stop_job.NewStopJob } type SearchApplication struct { - // Delete a search application. - // - // Remove a search application and its associated alias. Indices attached to the - // search application are not removed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete - Delete search_application_delete.NewDelete - // Delete a behavioral analytics collection. - // The associated data stream is also deleted. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete-behavioral-analytics - DeleteBehavioralAnalytics search_application_delete_behavioral_analytics.NewDeleteBehavioralAnalytics - // Get search application details. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get - Get search_application_get.NewGet - // Get behavioral analytics collections. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics - GetBehavioralAnalytics search_application_get_behavioral_analytics.NewGetBehavioralAnalytics - // Get search applications. - // Get information about search applications. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics - List search_application_list.NewList - // Create a behavioral analytics collection event. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-post-behavioral-analytics-event + Delete search_application_delete.NewDelete + DeleteBehavioralAnalytics search_application_delete_behavioral_analytics.NewDeleteBehavioralAnalytics + Get search_application_get.NewGet + GetBehavioralAnalytics search_application_get_behavioral_analytics.NewGetBehavioralAnalytics + List search_application_list.NewList PostBehavioralAnalyticsEvent search_application_post_behavioral_analytics_event.NewPostBehavioralAnalyticsEvent - // Create or update a search application. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-put - Put search_application_put.NewPut - // Create a behavioral analytics collection. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-put-behavioral-analytics - PutBehavioralAnalytics search_application_put_behavioral_analytics.NewPutBehavioralAnalytics - // Render a search application query. - // Generate an Elasticsearch query using the specified query parameters and the - // search template associated with the search application or a default template - // if none is specified. - // If a parameter used in the search template is not specified in `params`, the - // parameter's default value will be used. - // The API returns the specific Elasticsearch query that would be generated and - // run by calling the search application search API. - // - // You must have `read` privileges on the backing alias of the search - // application. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-render-query - RenderQuery search_application_render_query.NewRenderQuery - // Run a search application search. - // Generate and run an Elasticsearch query that uses the specified query - // parameteter and the search template associated with the search application or - // default template. - // Unspecified template parameters are assigned their default values if - // applicable. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-search - Search search_application_search.NewSearch + Put search_application_put.NewPut + PutBehavioralAnalytics search_application_put_behavioral_analytics.NewPutBehavioralAnalytics + RenderQuery search_application_render_query.NewRenderQuery + Search search_application_search.NewSearch } type SearchableSnapshots struct { - // Get cache statistics. - // Get statistics about the shared cache for partially mounted indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-cache-stats CacheStats searchable_snapshots_cache_stats.NewCacheStats - // Clear the cache. - // Clear indices and data streams from the shared cache for partially mounted - // indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-clear-cache ClearCache searchable_snapshots_clear_cache.NewClearCache - // Mount a snapshot. - // Mount a snapshot as a searchable snapshot index. - // Do not use this API for snapshots managed by index lifecycle management - // (ILM). - // Manually mounting ILM-managed snapshots can interfere with ILM processes. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-mount - Mount searchable_snapshots_mount.NewMount - // Get searchable snapshot statistics. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-stats - Stats searchable_snapshots_stats.NewStats + Mount searchable_snapshots_mount.NewMount + Stats searchable_snapshots_stats.NewStats } type Security struct { - // Activate a user profile. - // - // Create or update a user profile on behalf of another user. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // The calling application must have either an `access_token` or a combination - // of `username` and `password` for the user that the profile document is - // intended for. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // - // This API creates or updates a profile document for end users with information - // that is extracted from the user's authentication object including `username`, - // `full_name,` `roles`, and the authentication realm. - // For example, in the JWT `access_token` case, the profile user's `username` is - // extracted from the JWT token claim pointed to by the `claims.principal` - // setting of the JWT realm that authenticated the token. - // - // When updating a profile document, the API enables the document if it was - // disabled. - // Any updates do not change existing content for either the `labels` or `data` - // fields. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-activate-user-profile - ActivateUserProfile security_activate_user_profile.NewActivateUserProfile - // Authenticate a user. - // - // Authenticates a user and returns information about the authenticated user. - // Include the user information in a [basic auth - // header](https://en.wikipedia.org/wiki/Basic_access_authentication). - // A successful call returns a JSON structure that shows user information such - // as their username, the roles that are assigned to the user, any assigned - // metadata, and information about the realms that authenticated and authorized - // the user. - // If the user cannot be authenticated, this API returns a 401 status code. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-authenticate - Authenticate security_authenticate.NewAuthenticate - // Bulk delete roles. - // - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. - // The bulk delete roles API cannot delete roles that are defined in roles - // files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-delete-role - BulkDeleteRole security_bulk_delete_role.NewBulkDeleteRole - // Bulk create or update roles. - // - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. - // The bulk create or update roles API cannot update roles that are defined in - // roles files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-put-role - BulkPutRole security_bulk_put_role.NewBulkPutRole - // Bulk update API keys. - // Update the attributes for multiple API keys. - // - // IMPORTANT: It is not possible to use an API key as the authentication - // credential for this API. To update API keys, the owner user's credentials are - // required. - // - // This API is similar to the update API key API but enables you to apply the - // same update to multiple API keys in one API call. This operation can greatly - // improve performance over making individual updates. - // - // It is not possible to update expired or invalidated API keys. - // - // This API supports updates to API key access scope, metadata and expiration. - // The access scope of each API key is derived from the `role_descriptors` you - // specify in the request and a snapshot of the owner user's permissions at the - // time of the request. - // The snapshot of the owner's permissions is updated automatically on every - // call. - // - // IMPORTANT: If you don't specify `role_descriptors` in the request, a call to - // this API might still change an API key's access scope. This change can occur - // if the owner user's permissions have changed since the API key was created or - // last modified. - // - // A successful request returns a JSON structure that contains the IDs of all - // updated API keys, the IDs of API keys that already had the requested changes - // and did not require an update, and error details for any failed update. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-update-api-keys - BulkUpdateApiKeys security_bulk_update_api_keys.NewBulkUpdateApiKeys - // Change passwords. - // - // Change the passwords of users in the native realm and built-in users. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-change-password - ChangePassword security_change_password.NewChangePassword - // Clear the API key cache. - // - // Evict a subset of all entries from the API key cache. - // The cache is also automatically cleared on state changes of the security - // index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-api-key-cache - ClearApiKeyCache security_clear_api_key_cache.NewClearApiKeyCache - // Clear the privileges cache. - // - // Evict privileges from the native application privilege cache. - // The cache is also automatically cleared for applications that have their - // privileges updated. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-privileges - ClearCachedPrivileges security_clear_cached_privileges.NewClearCachedPrivileges - // Clear the user cache. - // - // Evict users from the user cache. - // You can completely clear the cache or evict specific users. - // - // User credentials are cached in memory on each node to avoid connecting to a - // remote authentication service or hitting the disk for every incoming request. - // There are realm settings that you can use to configure the user cache. - // For more information, refer to the documentation about controlling the user - // cache. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-realms - ClearCachedRealms security_clear_cached_realms.NewClearCachedRealms - // Clear the roles cache. - // - // Evict roles from the native role cache. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-roles - ClearCachedRoles security_clear_cached_roles.NewClearCachedRoles - // Clear service account token caches. - // - // Evict a subset of all entries from the service account token caches. - // Two separate caches exist for service account tokens: one cache for tokens - // backed by the `service_tokens` file, and another for tokens backed by the - // `.security` index. - // This API clears matching entries from both caches. - // - // The cache for service account tokens backed by the `.security` index is - // cleared automatically on state changes of the security index. - // The cache for tokens backed by the `service_tokens` file is cleared - // automatically on file changes. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-service-tokens - ClearCachedServiceTokens security_clear_cached_service_tokens.NewClearCachedServiceTokens - // Create an API key. - // - // Create an API key for access without requiring basic authentication. - // - // IMPORTANT: If the credential that is used to authenticate this request is an - // API key, the derived API key cannot have any privileges. - // If you specify privileges, the API returns an error. - // - // A successful request returns a JSON structure that contains the API key, its - // unique id, and its name. - // If applicable, it also returns expiration information for the API key in - // milliseconds. - // - // NOTE: By default, API keys never expire. You can specify expiration - // information when you create the API keys. - // - // The API keys are created by the Elasticsearch API key service, which is - // automatically enabled. - // To configure or turn off the API key service, refer to API key service - // setting documentation. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-api-key - CreateApiKey security_create_api_key.NewCreateApiKey - // Create a cross-cluster API key. - // - // Create an API key of the `cross_cluster` type for the API key based remote - // cluster access. - // A `cross_cluster` API key cannot be used to authenticate through the REST - // interface. - // - // IMPORTANT: To authenticate this request you must use a credential that is not - // an API key. Even if you use an API key that has the required privilege, the - // API returns an error. - // - // Cross-cluster API keys are created by the Elasticsearch API key service, - // which is automatically enabled. - // - // NOTE: Unlike REST API keys, a cross-cluster API key does not capture - // permissions of the authenticated user. The API key’s effective permission is - // exactly as specified with the `access` property. - // - // A successful request returns a JSON structure that contains the API key, its - // unique ID, and its name. If applicable, it also returns expiration - // information for the API key in milliseconds. - // - // By default, API keys never expire. You can specify expiration information - // when you create the API keys. - // - // Cross-cluster API keys can only be updated with the update cross-cluster API - // key API. - // Attempting to update them with the update REST API key API or the bulk update - // REST API keys API will result in an error. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-cross-cluster-api-key - CreateCrossClusterApiKey security_create_cross_cluster_api_key.NewCreateCrossClusterApiKey - // Create a service account token. - // - // Create a service accounts token for access without requiring basic - // authentication. - // - // NOTE: Service account tokens never expire. - // You must actively delete them if they are no longer needed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-service-token - CreateServiceToken security_create_service_token.NewCreateServiceToken - // Delegate PKI authentication. - // - // This API implements the exchange of an X509Certificate chain for an - // Elasticsearch access token. - // The certificate chain is validated, according to RFC 5280, by sequentially - // considering the trust configuration of every installed PKI realm that has - // `delegation.enabled` set to `true`. - // A successfully trusted client certificate is also subject to the validation - // of the subject distinguished name according to thw `username_pattern` of the - // respective realm. - // - // This API is called by smart and trusted proxies, such as Kibana, which - // terminate the user's TLS session but still want to authenticate the user by - // using a PKI realm—-​as if the user connected directly to Elasticsearch. - // - // IMPORTANT: The association between the subject public key in the target - // certificate and the corresponding private key is not validated. - // This is part of the TLS authentication process and it is delegated to the - // proxy that calls this API. - // The proxy is trusted to have performed the TLS authentication and this API - // translates that authentication into an Elasticsearch access token. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delegate-pki - DelegatePki security_delegate_pki.NewDelegatePki - // Delete application privileges. - // - // To use this API, you must have one of the following privileges: - // - // * The `manage_security` cluster privilege (or a greater privilege such as - // `all`). - // * The "Manage Application Privileges" global privilege for the application - // being referenced in the request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-privileges - DeletePrivileges security_delete_privileges.NewDeletePrivileges - // Delete roles. - // - // Delete roles in the native realm. - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. - // The delete roles API cannot remove roles that are defined in roles files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role - DeleteRole security_delete_role.NewDeleteRole - // Delete role mappings. - // - // Role mappings define which roles are assigned to each user. - // The role mapping APIs are generally the preferred way to manage role mappings - // rather than using role mapping files. - // The delete role mappings API cannot remove role mappings that are defined in - // role mapping files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role-mapping - DeleteRoleMapping security_delete_role_mapping.NewDeleteRoleMapping - // Delete service account tokens. - // - // Delete service account tokens for a service in a specified namespace. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-service-token - DeleteServiceToken security_delete_service_token.NewDeleteServiceToken - // Delete users. - // - // Delete users from the native realm. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-user - DeleteUser security_delete_user.NewDeleteUser - // Disable users. - // - // Disable users in the native realm. - // By default, when you create users, they are enabled. - // You can use this API to revoke a user's access to Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user - DisableUser security_disable_user.NewDisableUser - // Disable a user profile. - // - // Disable user profiles so that they are not visible in user profile searches. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // - // When you activate a user profile, its automatically enabled and visible in - // user profile searches. You can use the disable user profile API to disable a - // user profile so it’s not visible in these searches. - // To re-enable a disabled user profile, use the enable user profile API . - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user-profile - DisableUserProfile security_disable_user_profile.NewDisableUserProfile - // Enable users. - // - // Enable users in the native realm. - // By default, when you create users, they are enabled. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user - EnableUser security_enable_user.NewEnableUser - // Enable a user profile. - // - // Enable user profiles to make them visible in user profile searches. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // - // When you activate a user profile, it's automatically enabled and visible in - // user profile searches. - // If you later disable the user profile, you can use the enable user profile - // API to make the profile visible in these searches again. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user-profile - EnableUserProfile security_enable_user_profile.NewEnableUserProfile - // Enroll Kibana. - // - // Enable a Kibana instance to configure itself for communication with a secured - // Elasticsearch cluster. - // - // NOTE: This API is currently intended for internal use only by Kibana. - // Kibana uses this API internally to configure itself for communications with - // an Elasticsearch cluster that already has security features enabled. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-kibana - EnrollKibana security_enroll_kibana.NewEnrollKibana - // Enroll a node. - // - // Enroll a new node to allow it to join an existing cluster with security - // features enabled. - // - // The response contains all the necessary information for the joining node to - // bootstrap discovery and security related settings so that it can successfully - // join the cluster. - // The response contains key and certificate material that allows the caller to - // generate valid signed certificates for the HTTP layer of all nodes in the - // cluster. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-node - EnrollNode security_enroll_node.NewEnrollNode - // Get API key information. - // - // Retrieves information for one or more API keys. - // NOTE: If you have only the `manage_own_api_key` privilege, this API returns - // only the API keys that you own. - // If you have `read_security`, `manage_api_key` or greater privileges - // (including `manage_security`), this API returns all API keys regardless of - // ownership. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-api-key - GetApiKey security_get_api_key.NewGetApiKey - // Get builtin privileges. - // - // Get the list of cluster privileges and index privileges that are available in - // this version of Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-builtin-privileges - GetBuiltinPrivileges security_get_builtin_privileges.NewGetBuiltinPrivileges - // Get application privileges. - // - // To use this API, you must have one of the following privileges: - // - // * The `read_security` cluster privilege (or a greater privilege such as - // `manage_security` or `all`). - // * The "Manage Application Privileges" global privilege for the application - // being referenced in the request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-privileges - GetPrivileges security_get_privileges.NewGetPrivileges - // Get roles. - // - // Get roles in the native realm. - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. - // The get roles API cannot retrieve roles that are defined in roles files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role - GetRole security_get_role.NewGetRole - // Get role mappings. - // - // Role mappings define which roles are assigned to each user. - // The role mapping APIs are generally the preferred way to manage role mappings - // rather than using role mapping files. - // The get role mappings API cannot retrieve role mappings that are defined in - // role mapping files. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role-mapping - GetRoleMapping security_get_role_mapping.NewGetRoleMapping - // Get service accounts. - // - // Get a list of service accounts that match the provided path parameters. - // - // NOTE: Currently, only the `elastic/fleet-server` service account is - // available. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-accounts - GetServiceAccounts security_get_service_accounts.NewGetServiceAccounts - // Get service account credentials. - // - // To use this API, you must have at least the `read_security` cluster privilege - // (or a greater privilege such as `manage_service_account` or - // `manage_security`). - // - // The response includes service account tokens that were created with the - // create service account tokens API as well as file-backed tokens from all - // nodes of the cluster. - // - // NOTE: For tokens backed by the `service_tokens` file, the API collects them - // from all nodes of the cluster. - // Tokens with the same name from different nodes are assumed to be the same - // token and are only counted once towards the total number of service tokens. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-credentials - GetServiceCredentials security_get_service_credentials.NewGetServiceCredentials - // Get security index settings. - // - // Get the user-configurable settings for the security internal index - // (`.security` and associated indices). - // Only a subset of the index settings — those that are user-configurable—will - // be shown. - // This includes: - // - // * `index.auto_expand_replicas` - // * `index.number_of_replicas` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-settings - GetSettings security_get_settings.NewGetSettings - // Get a token. - // - // Create a bearer token for access without requiring basic authentication. - // The tokens are created by the Elasticsearch Token Service, which is - // automatically enabled when you configure TLS on the HTTP interface. - // Alternatively, you can explicitly enable the - // `xpack.security.authc.token.enabled` setting. - // When you are running in production mode, a bootstrap check prevents you from - // enabling the token service unless you also enable TLS on the HTTP interface. - // - // The get token API takes the same parameters as a typical OAuth 2.0 token API - // except for the use of a JSON request body. - // - // A successful get token API call returns a JSON structure that contains the - // access token, the amount of time (seconds) that the token expires in, the - // type, and the scope if available. - // - // The tokens returned by the get token API have a finite period of time for - // which they are valid and after that time period, they can no longer be used. - // That time period is defined by the `xpack.security.authc.token.timeout` - // setting. - // If you want to invalidate a token immediately, you can do so by using the - // invalidate token API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-token - GetToken security_get_token.NewGetToken - // Get users. - // - // Get information about users in the native realm and built-in users. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user - GetUser security_get_user.NewGetUser - // Get user privileges. - // - // Get the security privileges for the logged in user. - // All users can use this API, but only to determine their own privileges. - // To check the privileges of other users, you must use the run as feature. - // To check whether a user has a specific list of privileges, use the has - // privileges API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-privileges - GetUserPrivileges security_get_user_privileges.NewGetUserPrivileges - // Get a user profile. - // - // Get a user's profile using the unique profile ID. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-profile - GetUserProfile security_get_user_profile.NewGetUserProfile - // Grant an API key. - // - // Create an API key on behalf of another user. - // This API is similar to the create API keys API, however it creates the API - // key for a user that is different than the user that runs the API. - // The caller must have authentication credentials for the user on whose behalf - // the API key will be created. - // It is not possible to use this API to create an API key without that user's - // credentials. - // The supported user authentication credential types are: - // - // * username and password - // * Elasticsearch access tokens - // * JWTs - // - // The user, for whom the authentication credentials is provided, can optionally - // "run as" (impersonate) another user. - // In this case, the API key will be created on behalf of the impersonated user. - // - // This API is intended be used by applications that need to create and manage - // API keys for end users, but cannot guarantee that those users have permission - // to create API keys on their own behalf. - // The API keys are created by the Elasticsearch API key service, which is - // automatically enabled. - // - // A successful grant API key API call returns a JSON structure that contains - // the API key, its unique id, and its name. - // If applicable, it also returns expiration information for the API key in - // milliseconds. - // - // By default, API keys never expire. You can specify expiration information - // when you create the API keys. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-grant-api-key - GrantApiKey security_grant_api_key.NewGrantApiKey - // Check user privileges. - // - // Determine whether the specified user has a specified list of privileges. - // All users can use this API, but only to determine their own privileges. - // To check the privileges of other users, you must use the run as feature. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-has-privileges - HasPrivileges security_has_privileges.NewHasPrivileges - // Check user profile privileges. - // - // Determine whether the users associated with the specified user profile IDs - // have all the requested privileges. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-has-privileges-user-profile - HasPrivilegesUserProfile security_has_privileges_user_profile.NewHasPrivilegesUserProfile - // Invalidate API keys. - // - // This API invalidates API keys created by the create API key or grant API key - // APIs. - // Invalidated API keys fail authentication, but they can still be viewed using - // the get API key information and query API key information APIs, for at least - // the configured retention period, until they are automatically deleted. - // - // To use this API, you must have at least the `manage_security`, - // `manage_api_key`, or `manage_own_api_key` cluster privileges. - // The `manage_security` privilege allows deleting any API key, including both - // REST and cross cluster API keys. - // The `manage_api_key` privilege allows deleting any REST API key, but not - // cross cluster API keys. - // The `manage_own_api_key` only allows deleting REST API keys that are owned by - // the user. - // In addition, with the `manage_own_api_key` privilege, an invalidation request - // must be issued in one of the three formats: - // - // - Set the parameter `owner=true`. - // - Or, set both `username` and `realm_name` to match the user's identity. - // - Or, if the request is issued by an API key, that is to say an API key - // invalidates itself, specify its ID in the `ids` field. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-invalidate-api-key - InvalidateApiKey security_invalidate_api_key.NewInvalidateApiKey - // Invalidate a token. - // - // The access tokens returned by the get token API have a finite period of time - // for which they are valid. - // After that time period, they can no longer be used. - // The time period is defined by the `xpack.security.authc.token.timeout` - // setting. - // - // The refresh tokens returned by the get token API are only valid for 24 hours. - // They can also be used exactly once. - // If you want to invalidate one or more access or refresh tokens immediately, - // use this invalidate token API. - // - // NOTE: While all parameters are optional, at least one of them is required. - // More specifically, either one of `token` or `refresh_token` parameters is - // required. - // If none of these two are specified, then `realm_name` and/or `username` need - // to be specified. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-invalidate-token - InvalidateToken security_invalidate_token.NewInvalidateToken - // Authenticate OpenID Connect. - // - // Exchange an OpenID Connect authentication response message for an - // Elasticsearch internal access token and refresh token that can be - // subsequently used for authentication. - // - // Elasticsearch exposes all the necessary OpenID Connect related functionality - // with the OpenID Connect APIs. - // These APIs are used internally by Kibana in order to provide OpenID Connect - // based authentication, but can also be used by other, custom web applications - // or other clients. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-authenticate - OidcAuthenticate security_oidc_authenticate.NewOidcAuthenticate - // Logout of OpenID Connect. - // - // Invalidate an access token and a refresh token that were generated as a - // response to the `/_security/oidc/authenticate` API. - // - // If the OpenID Connect authentication realm in Elasticsearch is accordingly - // configured, the response to this call will contain a URI pointing to the end - // session endpoint of the OpenID Connect Provider in order to perform single - // logout. - // - // Elasticsearch exposes all the necessary OpenID Connect related functionality - // with the OpenID Connect APIs. - // These APIs are used internally by Kibana in order to provide OpenID Connect - // based authentication, but can also be used by other, custom web applications - // or other clients. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-logout - OidcLogout security_oidc_logout.NewOidcLogout - // Prepare OpenID connect authentication. - // - // Create an oAuth 2.0 authentication request as a URL string based on the - // configuration of the OpenID Connect authentication realm in Elasticsearch. - // - // The response of this API is a URL pointing to the Authorization Endpoint of - // the configured OpenID Connect Provider, which can be used to redirect the - // browser of the user in order to continue the authentication process. - // - // Elasticsearch exposes all the necessary OpenID Connect related functionality - // with the OpenID Connect APIs. - // These APIs are used internally by Kibana in order to provide OpenID Connect - // based authentication, but can also be used by other, custom web applications - // or other clients. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-prepare-authentication - OidcPrepareAuthentication security_oidc_prepare_authentication.NewOidcPrepareAuthentication - // Create or update application privileges. - // - // To use this API, you must have one of the following privileges: - // - // * The `manage_security` cluster privilege (or a greater privilege such as - // `all`). - // * The "Manage Application Privileges" global privilege for the application - // being referenced in the request. - // - // Application names are formed from a prefix, with an optional suffix that - // conform to the following rules: - // - // * The prefix must begin with a lowercase ASCII letter. - // * The prefix must contain only ASCII letters or digits. - // * The prefix must be at least 3 characters long. - // * If the suffix exists, it must begin with either a dash `-` or `_`. - // * The suffix cannot contain any of the following characters: `\`, `/`, `*`, - // `?`, `"`, `<`, `>`, `|`, `,`, `*`. - // * No part of the name can contain whitespace. - // - // Privilege names must begin with a lowercase ASCII letter and must contain - // only ASCII letters and digits along with the characters `_`, `-`, and `.`. - // - // Action names can contain any number of printable ASCII characters and must - // contain at least one of the following characters: `/`, `*`, `:`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-privileges - PutPrivileges security_put_privileges.NewPutPrivileges - // Create or update roles. - // - // The role management APIs are generally the preferred way to manage roles in - // the native realm, rather than using file-based role management. - // The create or update roles API cannot update roles that are defined in roles - // files. - // File-based role management is not available in Elastic Serverless. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-role - PutRole security_put_role.NewPutRole - // Create or update role mappings. - // - // Role mappings define which roles are assigned to each user. - // Each mapping has rules that identify users and a list of roles that are - // granted to those users. - // The role mapping APIs are generally the preferred way to manage role mappings - // rather than using role mapping files. The create or update role mappings API - // cannot update role mappings that are defined in role mapping files. - // - // NOTE: This API does not create roles. Rather, it maps users to existing - // roles. - // Roles can be created by using the create or update roles API or roles files. - // - // **Role templates** - // - // The most common use for role mappings is to create a mapping from a known - // value on the user to a fixed role name. - // For example, all users in the `cn=admin,dc=example,dc=com` LDAP group should - // be given the superuser role in Elasticsearch. - // The `roles` field is used for this purpose. - // - // For more complex needs, it is possible to use Mustache templates to - // dynamically determine the names of the roles that should be granted to the - // user. - // The `role_templates` field is used for this purpose. - // - // NOTE: To use role templates successfully, the relevant scripting feature must - // be enabled. - // Otherwise, all attempts to create a role mapping with role templates fail. - // - // All of the user fields that are available in the role mapping rules are also - // available in the role templates. - // Thus it is possible to assign a user to a role that reflects their username, - // their groups, or the name of the realm to which they authenticated. - // - // By default a template is evaluated to produce a single string that is the - // name of the role which should be assigned to the user. - // If the format of the template is set to "json" then the template is expected - // to produce a JSON string or an array of JSON strings for the role names. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-role-mapping - PutRoleMapping security_put_role_mapping.NewPutRoleMapping - // Create or update users. - // - // Add and update users in the native realm. - // A password is required for adding a new user but is optional when updating an - // existing user. - // To change a user's password without updating any other fields, use the change - // password API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-user - PutUser security_put_user.NewPutUser - // Find API keys with a query. - // - // Get a paginated list of API keys and their information. - // You can optionally filter the results with a query. - // - // To use this API, you must have at least the `manage_own_api_key` or the - // `read_security` cluster privileges. - // If you have only the `manage_own_api_key` privilege, this API returns only - // the API keys that you own. - // If you have the `read_security`, `manage_api_key`, or greater privileges - // (including `manage_security`), this API returns all API keys regardless of - // ownership. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-api-keys - QueryApiKeys security_query_api_keys.NewQueryApiKeys - // Find roles with a query. - // - // Get roles in a paginated manner. - // The role management APIs are generally the preferred way to manage roles, - // rather than using file-based role management. - // The query roles API does not retrieve roles that are defined in roles files, - // nor built-in ones. - // You can optionally filter the results with a query. - // Also, the results can be paginated and sorted. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-role - QueryRole security_query_role.NewQueryRole - // Find users with a query. - // - // Get information for users in a paginated manner. - // You can optionally filter the results with a query. - // - // NOTE: As opposed to the get user API, built-in users are excluded from the - // result. - // This API is only for native users. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-user - QueryUser security_query_user.NewQueryUser - // Authenticate SAML. - // - // Submit a SAML response message to Elasticsearch for consumption. - // - // NOTE: This API is intended for use by custom web applications other than - // Kibana. - // If you are using Kibana, refer to the documentation for configuring SAML - // single-sign-on on the Elastic Stack. - // - // The SAML message that is submitted can be: - // - // * A response to a SAML authentication request that was previously created - // using the SAML prepare authentication API. - // * An unsolicited SAML message in the case of an IdP-initiated single sign-on - // (SSO) flow. - // - // In either case, the SAML message needs to be a base64 encoded XML document - // with a root element of ``. - // - // After successful validation, Elasticsearch responds with an Elasticsearch - // internal access token and refresh token that can be subsequently used for - // authentication. - // This API endpoint essentially exchanges SAML responses that indicate - // successful authentication in the IdP for Elasticsearch access and refresh - // tokens, which can be used for authentication against Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-authenticate - SamlAuthenticate security_saml_authenticate.NewSamlAuthenticate - // Logout of SAML completely. - // - // Verifies the logout response sent from the SAML IdP. - // - // NOTE: This API is intended for use by custom web applications other than - // Kibana. - // If you are using Kibana, refer to the documentation for configuring SAML - // single-sign-on on the Elastic Stack. - // - // The SAML IdP may send a logout response back to the SP after handling the - // SP-initiated SAML Single Logout. - // This API verifies the response by ensuring the content is relevant and - // validating its signature. - // An empty response is returned if the verification process is successful. - // The response can be sent by the IdP with either the HTTP-Redirect or the - // HTTP-Post binding. - // The caller of this API must prepare the request accordingly so that this API - // can handle either of them. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-complete-logout - SamlCompleteLogout security_saml_complete_logout.NewSamlCompleteLogout - // Invalidate SAML. - // - // Submit a SAML LogoutRequest message to Elasticsearch for consumption. - // - // NOTE: This API is intended for use by custom web applications other than - // Kibana. - // If you are using Kibana, refer to the documentation for configuring SAML - // single-sign-on on the Elastic Stack. - // - // The logout request comes from the SAML IdP during an IdP initiated Single - // Logout. - // The custom web application can use this API to have Elasticsearch process the - // `LogoutRequest`. - // After successful validation of the request, Elasticsearch invalidates the - // access token and refresh token that corresponds to that specific SAML - // principal and provides a URL that contains a SAML LogoutResponse message. - // Thus the user can be redirected back to their IdP. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-invalidate - SamlInvalidate security_saml_invalidate.NewSamlInvalidate - // Logout of SAML. - // - // Submits a request to invalidate an access token and refresh token. - // - // NOTE: This API is intended for use by custom web applications other than - // Kibana. - // If you are using Kibana, refer to the documentation for configuring SAML - // single-sign-on on the Elastic Stack. - // - // This API invalidates the tokens that were generated for a user by the SAML - // authenticate API. - // If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP - // supports this, the Elasticsearch response contains a URL to redirect the user - // to the IdP that contains a SAML logout request (starting an SP-initiated SAML - // Single Logout). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-logout - SamlLogout security_saml_logout.NewSamlLogout - // Prepare SAML authentication. - // - // Create a SAML authentication request (``) as a URL string based - // on the configuration of the respective SAML realm in Elasticsearch. - // - // NOTE: This API is intended for use by custom web applications other than - // Kibana. - // If you are using Kibana, refer to the documentation for configuring SAML - // single-sign-on on the Elastic Stack. - // - // This API returns a URL pointing to the SAML Identity Provider. - // You can use the URL to redirect the browser of the user in order to continue - // the authentication process. - // The URL includes a single parameter named `SAMLRequest`, which contains a - // SAML Authentication request that is deflated and Base64 encoded. - // If the configuration dictates that SAML authentication requests should be - // signed, the URL has two extra parameters named `SigAlg` and `Signature`. - // These parameters contain the algorithm used for the signature and the - // signature value itself. - // It also returns a random string that uniquely identifies this SAML - // Authentication request. - // The caller of this API needs to store this identifier as it needs to be used - // in a following step of the authentication process. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-prepare-authentication - SamlPrepareAuthentication security_saml_prepare_authentication.NewSamlPrepareAuthentication - // Create SAML service provider metadata. - // - // Generate SAML metadata for a SAML 2.0 Service Provider. - // - // The SAML 2.0 specification provides a mechanism for Service Providers to - // describe their capabilities and configuration using a metadata file. - // This API generates Service Provider metadata based on the configuration of a - // SAML realm in Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-service-provider-metadata + ActivateUserProfile security_activate_user_profile.NewActivateUserProfile + Authenticate security_authenticate.NewAuthenticate + BulkDeleteRole security_bulk_delete_role.NewBulkDeleteRole + BulkPutRole security_bulk_put_role.NewBulkPutRole + BulkUpdateApiKeys security_bulk_update_api_keys.NewBulkUpdateApiKeys + ChangePassword security_change_password.NewChangePassword + ClearApiKeyCache security_clear_api_key_cache.NewClearApiKeyCache + ClearCachedPrivileges security_clear_cached_privileges.NewClearCachedPrivileges + ClearCachedRealms security_clear_cached_realms.NewClearCachedRealms + ClearCachedRoles security_clear_cached_roles.NewClearCachedRoles + ClearCachedServiceTokens security_clear_cached_service_tokens.NewClearCachedServiceTokens + CreateApiKey security_create_api_key.NewCreateApiKey + CreateCrossClusterApiKey security_create_cross_cluster_api_key.NewCreateCrossClusterApiKey + CreateServiceToken security_create_service_token.NewCreateServiceToken + DelegatePki security_delegate_pki.NewDelegatePki + DeletePrivileges security_delete_privileges.NewDeletePrivileges + DeleteRole security_delete_role.NewDeleteRole + DeleteRoleMapping security_delete_role_mapping.NewDeleteRoleMapping + DeleteServiceToken security_delete_service_token.NewDeleteServiceToken + DeleteUser security_delete_user.NewDeleteUser + DisableUser security_disable_user.NewDisableUser + DisableUserProfile security_disable_user_profile.NewDisableUserProfile + EnableUser security_enable_user.NewEnableUser + EnableUserProfile security_enable_user_profile.NewEnableUserProfile + EnrollKibana security_enroll_kibana.NewEnrollKibana + EnrollNode security_enroll_node.NewEnrollNode + GetApiKey security_get_api_key.NewGetApiKey + GetBuiltinPrivileges security_get_builtin_privileges.NewGetBuiltinPrivileges + GetPrivileges security_get_privileges.NewGetPrivileges + GetRole security_get_role.NewGetRole + GetRoleMapping security_get_role_mapping.NewGetRoleMapping + GetServiceAccounts security_get_service_accounts.NewGetServiceAccounts + GetServiceCredentials security_get_service_credentials.NewGetServiceCredentials + GetSettings security_get_settings.NewGetSettings + GetToken security_get_token.NewGetToken + GetUser security_get_user.NewGetUser + GetUserPrivileges security_get_user_privileges.NewGetUserPrivileges + GetUserProfile security_get_user_profile.NewGetUserProfile + GrantApiKey security_grant_api_key.NewGrantApiKey + HasPrivileges security_has_privileges.NewHasPrivileges + HasPrivilegesUserProfile security_has_privileges_user_profile.NewHasPrivilegesUserProfile + InvalidateApiKey security_invalidate_api_key.NewInvalidateApiKey + InvalidateToken security_invalidate_token.NewInvalidateToken + OidcAuthenticate security_oidc_authenticate.NewOidcAuthenticate + OidcLogout security_oidc_logout.NewOidcLogout + OidcPrepareAuthentication security_oidc_prepare_authentication.NewOidcPrepareAuthentication + PutPrivileges security_put_privileges.NewPutPrivileges + PutRole security_put_role.NewPutRole + PutRoleMapping security_put_role_mapping.NewPutRoleMapping + PutUser security_put_user.NewPutUser + QueryApiKeys security_query_api_keys.NewQueryApiKeys + QueryRole security_query_role.NewQueryRole + QueryUser security_query_user.NewQueryUser + SamlAuthenticate security_saml_authenticate.NewSamlAuthenticate + SamlCompleteLogout security_saml_complete_logout.NewSamlCompleteLogout + SamlInvalidate security_saml_invalidate.NewSamlInvalidate + SamlLogout security_saml_logout.NewSamlLogout + SamlPrepareAuthentication security_saml_prepare_authentication.NewSamlPrepareAuthentication SamlServiceProviderMetadata security_saml_service_provider_metadata.NewSamlServiceProviderMetadata - // Suggest a user profile. - // - // Get suggestions for user profiles that match specified search criteria. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-suggest-user-profiles - SuggestUserProfiles security_suggest_user_profiles.NewSuggestUserProfiles - // Update an API key. - // - // Update attributes of an existing API key. - // This API supports updates to an API key's access scope, expiration, and - // metadata. - // - // To use this API, you must have at least the `manage_own_api_key` cluster - // privilege. - // Users can only update API keys that they created or that were granted to - // them. - // To update another user’s API key, use the `run_as` feature to submit a - // request on behalf of another user. - // - // IMPORTANT: It's not possible to use an API key as the authentication - // credential for this API. The owner user’s credentials are required. - // - // Use this API to update API keys created by the create API key or grant API - // Key APIs. - // If you need to apply the same update to many API keys, you can use the bulk - // update API keys API to reduce overhead. - // It's not possible to update expired API keys or API keys that have been - // invalidated by the invalidate API key API. - // - // The access scope of an API key is derived from the `role_descriptors` you - // specify in the request and a snapshot of the owner user's permissions at the - // time of the request. - // The snapshot of the owner's permissions is updated automatically on every - // call. - // - // IMPORTANT: If you don't specify `role_descriptors` in the request, a call to - // this API might still change the API key's access scope. - // This change can occur if the owner user's permissions have changed since the - // API key was created or last modified. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-api-key - UpdateApiKey security_update_api_key.NewUpdateApiKey - // Update a cross-cluster API key. - // - // Update the attributes of an existing cross-cluster API key, which is used for - // API key based remote cluster access. - // - // To use this API, you must have at least the `manage_security` cluster - // privilege. - // Users can only update API keys that they created. - // To update another user's API key, use the `run_as` feature to submit a - // request on behalf of another user. - // - // IMPORTANT: It's not possible to use an API key as the authentication - // credential for this API. - // To update an API key, the owner user's credentials are required. - // - // It's not possible to update expired API keys, or API keys that have been - // invalidated by the invalidate API key API. - // - // This API supports updates to an API key's access scope, metadata, and - // expiration. - // The owner user's information, such as the `username` and `realm`, is also - // updated automatically on every call. - // - // NOTE: This API cannot update REST API keys, which should be updated by either - // the update API key or bulk update API keys API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-cross-cluster-api-key - UpdateCrossClusterApiKey security_update_cross_cluster_api_key.NewUpdateCrossClusterApiKey - // Update security index settings. - // - // Update the user-configurable settings for the security internal index - // (`.security` and associated indices). Only a subset of settings are allowed - // to be modified. This includes `index.auto_expand_replicas` and - // `index.number_of_replicas`. - // - // NOTE: If `index.auto_expand_replicas` is set, `index.number_of_replicas` will - // be ignored during updates. - // - // If a specific index is not in use on the system and settings are provided for - // it, the request will be rejected. - // This API does not yet support configuring the settings for indices before - // they are in use. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-settings - UpdateSettings security_update_settings.NewUpdateSettings - // Update user profile data. - // - // Update specific data for the user profile that is associated with a unique - // ID. - // - // NOTE: The user profile feature is designed only for use by Kibana and - // Elastic's Observability, Enterprise Search, and Elastic Security solutions. - // Individual users and external applications should not call this API directly. - // Elastic reserves the right to change or remove this feature in future - // releases without prior notice. - // - // To use this API, you must have one of the following privileges: - // - // * The `manage_user_profile` cluster privilege. - // * The `update_profile_data` global privilege for the namespaces that are - // referenced in the request. - // - // This API updates the `labels` and `data` fields of an existing user profile - // document with JSON objects. - // New keys and their values are added to the profile document and conflicting - // keys are replaced by data that's included in the request. - // - // For both labels and data, content is namespaced by the top-level fields. - // The `update_profile_data` global privilege grants privileges for updating - // only the allowed namespaces. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-user-profile-data - UpdateUserProfileData security_update_user_profile_data.NewUpdateUserProfileData + SuggestUserProfiles security_suggest_user_profiles.NewSuggestUserProfiles + UpdateApiKey security_update_api_key.NewUpdateApiKey + UpdateCrossClusterApiKey security_update_cross_cluster_api_key.NewUpdateCrossClusterApiKey + UpdateSettings security_update_settings.NewUpdateSettings + UpdateUserProfileData security_update_user_profile_data.NewUpdateUserProfileData } type Shutdown struct { - // Cancel node shutdown preparations. - // Remove a node from the shutdown list so it can resume normal operations. - // You must explicitly clear the shutdown request when a node rejoins the - // cluster or when a node has permanently left the cluster. - // Shutdown requests are never removed automatically by Elasticsearch. - // - // NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic - // Cloud Enterprise, and Elastic Cloud on Kubernetes. - // Direct use is not supported. - // - // If the operator privileges feature is enabled, you must be an operator to use - // this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-shutdown-delete-node DeleteNode shutdown_delete_node.NewDeleteNode - // Get the shutdown status. - // - // Get information about nodes that are ready to be shut down, have shut down - // preparations still in progress, or have stalled. - // The API returns status information for each part of the shut down process. - // - // NOTE: This feature is designed for indirect use by Elasticsearch Service, - // Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // - // If the operator privileges feature is enabled, you must be an operator to use - // this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-shutdown-get-node - GetNode shutdown_get_node.NewGetNode - // Prepare a node to be shut down. - // - // NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic - // Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not - // supported. - // - // If you specify a node that is offline, it will be prepared for shut down when - // it rejoins the cluster. - // - // If the operator privileges feature is enabled, you must be an operator to use - // this API. - // - // The API migrates ongoing tasks and index shards to other nodes as needed to - // prepare a node to be restarted or shut down and removed from the cluster. - // This ensures that Elasticsearch can be stopped safely with minimal disruption - // to the cluster. - // - // You must specify the type of shutdown: `restart`, `remove`, or `replace`. - // If a node is already being prepared for shutdown, you can use this API to - // change the shutdown type. - // - // IMPORTANT: This API does NOT terminate the Elasticsearch process. - // Monitor the node shutdown status to determine when it is safe to stop - // Elasticsearch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-shutdown-put-node - PutNode shutdown_put_node.NewPutNode + GetNode shutdown_get_node.NewGetNode + PutNode shutdown_put_node.NewPutNode } type Simulate struct { - // Simulate data ingestion. - // Run ingest pipelines against a set of provided documents, optionally with - // substitute pipeline definitions, to simulate ingesting data into an index. - // - // This API is meant to be used for troubleshooting or pipeline development, as - // it does not actually index any data into Elasticsearch. - // - // The API runs the default and final pipeline for that index against a set of - // documents provided in the body of the request. - // If a pipeline contains a reroute processor, it follows that reroute processor - // to the new index, running that index's pipelines as well the same way that a - // non-simulated ingest would. - // No data is indexed into Elasticsearch. - // Instead, the transformed document is returned, along with the list of - // pipelines that have been run and the name of the index where the document - // would have been indexed if this were not a simulation. - // The transformed document is validated against the mappings that would apply - // to this index, and any validation error is reported in the result. - // - // This API differs from the simulate pipeline API in that you specify a single - // pipeline for that API, and it runs only that one pipeline. - // The simulate pipeline API is more useful for developing a single pipeline, - // while the simulate ingest API is more useful for troubleshooting the - // interaction of the various pipelines that get applied when ingesting into an - // index. - // - // By default, the pipeline definitions that are currently in the system are - // used. - // However, you can supply substitute pipeline definitions in the body of the - // request. - // These will be used in place of the pipeline definitions that are already in - // the system. This can be used to replace existing pipeline definitions or to - // create new ones. The pipeline substitutions are used only within this - // request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-simulate-ingest Ingest simulate_ingest.NewIngest } type Slm struct { - // Delete a policy. - // Delete a snapshot lifecycle policy definition. - // This operation prevents any future snapshots from being taken but does not - // cancel in-progress snapshots or remove previously-taken snapshots. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-delete-lifecycle - DeleteLifecycle slm_delete_lifecycle.NewDeleteLifecycle - // Run a policy. - // Immediately create a snapshot according to the snapshot lifecycle policy - // without waiting for the scheduled time. - // The snapshot policy is normally applied according to its schedule, but you - // might want to manually run a policy before performing an upgrade or other - // maintenance. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-lifecycle + DeleteLifecycle slm_delete_lifecycle.NewDeleteLifecycle ExecuteLifecycle slm_execute_lifecycle.NewExecuteLifecycle - // Run a retention policy. - // Manually apply the retention policy to force immediate removal of snapshots - // that are expired according to the snapshot lifecycle policy retention rules. - // The retention policy is normally applied according to its schedule. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-retention ExecuteRetention slm_execute_retention.NewExecuteRetention - // Get policy information. - // Get snapshot lifecycle policy definitions and information about the latest - // snapshot attempts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-lifecycle - GetLifecycle slm_get_lifecycle.NewGetLifecycle - // Get snapshot lifecycle management statistics. - // Get global and policy-level statistics about actions taken by snapshot - // lifecycle management. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-stats - GetStats slm_get_stats.NewGetStats - // Get the snapshot lifecycle management status. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-status - GetStatus slm_get_status.NewGetStatus - // Create or update a policy. - // Create or update a snapshot lifecycle policy. - // If the policy already exists, this request increments the policy version. - // Only the latest version of a policy is stored. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-put-lifecycle - PutLifecycle slm_put_lifecycle.NewPutLifecycle - // Start snapshot lifecycle management. - // Snapshot lifecycle management (SLM) starts automatically when a cluster is - // formed. - // Manually starting SLM is necessary only if it has been stopped using the stop - // SLM API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-start - Start slm_start.NewStart - // Stop snapshot lifecycle management. - // Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. - // This API is useful when you are performing maintenance on a cluster and need - // to prevent SLM from performing any actions on your data streams or indices. - // Stopping SLM does not stop any snapshots that are in progress. - // You can manually trigger snapshots with the run snapshot lifecycle policy API - // even if SLM is stopped. - // - // The API returns a response as soon as the request is acknowledged, but the - // plugin might continue to run until in-progress operations complete and it can - // be safely stopped. - // Use the get snapshot lifecycle management status API to see if SLM is - // running. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-stop - Stop slm_stop.NewStop + GetLifecycle slm_get_lifecycle.NewGetLifecycle + GetStats slm_get_stats.NewGetStats + GetStatus slm_get_status.NewGetStatus + PutLifecycle slm_put_lifecycle.NewPutLifecycle + Start slm_start.NewStart + Stop slm_stop.NewStop } type Snapshot struct { - // Clean up the snapshot repository. - // Trigger the review of the contents of a snapshot repository and delete any - // stale data not referenced by existing snapshots. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-cleanup-repository - CleanupRepository snapshot_cleanup_repository.NewCleanupRepository - // Clone a snapshot. - // Clone part of all of a snapshot into another snapshot in the same repository. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-clone - Clone snapshot_clone.NewClone - // Create a snapshot. - // Take a snapshot of a cluster or of data streams and indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-create - Create snapshot_create.NewCreate - // Create or update a snapshot repository. - // IMPORTANT: If you are migrating searchable snapshots, the repository name - // must be identical in the source and destination clusters. - // To register a snapshot repository, the cluster's global metadata must be - // writeable. - // Ensure there are no cluster blocks (for example, `cluster.blocks.read_only` - // and `clsuter.blocks.read_only_allow_delete` settings) that prevent write - // access. - // - // Several options for this API can be specified using a query parameter or a - // request body parameter. - // If both parameters are specified, only the query parameter is used. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-create-repository - CreateRepository snapshot_create_repository.NewCreateRepository - // Delete snapshots. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete - Delete snapshot_delete.NewDelete - // Delete snapshot repositories. - // When a repository is unregistered, Elasticsearch removes only the reference - // to the location where the repository is storing the snapshots. - // The snapshots themselves are left untouched and in place. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete-repository - DeleteRepository snapshot_delete_repository.NewDeleteRepository - // Get snapshot information. - // - // NOTE: The `after` parameter and `next` field enable you to iterate through - // snapshots with some consistency guarantees regarding concurrent creation or - // deletion of snapshots. - // It is guaranteed that any snapshot that exists at the beginning of the - // iteration and is not concurrently deleted will be seen during the iteration. - // Snapshots concurrently created may be seen during an iteration. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get - Get snapshot_get.NewGet - // Get snapshot repository information. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get-repository - GetRepository snapshot_get_repository.NewGetRepository - // Analyze a snapshot repository. - // Analyze the performance characteristics and any incorrect behaviour found in - // a repository. - // - // The response exposes implementation details of the analysis which may change - // from version to version. - // The response body format is therefore not considered stable and may be - // different in newer versions. - // - // There are a large number of third-party storage systems available, not all of - // which are suitable for use as a snapshot repository by Elasticsearch. - // Some storage systems behave incorrectly, or perform poorly, especially when - // accessed concurrently by multiple clients as the nodes of an Elasticsearch - // cluster do. This API performs a collection of read and write operations on - // your repository which are designed to detect incorrect behaviour and to - // measure the performance characteristics of your storage system. - // - // The default values for the parameters are deliberately low to reduce the - // impact of running an analysis inadvertently and to provide a sensible - // starting point for your investigations. - // Run your first analysis with the default parameter values to check for simple - // problems. - // If successful, run a sequence of increasingly large analyses until you - // encounter a failure or you reach a `blob_count` of at least `2000`, a - // `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, - // and a `register_operation_count` of at least `100`. - // Always specify a generous timeout, possibly `1h` or longer, to allow time for - // each analysis to run to completion. - // Perform the analyses using a multi-node cluster of a similar size to your - // production cluster so that it can detect any problems that only arise when - // the repository is accessed by many nodes at once. - // - // If the analysis fails, Elasticsearch detected that your repository behaved - // unexpectedly. - // This usually means you are using a third-party storage system with an - // incorrect or incompatible implementation of the API it claims to support. - // If so, this storage system is not suitable for use as a snapshot repository. - // You will need to work with the supplier of your storage system to address the - // incompatibilities that Elasticsearch detects. - // - // If the analysis is successful, the API returns details of the testing - // process, optionally including how long each operation took. - // You can use this information to determine the performance of your storage - // system. - // If any operation fails or returns an incorrect result, the API returns an - // error. - // If the API returns an error, it may not have removed all the data it wrote to - // the repository. - // The error will indicate the location of any leftover data and this path is - // also recorded in the Elasticsearch logs. - // You should verify that this location has been cleaned up correctly. - // If there is still leftover data at the specified location, you should - // manually remove it. - // - // If the connection from your client to Elasticsearch is closed while the - // client is waiting for the result of the analysis, the test is cancelled. - // Some clients are configured to close their connection if no response is - // received within a certain timeout. - // An analysis takes a long time to complete so you might need to relax any such - // client-side timeouts. - // On cancellation the analysis attempts to clean up the data it was writing, - // but it may not be able to remove it all. - // The path to the leftover data is recorded in the Elasticsearch logs. - // You should verify that this location has been cleaned up correctly. - // If there is still leftover data at the specified location, you should - // manually remove it. - // - // If the analysis is successful then it detected no incorrect behaviour, but - // this does not mean that correct behaviour is guaranteed. - // The analysis attempts to detect common bugs but it does not offer 100% - // coverage. - // Additionally, it does not test the following: - // - // * Your repository must perform durable writes. Once a blob has been written - // it must remain in place until it is deleted, even after a power loss or - // similar disaster. - // * Your repository must not suffer from silent data corruption. Once a blob - // has been written, its contents must remain unchanged until it is deliberately - // modified or deleted. - // * Your repository must behave correctly even if connectivity from the cluster - // is disrupted. Reads and writes may fail in this case, but they must not - // return incorrect results. - // - // IMPORTANT: An analysis writes a substantial amount of data to your repository - // and then reads it back again. - // This consumes bandwidth on the network between the cluster and the - // repository, and storage space and I/O bandwidth on the repository itself. - // You must ensure this load does not affect other users of these systems. - // Analyses respect the repository settings `max_snapshot_bytes_per_sec` and - // `max_restore_bytes_per_sec` if available and the cluster setting - // `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth - // they consume. - // - // NOTE: This API is intended for exploratory use by humans. You should expect - // the request parameters and the response format to vary in future versions. - // - // NOTE: Different versions of Elasticsearch may perform different checks for - // repository compatibility, with newer versions typically being stricter than - // older ones. - // A storage system that passes repository analysis with one version of - // Elasticsearch may fail with a different version. - // This indicates it behaves incorrectly in ways that the former version did not - // detect. - // You must work with the supplier of your storage system to address the - // incompatibilities detected by the repository analysis API in any version of - // Elasticsearch. - // - // NOTE: This API may not work correctly in a mixed-version cluster. - // - // *Implementation details* - // - // NOTE: This section of documentation describes how the repository analysis API - // works in this version of Elasticsearch, but you should expect the - // implementation to vary between versions. The request parameters and response - // format depend on details of the implementation so may also be different in - // newer versions. - // - // The analysis comprises a number of blob-level tasks, as set by the - // `blob_count` parameter and a number of compare-and-exchange operations on - // linearizable registers, as set by the `register_operation_count` parameter. - // These tasks are distributed over the data and master-eligible nodes in the - // cluster for execution. - // - // For most blob-level tasks, the executing node first writes a blob to the - // repository and then instructs some of the other nodes in the cluster to - // attempt to read the data it just wrote. - // The size of the blob is chosen randomly, according to the `max_blob_size` and - // `max_total_data_size` parameters. - // If any of these reads fails then the repository does not implement the - // necessary read-after-write semantics that Elasticsearch requires. - // - // For some blob-level tasks, the executing node will instruct some of its peers - // to attempt to read the data before the writing process completes. - // These reads are permitted to fail, but must not return partial data. - // If any read returns partial data then the repository does not implement the - // necessary atomicity semantics that Elasticsearch requires. - // - // For some blob-level tasks, the executing node will overwrite the blob while - // its peers are reading it. - // In this case the data read may come from either the original or the - // overwritten blob, but the read operation must not return partial data or a - // mix of data from the two blobs. - // If any of these reads returns partial data or a mix of the two blobs then the - // repository does not implement the necessary atomicity semantics that - // Elasticsearch requires for overwrites. - // - // The executing node will use a variety of different methods to write the blob. - // For instance, where applicable, it will use both single-part and multi-part - // uploads. - // Similarly, the reading nodes will use a variety of different methods to read - // the data back again. - // For instance they may read the entire blob from start to end or may read only - // a subset of the data. - // - // For some blob-level tasks, the executing node will cancel the write before it - // is complete. - // In this case, it still instructs some of the other nodes in the cluster to - // attempt to read the blob but all of these reads must fail to find the blob. - // - // Linearizable registers are special blobs that Elasticsearch manipulates using - // an atomic compare-and-exchange operation. - // This operation ensures correct and strongly-consistent behavior even when the - // blob is accessed by multiple nodes at the same time. - // The detailed implementation of the compare-and-exchange operation on - // linearizable registers varies by repository type. - // Repository analysis verifies that that uncontended compare-and-exchange - // operations on a linearizable register blob always succeed. - // Repository analysis also verifies that contended operations either succeed or - // report the contention but do not return incorrect results. - // If an operation fails due to contention, Elasticsearch retries the operation - // until it succeeds. - // Most of the compare-and-exchange operations performed by repository analysis - // atomically increment a counter which is represented as an 8-byte blob. - // Some operations also verify the behavior on small blobs with sizes other than - // 8 bytes. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-repository-analyze - RepositoryAnalyze snapshot_repository_analyze.NewRepositoryAnalyze - // Verify the repository integrity. - // Verify the integrity of the contents of a snapshot repository. - // - // This API enables you to perform a comprehensive check of the contents of a - // repository, looking for any anomalies in its data or metadata which might - // prevent you from restoring snapshots from the repository or which might cause - // future snapshot create or delete operations to fail. - // - // If you suspect the integrity of the contents of one of your snapshot - // repositories, cease all write activity to this repository immediately, set - // its `read_only` option to `true`, and use this API to verify its integrity. - // Until you do so: - // - // * It may not be possible to restore some snapshots from this repository. - // * Searchable snapshots may report errors when searched or may have unassigned - // shards. - // * Taking snapshots into this repository may fail or may appear to succeed but - // have created a snapshot which cannot be restored. - // * Deleting snapshots from this repository may fail or may appear to succeed - // but leave the underlying data on disk. - // * Continuing to write to the repository while it is in an invalid state may - // causing additional damage to its contents. - // - // If the API finds any problems with the integrity of the contents of your - // repository, Elasticsearch will not be able to repair the damage. - // The only way to bring the repository back into a fully working state after - // its contents have been damaged is by restoring its contents from a repository - // backup which was taken before the damage occurred. - // You must also identify what caused the damage and take action to prevent it - // from happening again. - // - // If you cannot restore a repository backup, register a new repository and use - // this for all future snapshot operations. - // In some cases it may be possible to recover some of the contents of a damaged - // repository, either by restoring as many of its snapshots as needed and taking - // new snapshots of the restored data, or by using the reindex API to copy data - // from any searchable snapshots mounted from the damaged repository. - // - // Avoid all operations which write to the repository while the verify - // repository integrity API is running. - // If something changes the repository contents while an integrity verification - // is running then Elasticsearch may incorrectly report having detected some - // anomalies in its contents due to the concurrent writes. - // It may also incorrectly fail to report some anomalies that the concurrent - // writes prevented it from detecting. - // - // NOTE: This API is intended for exploratory use by humans. You should expect - // the request parameters and the response format to vary in future versions. - // - // NOTE: This API may not work correctly in a mixed-version cluster. - // - // The default values for the parameters of this API are designed to limit the - // impact of the integrity verification on other activities in your cluster. - // For instance, by default it will only use at most half of the `snapshot_meta` - // threads to verify the integrity of each snapshot, allowing other snapshot - // operations to use the other half of this thread pool. - // If you modify these parameters to speed up the verification process, you risk - // disrupting other snapshot-related operations in your cluster. - // For large repositories, consider setting up a separate single-node - // Elasticsearch cluster just for running the integrity verification API. - // - // The response exposes implementation details of the analysis which may change - // from version to version. - // The response body format is therefore not considered stable and may be - // different in newer versions. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-repository-verify-integrity + CleanupRepository snapshot_cleanup_repository.NewCleanupRepository + Clone snapshot_clone.NewClone + Create snapshot_create.NewCreate + CreateRepository snapshot_create_repository.NewCreateRepository + Delete snapshot_delete.NewDelete + DeleteRepository snapshot_delete_repository.NewDeleteRepository + Get snapshot_get.NewGet + GetRepository snapshot_get_repository.NewGetRepository + RepositoryAnalyze snapshot_repository_analyze.NewRepositoryAnalyze RepositoryVerifyIntegrity snapshot_repository_verify_integrity.NewRepositoryVerifyIntegrity - // Restore a snapshot. - // Restore a snapshot of a cluster or data streams and indices. - // - // You can restore a snapshot only to a running cluster with an elected master - // node. - // The snapshot repository must be registered and available to the cluster. - // The snapshot and cluster versions must be compatible. - // - // To restore a snapshot, the cluster's global metadata must be writable. Ensure - // there are't any cluster blocks that prevent writes. The restore operation - // ignores index blocks. - // - // Before you restore a data stream, ensure the cluster contains a matching - // index template with data streams enabled. To check, use the index management - // feature in Kibana or the get index template API: - // - // ``` - // GET - // _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - // ``` - // - // If no such template exists, you can create one or restore a cluster state - // that contains one. Without a matching index template, a data stream can't - // roll over or create backing indices. - // - // If your snapshot contains data from App Search or Workplace Search, you must - // restore the Enterprise Search encryption key before you restore the snapshot. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-restore - Restore snapshot_restore.NewRestore - // Get the snapshot status. - // Get a detailed description of the current state for each shard participating - // in the snapshot. - // - // Note that this API should be used only to obtain detailed shard-level - // information for ongoing snapshots. - // If this detail is not needed or you want to obtain information about one or - // more existing snapshots, use the get snapshot API. - // - // If you omit the `` request path parameter, the request retrieves - // information only for currently running snapshots. - // This usage is preferred. - // If needed, you can specify `` and `` to retrieve - // information for specific snapshots, even if they're not currently running. - // - // WARNING: Using the API to return the status of any snapshots other than - // currently running snapshots can be expensive. - // The API requires a read from the repository for each shard in each snapshot. - // For example, if you have 100 snapshots with 1,000 shards each, an API request - // that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 - // shards). - // - // Depending on the latency of your storage, such requests can take an extremely - // long time to return results. - // These requests can also tax machine resources and, when using cloud storage, - // incur high processing costs. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-status - Status snapshot_status.NewStatus - // Verify a snapshot repository. - // Check for common misconfigurations in a snapshot repository. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-verify-repository - VerifyRepository snapshot_verify_repository.NewVerifyRepository + Restore snapshot_restore.NewRestore + Status snapshot_status.NewStatus + VerifyRepository snapshot_verify_repository.NewVerifyRepository } type Sql struct { - // Clear an SQL search cursor. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-clear-cursor - ClearCursor sql_clear_cursor.NewClearCursor - // Delete an async SQL search. - // Delete an async SQL search or a stored synchronous SQL search. - // If the search is still running, the API cancels it. - // - // If the Elasticsearch security features are enabled, only the following users - // can use this API to delete a search: - // - // * Users with the `cancel_task` cluster privilege. - // * The user who first submitted the search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-delete-async - DeleteAsync sql_delete_async.NewDeleteAsync - // Get async SQL search results. - // Get the current status and available results for an async SQL search or - // stored synchronous SQL search. - // - // If the Elasticsearch security features are enabled, only the user who first - // submitted the SQL search can retrieve the search using this API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async - GetAsync sql_get_async.NewGetAsync - // Get the async SQL search status. - // Get the current status of an async SQL search or a stored synchronous SQL - // search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async-status + ClearCursor sql_clear_cursor.NewClearCursor + DeleteAsync sql_delete_async.NewDeleteAsync + GetAsync sql_get_async.NewGetAsync GetAsyncStatus sql_get_async_status.NewGetAsyncStatus - // Get SQL search results. - // Run an SQL request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-query - Query sql_query.NewQuery - // Translate SQL into Elasticsearch queries. - // Translate an SQL search into a search API request containing Query DSL. - // It accepts the same request body parameters as the SQL search API, excluding - // `cursor`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-translate - Translate sql_translate.NewTranslate + Query sql_query.NewQuery + Translate sql_translate.NewTranslate } type Ssl struct { - // Get SSL certificates. - // - // Get information about the X.509 certificates that are used to encrypt - // communications in the cluster. - // The API returns a list that includes certificates from all TLS contexts - // including: - // - // - Settings for transport and HTTP interfaces - // - TLS settings that are used within authentication realms - // - TLS settings for remote monitoring exporters - // - // The list includes certificates that are used for configuring trust, such as - // those configured in the `xpack.security.transport.ssl.truststore` and - // `xpack.security.transport.ssl.certificate_authorities` settings. - // It also includes certificates that are used for configuring server identity, - // such as `xpack.security.http.ssl.keystore` and - // `xpack.security.http.ssl.certificate settings`. - // - // The list does not include certificates that are sourced from the default SSL - // context of the Java Runtime Environment (JRE), even if those certificates are - // in use within Elasticsearch. - // - // NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the - // API returns all the certificates that are included in the PKCS#11 token - // irrespective of whether these are used in the Elasticsearch TLS - // configuration. - // - // If Elasticsearch is configured to use a keystore or truststore, the API - // output includes all certificates in that store, even though some of the - // certificates might not be in active use within the cluster. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ssl-certificates Certificates ssl_certificates.NewCertificates } type Synonyms struct { - // Delete a synonym set. - // - // You can only delete a synonyms set that is not in use by any index analyzer. - // - // Synonyms sets can be used in synonym graph token filters and synonym token - // filters. - // These synonym filters can be used as part of search analyzers. - // - // Analyzers need to be loaded when an index is restored (such as when a node - // starts, or the index becomes open). - // Even if the analyzer is not used on any field mapping, it still needs to be - // loaded on the index recovery phase. - // - // If any analyzers cannot be loaded, the index becomes unavailable and the - // cluster status becomes red or yellow as index shards are not available. - // To prevent that, synonyms sets that are used in analyzers can't be deleted. - // A delete request in this case will return a 400 response code. - // - // To remove a synonyms set, you must first remove all indices that contain - // analyzers using it. - // You can migrate an index by creating a new index that does not contain the - // token filter with the synonyms set, and use the reindex API in order to copy - // over the index data. - // Once finished, you can delete the index. - // When the synonyms set is not used in analyzers, you will be able to delete - // it. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym - DeleteSynonym synonyms_delete_synonym.NewDeleteSynonym - // Delete a synonym rule. - // Delete a synonym rule from a synonym set. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym-rule + DeleteSynonym synonyms_delete_synonym.NewDeleteSynonym DeleteSynonymRule synonyms_delete_synonym_rule.NewDeleteSynonymRule - // Get a synonym set. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym - GetSynonym synonyms_get_synonym.NewGetSynonym - // Get a synonym rule. - // Get a synonym rule from a synonym set. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym-rule - GetSynonymRule synonyms_get_synonym_rule.NewGetSynonymRule - // Get all synonym sets. - // Get a summary of all defined synonym sets. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym - GetSynonymsSets synonyms_get_synonyms_sets.NewGetSynonymsSets - // Create or update a synonym set. - // Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - // If you need to manage more synonym rules, you can create multiple synonym - // sets. - // - // When an existing synonyms set is updated, the search analyzers that use the - // synonyms set are reloaded automatically for all indices. - // This is equivalent to invoking the reload search analyzers API for all - // indices that use the synonyms set. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-put-synonym - PutSynonym synonyms_put_synonym.NewPutSynonym - // Create or update a synonym rule. - // Create or update a synonym rule in a synonym set. - // - // If any of the synonym rules included is invalid, the API returns an error. - // - // When you update a synonym rule, all analyzers using the synonyms set will be - // reloaded automatically to reflect the new rule. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-put-synonym-rule - PutSynonymRule synonyms_put_synonym_rule.NewPutSynonymRule + GetSynonym synonyms_get_synonym.NewGetSynonym + GetSynonymRule synonyms_get_synonym_rule.NewGetSynonymRule + GetSynonymsSets synonyms_get_synonyms_sets.NewGetSynonymsSets + PutSynonym synonyms_put_synonym.NewPutSynonym + PutSynonymRule synonyms_put_synonym_rule.NewPutSynonymRule } type Tasks struct { - // Cancel a task. - // - // WARNING: The task management API is new and should still be considered a beta - // feature. - // The API may change in ways that are not backwards compatible. - // - // A task may continue to run for some time after it has been cancelled because - // it may not be able to safely stop its current activity straight away. - // It is also possible that Elasticsearch must complete its work on other tasks - // before it can process the cancellation. - // The get task information API will continue to list these cancelled tasks - // until they complete. - // The cancelled flag in the response indicates that the cancellation command - // has been processed and the task will stop as soon as possible. - // - // To troubleshoot why a cancelled task does not complete promptly, use the get - // task information API with the `?detailed` parameter to identify the other - // tasks the system is running. - // You can also use the node hot threads API to obtain detailed information - // about the work the system is doing instead of completing the cancelled task. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks Cancel tasks_cancel.NewCancel - // Get task information. - // Get information about a task currently running in the cluster. - // - // WARNING: The task management API is new and should still be considered a beta - // feature. - // The API may change in ways that are not backwards compatible. - // - // If the task identifier is not found, a 404 response code indicates that there - // are no resources that match the request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks - Get tasks_get.NewGet - // Get all tasks. - // Get information about the tasks currently running on one or more nodes in the - // cluster. - // - // WARNING: The task management API is new and should still be considered a beta - // feature. - // The API may change in ways that are not backwards compatible. - // - // **Identifying running tasks** - // - // The `X-Opaque-Id header`, when provided on the HTTP request header, is going - // to be returned as a header in the response as well as in the headers field - // for in the task information. - // This enables you to track certain calls or associate certain tasks with the - // client that started them. - // For example: - // - // ``` - // curl -i -H "X-Opaque-Id: 123456" - // "http://localhost:9200/_tasks?group_by=parents" - // ``` - // - // The API returns the following result: - // - // ``` - // HTTP/1.1 200 OK - // X-Opaque-Id: 123456 - // content-type: application/json; charset=UTF-8 - // content-length: 831 - // - // { - // "tasks" : { - // "u5lcZHqcQhu-rUoFaqDphA:45" : { - // "node" : "u5lcZHqcQhu-rUoFaqDphA", - // "id" : 45, - // "type" : "transport", - // "action" : "cluster:monitor/tasks/lists", - // "start_time_in_millis" : 1513823752749, - // "running_time_in_nanos" : 293139, - // "cancellable" : false, - // "headers" : { - // "X-Opaque-Id" : "123456" - // }, - // "children" : [ - // { - // "node" : "u5lcZHqcQhu-rUoFaqDphA", - // "id" : 46, - // "type" : "direct", - // "action" : "cluster:monitor/tasks/lists[n]", - // "start_time_in_millis" : 1513823752750, - // "running_time_in_nanos" : 92133, - // "cancellable" : false, - // "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", - // "headers" : { - // "X-Opaque-Id" : "123456" - // } - // } - // ] - // } - // } - // } - // ``` - // In this example, `X-Opaque-Id: 123456` is the ID as a part of the response - // header. - // The `X-Opaque-Id` in the task `headers` is the ID for the task that was - // initiated by the REST request. - // The `X-Opaque-Id` in the children `headers` is the child task of the task - // that was initiated by the REST request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks - List tasks_list.NewList + Get tasks_get.NewGet + List tasks_list.NewList } type TextStructure struct { - // Find the structure of a text field. - // Find the structure of a text field in an Elasticsearch index. - // - // This API provides a starting point for extracting further information from - // log messages already ingested into Elasticsearch. - // For example, if you have ingested data into a very simple index that has just - // `@timestamp` and message fields, you can use this API to see what common - // structure exists in the message field. - // - // The response from the API contains: - // - // * Sample messages. - // * Statistics that reveal the most common values for all fields detected - // within the text and basic numeric statistics for numeric fields. - // * Information about the structure of the text, which is useful when you write - // ingest configurations to index it or similarly formatted text. - // * Appropriate mappings for an Elasticsearch index, which you could use to - // ingest the text. - // - // All this information can be calculated by the structure finder with no - // guidance. - // However, you can optionally override some of the decisions about the text - // structure by specifying one or more query parameters. - // - // If the structure finder produces unexpected results, specify the `explain` - // query parameter and an explanation will appear in the response. - // It helps determine why the returned structure was chosen. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-text_structure - FindFieldStructure text_structure_find_field_structure.NewFindFieldStructure - // Find the structure of text messages. - // Find the structure of a list of text messages. - // The messages must contain data that is suitable to be ingested into - // Elasticsearch. - // - // This API provides a starting point for ingesting data into Elasticsearch in a - // format that is suitable for subsequent use with other Elastic Stack - // functionality. - // Use this API rather than the find text structure API if your input text has - // already been split up into separate messages by some other process. - // - // The response from the API contains: - // - // * Sample messages. - // * Statistics that reveal the most common values for all fields detected - // within the text and basic numeric statistics for numeric fields. - // * Information about the structure of the text, which is useful when you write - // ingest configurations to index it or similarly formatted text. - // Appropriate mappings for an Elasticsearch index, which you could use to - // ingest the text. - // - // All this information can be calculated by the structure finder with no - // guidance. - // However, you can optionally override some of the decisions about the text - // structure by specifying one or more query parameters. - // - // If the structure finder produces unexpected results, specify the `explain` - // query parameter and an explanation will appear in the response. - // It helps determine why the returned structure was chosen. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-find-message-structure + FindFieldStructure text_structure_find_field_structure.NewFindFieldStructure FindMessageStructure text_structure_find_message_structure.NewFindMessageStructure - // Find the structure of a text file. - // The text file must contain data that is suitable to be ingested into - // Elasticsearch. - // - // This API provides a starting point for ingesting data into Elasticsearch in a - // format that is suitable for subsequent use with other Elastic Stack - // functionality. - // Unlike other Elasticsearch endpoints, the data that is posted to this - // endpoint does not need to be UTF-8 encoded and in JSON format. - // It must, however, be text; binary text formats are not currently supported. - // The size is limited to the Elasticsearch HTTP receive buffer size, which - // defaults to 100 Mb. - // - // The response from the API contains: - // - // * A couple of messages from the beginning of the text. - // * Statistics that reveal the most common values for all fields detected - // within the text and basic numeric statistics for numeric fields. - // * Information about the structure of the text, which is useful when you write - // ingest configurations to index it or similarly formatted text. - // * Appropriate mappings for an Elasticsearch index, which you could use to - // ingest the text. - // - // All this information can be calculated by the structure finder with no - // guidance. - // However, you can optionally override some of the decisions about the text - // structure by specifying one or more query parameters. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-find-structure - FindStructure text_structure_find_structure.NewFindStructure - // Test a Grok pattern. - // Test a Grok pattern on one or more lines of text. - // The API indicates whether the lines match the pattern together with the - // offsets and lengths of the matched substrings. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-test-grok-pattern - TestGrokPattern text_structure_test_grok_pattern.NewTestGrokPattern + FindStructure text_structure_find_structure.NewFindStructure + TestGrokPattern text_structure_test_grok_pattern.NewTestGrokPattern } type Transform struct { - // Delete a transform. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-delete-transform - DeleteTransform transform_delete_transform.NewDeleteTransform - // Retrieves transform usage information for transform nodes. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html - GetNodeStats transform_get_node_stats.NewGetNodeStats - // Get transforms. - // Get configuration information for transforms. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform - GetTransform transform_get_transform.NewGetTransform - // Get transform stats. - // - // Get usage information for transforms. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform-stats - GetTransformStats transform_get_transform_stats.NewGetTransformStats - // Preview a transform. - // Generates a preview of the results that you will get when you create a - // transform with the same configuration. - // - // It returns a maximum of 100 results. The calculations are based on all the - // current data in the source index. It also - // generates a list of mappings and settings for the destination index. These - // values are determined based on the field - // types of the source index and the transform aggregations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-preview-transform - PreviewTransform transform_preview_transform.NewPreviewTransform - // Create a transform. - // Creates a transform. - // - // A transform copies data from source indices, transforms it, and persists it - // into an entity-centric destination index. You can also think of the - // destination index as a two-dimensional tabular data structure (known as - // a data frame). The ID for each document in the data frame is generated from a - // hash of the entity, so there is a - // unique row per entity. - // - // You must choose either the latest or pivot method for your transform; you - // cannot use both in a single transform. If - // you choose to use the pivot method for your transform, the entities are - // defined by the set of `group_by` fields in - // the pivot object. If you choose to use the latest method, the entities are - // defined by the `unique_key` field values - // in the latest object. - // - // You must have `create_index`, `index`, and `read` privileges on the - // destination index and `read` and - // `view_index_metadata` privileges on the source indices. When Elasticsearch - // security features are enabled, the - // transform remembers which roles the user that created it had at the time of - // creation and uses those same roles. If - // those roles do not have the required privileges on the source and destination - // indices, the transform fails when it - // attempts unauthorized operations. - // - // NOTE: You must use Kibana or this API to create a transform. Do not add a - // transform directly into any - // `.transform-internal*` indices using the Elasticsearch index API. If - // Elasticsearch security features are enabled, do - // not give users any privileges on `.transform-internal*` indices. If you used - // transforms prior to 7.5, also do not - // give users any privileges on `.data-frame-internal*` indices. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-put-transform - PutTransform transform_put_transform.NewPutTransform - // Reset a transform. - // - // Before you can reset it, you must stop it; alternatively, use the `force` - // query parameter. - // If the destination index was created by the transform, it is deleted. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-reset-transform - ResetTransform transform_reset_transform.NewResetTransform - // Schedule a transform to start now. - // - // Instantly run a transform to process data. - // If you run this API, the transform will process the new data instantly, - // without waiting for the configured frequency interval. After the API is - // called, - // the transform will be processed again at `now + frequency` unless the API - // is called again in the meantime. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-schedule-now-transform + DeleteTransform transform_delete_transform.NewDeleteTransform + GetNodeStats transform_get_node_stats.NewGetNodeStats + GetTransform transform_get_transform.NewGetTransform + GetTransformStats transform_get_transform_stats.NewGetTransformStats + PreviewTransform transform_preview_transform.NewPreviewTransform + PutTransform transform_put_transform.NewPutTransform + ResetTransform transform_reset_transform.NewResetTransform ScheduleNowTransform transform_schedule_now_transform.NewScheduleNowTransform - // Start a transform. - // - // When you start a transform, it creates the destination index if it does not - // already exist. The `number_of_shards` is - // set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot - // transform, it deduces the mapping - // definitions for the destination index from the source indices and the - // transform aggregations. If fields in the - // destination index are derived from scripts (as in the case of - // `scripted_metric` or `bucket_script` aggregations), - // the transform uses dynamic mappings unless an index template exists. If it is - // a latest transform, it does not deduce - // mapping definitions; it uses dynamic mappings. To use explicit mappings, - // create the destination index before you - // start the transform. Alternatively, you can create an index template, though - // it does not affect the deduced mappings - // in a pivot transform. - // - // When the transform starts, a series of validations occur to ensure its - // success. If you deferred validation when you - // created the transform, they occur when you start the transform—​with the - // exception of privilege checks. When - // Elasticsearch security features are enabled, the transform remembers which - // roles the user that created it had at the - // time of creation and uses those same roles. If those roles do not have the - // required privileges on the source and - // destination indices, the transform fails when it attempts unauthorized - // operations. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-start-transform - StartTransform transform_start_transform.NewStartTransform - // Stop transforms. - // Stops one or more transforms. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-stop-transform - StopTransform transform_stop_transform.NewStopTransform - // Update a transform. - // Updates certain properties of a transform. - // - // All updated properties except `description` do not take effect until after - // the transform starts the next checkpoint, - // thus there is data consistency in each checkpoint. To use this API, you must - // have `read` and `view_index_metadata` - // privileges for the source indices. You must also have `index` and `read` - // privileges for the destination index. When - // Elasticsearch security features are enabled, the transform remembers which - // roles the user who updated it had at the - // time of update and runs with those privileges. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-update-transform - UpdateTransform transform_update_transform.NewUpdateTransform - // Upgrade all transforms. - // - // Transforms are compatible across minor versions and between supported major - // versions. - // However, over time, the format of transform configuration information may - // change. - // This API identifies transforms that have a legacy configuration format and - // upgrades them to the latest version. - // It also cleans up the internal data structures that store the transform state - // and checkpoints. - // The upgrade does not affect the source and destination indices. - // The upgrade also does not affect the roles that transforms use when - // Elasticsearch security features are enabled; the role used to read source - // data and write to the destination index remains unchanged. - // - // If a transform upgrade step fails, the upgrade stops and an error is returned - // about the underlying issue. - // Resolve the issue then re-run the process again. - // A summary is returned when the upgrade is finished. - // - // To ensure continuous transforms remain running during a major version upgrade - // 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/docs/api/doc/elasticsearch/v9/operation/operation-transform-upgrade-transforms - UpgradeTransforms transform_upgrade_transforms.NewUpgradeTransforms + StartTransform transform_start_transform.NewStartTransform + StopTransform transform_stop_transform.NewStopTransform + UpdateTransform transform_update_transform.NewUpdateTransform + UpgradeTransforms transform_upgrade_transforms.NewUpgradeTransforms } type Watcher struct { - // Acknowledge a watch. - // Acknowledging a watch enables you to manually throttle the execution of the - // watch's actions. - // - // The acknowledgement state of an action is stored in the - // `status.actions..ack.state` structure. - // - // IMPORTANT: If the specified watch is currently being executed, this API will - // return an error - // The reason for this behavior is to prevent overwriting the watch status from - // a watch execution. - // - // Acknowledging an action throttles further executions of that action until its - // `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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/operation/operation-watcher-deactivate-watch + AckWatch watcher_ack_watch.NewAckWatch + ActivateWatch watcher_activate_watch.NewActivateWatch DeactivateWatch watcher_deactivate_watch.NewDeactivateWatch - // Delete a watch. - // When the watch is removed, the document representing the watch in the - // `.watches` index is gone and it will never be run again. - // - // Deleting a watch does not delete any watch execution records related to this - // watch from the watch history. - // - // IMPORTANT: Deleting a watch must be done by using only this API. - // Do not delete the watch directly from the `.watches` index using the - // 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/docs/api/doc/elasticsearch/v9/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 - // triggering logic or to simulate the watch execution for debugging purposes. - // - // For testing and debugging purposes, you also have fine-grained control on how - // the watch runs. - // You can run the watch without running all of its actions or alternatively by - // simulating them. - // You can also force execution by ignoring the watch condition and control - // whether a watch record would be written to the watch history after it runs. - // - // You can use the run watch API to run watches that are not yet registered by - // specifying the watch definition inline. - // This serves as great tool for testing and debugging your watches prior to - // adding them to Watcher. - // - // When Elasticsearch security features are enabled on your cluster, watches are - // run with the privileges of the user that stored the watches. - // If your user is allowed to read index `a`, but not index `b`, then the exact - // same set of rules will apply during execution of a watch. - // - // 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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings - GetSettings watcher_get_settings.NewGetSettings - // Get a watch. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/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 - // to the `.watches` index and its trigger is immediately registered with the - // relevant trigger engine. - // Typically for the `schedule` trigger, the scheduler is the trigger engine. - // - // IMPORTANT: You must use Kibana or this API to create a watch. - // Do not add a watch directly to the `.watches` index by using the - // Elasticsearch index API. - // If Elasticsearch security features are enabled, do not give users write - // privileges on the `.watches` index. - // - // When you add a watch you can also define its initial active state by setting - // the *active* parameter. - // - // When Elasticsearch security features are enabled, your watch can index or - // search only on indices for which the user that stored the watch has - // 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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/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/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stats - Stats watcher_stats.NewStats - // Stop the watch service. - // Stop the Watcher service if it is running. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/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`, `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/v9/operation/operation-watcher-update-settings - UpdateSettings watcher_update_settings.NewUpdateSettings + DeleteWatch watcher_delete_watch.NewDeleteWatch + ExecuteWatch watcher_execute_watch.NewExecuteWatch + GetSettings watcher_get_settings.NewGetSettings + GetWatch watcher_get_watch.NewGetWatch + PutWatch watcher_put_watch.NewPutWatch + QueryWatches watcher_query_watches.NewQueryWatches + Start watcher_start.NewStart + Stats watcher_stats.NewStats + Stop watcher_stop.NewStop + UpdateSettings watcher_update_settings.NewUpdateSettings } type Xpack struct { - // Get information. - // The information provided by the API includes: - // - // * Build information including the build number and timestamp. - // * License information about the currently installed license. - // * Feature information for the features that are currently enabled and - // available under the current license. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-info - Info xpack_info.NewInfo - // Get usage information. - // 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/docs/api/doc/elasticsearch/v9/group/endpoint-xpack + Info xpack_info.NewInfo Usage xpack_usage.NewUsage } @@ -8591,1891 +1280,53 @@ type API struct { Watcher Watcher Xpack Xpack - // Bulk index or delete documents. - // Perform multiple `index`, `create`, `delete`, and `update` actions in a - // single request. - // This reduces overhead and can greatly increase indexing speed. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To use the `create` action, you must have the `create_doc`, `create`, - // `index`, or `write` index privilege. Data streams support only the `create` - // action. - // * To use the `index` action, you must have the `create`, `index`, or `write` - // index privilege. - // * To use the `delete` action, you must have the `delete` or `write` index - // privilege. - // * To use the `update` action, you must have the `index` or `write` index - // privilege. - // * To automatically create a data stream or index with a bulk API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // * To make the result of a bulk operation visible to search using the - // `refresh` parameter, you must have the `maintenance` or `manage` index - // privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // The actions are specified in the request body using a newline delimited JSON - // (NDJSON) structure: - // - // ``` - // action_and_meta_data\n - // optional_source\n - // action_and_meta_data\n - // optional_source\n - // .... - // action_and_meta_data\n - // optional_source\n - // ``` - // - // The `index` and `create` actions expect a source on the next line and have - // the same semantics as the `op_type` parameter in the standard index API. - // A `create` action fails if a document with the same ID already exists in the - // target - // An `index` action adds or replaces a document as necessary. - // - // NOTE: Data streams support only the `create` action. - // To update or delete a document in a data stream, you must target the backing - // index containing the document. - // - // An `update` action expects that the partial doc, upsert, and script and its - // options are specified on the next line. - // - // A `delete` action does not expect a source on the next line and has the same - // semantics as the standard delete API. - // - // NOTE: The final line of data must end with a newline character (`\n`). - // Each newline character may be preceded by a carriage return (`\r`). - // When sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header - // of `application/json` or `application/x-ndjson`. - // Because this format uses literal newline characters (`\n`) as delimiters, - // make sure that the JSON actions and sources are not pretty printed. - // - // If you provide a target in the request path, it is used for any actions that - // don't explicitly specify an `_index` argument. - // - // A note on the format: the idea here is to make processing as fast as - // possible. - // As some of the actions are redirected to other shards on other nodes, only - // `action_meta_data` is parsed on the receiving node side. - // - // Client libraries using this protocol should try and strive to do something - // similar on the client side, and reduce buffering as much as possible. - // - // There is no "correct" number of actions to perform in a single bulk request. - // Experiment with different settings to find the optimal size for your - // particular workload. - // Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by - // default so clients must ensure that no request exceeds this size. - // It is not possible to index a single document that exceeds the size limit, so - // you must pre-process any such documents into smaller pieces before sending - // them to Elasticsearch. - // For instance, split documents into pages or chapters before indexing them, or - // store raw binary data in a system outside Elasticsearch and replace the raw - // data with a link to the external system in the documents that you send to - // Elasticsearch. - // - // **Client suppport for bulk requests** - // - // Some of the officially supported clients provide helpers to assist with bulk - // requests and reindexing: - // - // * Go: Check out `esutil.BulkIndexer` - // * Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk` and - // `Search::Elasticsearch::Client::5_0::Scroll` - // * Python: Check out `elasticsearch.helpers.*` - // * JavaScript: Check out `client.helpers.*` - // * .NET: Check out `BulkAllObservable` - // * PHP: Check out bulk indexing. - // - // **Submitting bulk requests with cURL** - // - // If you're providing text file input to `curl`, you must use the - // `--data-binary` flag instead of plain `-d`. - // The latter doesn't preserve newlines. For example: - // - // ``` - // $ cat requests - // { "index" : { "_index" : "test", "_id" : "1" } } - // { "field1" : "value1" } - // $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk - // --data-binary "@requests"; echo - // {"took":7, "errors": false, - // "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} - // ``` - // - // **Optimistic concurrency control** - // - // Each `index` and `delete` action within a bulk API call may include the - // `if_seq_no` and `if_primary_term` parameters in their respective action and - // meta data lines. - // The `if_seq_no` and `if_primary_term` parameters control how operations are - // run, based on the last modification to existing documents. See Optimistic - // concurrency control for more details. - // - // **Versioning** - // - // Each bulk item can include the version value using the `version` field. - // It automatically follows the behavior of the index or delete operation based - // on the `_version` mapping. - // It also support the `version_type`. - // - // **Routing** - // - // Each bulk item can include the routing value using the `routing` field. - // It automatically follows the behavior of the index or delete operation based - // on the `_routing` mapping. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Wait for active shards** - // - // When making bulk calls, you can set the `wait_for_active_shards` parameter to - // require a minimum number of shard copies to be active before starting to - // process the bulk request. - // - // **Refresh** - // - // Control when the changes made by this request are visible to search. - // - // NOTE: Only the shards that receive the bulk request will be affected by - // refresh. - // Imagine a `_bulk?refresh=wait_for` request with three documents in it that - // happen to be routed to different shards in an index with five shards. - // The request will only wait for those three shards to refresh. - // The other two shards that make up the index do not participate in the `_bulk` - // request at all. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk - Bulk core_bulk.NewBulk - // Clear a scrolling search. - // Clear the search context and results for a scrolling search. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-clear-scroll - ClearScroll core_clear_scroll.NewClearScroll - // Close a point in time. - // A point in time must be opened explicitly before being used in search - // requests. - // The `keep_alive` parameter tells Elasticsearch how long it should persist. - // A point in time is automatically closed when the `keep_alive` period has - // elapsed. - // However, keeping points in time has a cost; close them as soon as they are no - // longer required for search requests. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time - ClosePointInTime core_close_point_in_time.NewClosePointInTime - // Count search results. - // Get the number of documents matching a query. - // - // The query can be provided either by using a simple query string as a - // parameter, or by defining Query DSL within the request body. - // The query is optional. When no query is provided, the API uses `match_all` to - // count all the documents. - // - // The count API supports multi-target syntax. You can run a single count API - // search across multiple data streams and indices. - // - // The operation is broadcast across all shards. - // For each shard ID group, a replica is chosen and the search is run against - // it. - // This means that replicas increase the scalability of the count. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-count - Count core_count.NewCount - // Create a new document in the index. - // - // You can index a new JSON document with the `//_doc/` or - // `//_create/<_id>` APIs - // Using `_create` guarantees that the document is indexed only if it does not - // already exist. - // It returns a 409 response when a document with a same ID already exists in - // the index. - // To update an existing document, you must use the `//_doc/` API. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To add a document using the `PUT //_create/<_id>` or `POST - // //_create/<_id>` request formats, you must have the `create_doc`, - // `create`, `index`, or `write` index privilege. - // * To automatically create a data stream or index with this API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // **Automatically create data streams and indices** - // - // If the request's target doesn't exist and matches an index template with a - // `data_stream` definition, the index operation automatically creates the data - // stream. - // - // If the target doesn't exist and doesn't match a data stream template, the - // operation automatically creates the index and applies any matching index - // templates. - // - // NOTE: Elasticsearch includes several built-in index templates. To avoid - // naming collisions with these templates, refer to index pattern documentation. - // - // If no mapping exists, the index operation creates a dynamic mapping. - // By default, new fields and objects are automatically added to the mapping if - // needed. - // - // Automatic index creation is controlled by the `action.auto_create_index` - // setting. - // If it is `true`, any index can be created automatically. - // You can modify this setting to explicitly allow or block automatic creation - // of indices that match specified patterns or set it to `false` to turn off - // automatic index creation entirely. - // Specify a comma-separated list of patterns you want to allow or prefix each - // pattern with `+` or `-` to indicate whether it should be allowed or blocked. - // When a list is specified, the default behaviour is to disallow. - // - // NOTE: The `action.auto_create_index` setting affects the automatic creation - // of indices only. - // It does not affect the creation of data streams. - // - // **Routing** - // - // By default, shard placement — or routing — is controlled by using a hash of - // the document's ID value. - // For more explicit control, the value fed into the hash function used by the - // router can be directly specified on a per-operation basis using the `routing` - // parameter. - // - // When setting up explicit mapping, you can also use the `_routing` field to - // direct the index operation to extract the routing value from the document - // itself. - // This does come at the (very minimal) cost of an additional document parsing - // pass. - // If the `_routing` mapping is defined and set to be required, the index - // operation will fail if no routing value is provided or extracted. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Distributed** - // - // The index operation is directed to the primary shard based on its route and - // performed on the actual node containing this shard. - // After the primary shard completes the operation, if needed, the update is - // distributed to applicable replicas. - // - // **Active shards** - // - // To improve the resiliency of writes to the system, indexing operations can be - // configured to wait for a certain number of active shard copies before - // proceeding with the operation. - // If the requisite number of active shard copies are not available, then the - // write operation must wait and retry, until either the requisite shard copies - // have started or a timeout occurs. - // By default, write operations only wait for the primary shards to be active - // before proceeding (that is to say `wait_for_active_shards` is `1`). - // This default can be overridden in the index settings dynamically by setting - // `index.write.wait_for_active_shards`. - // To alter this behavior per operation, use the `wait_for_active_shards - // request` parameter. - // - // Valid values are all or any positive integer up to the total number of - // configured copies per shard in the index (which is `number_of_replicas`+1). - // Specifying a negative value or a number greater than the number of shard - // copies will throw an error. - // - // For example, suppose you have a cluster of three nodes, A, B, and C and you - // create an index index with the number of replicas set to 3 (resulting in 4 - // shard copies, one more copy than there are nodes). - // If you attempt an indexing operation, by default the operation will only - // ensure the primary copy of each shard is available before proceeding. - // This means that even if B and C went down and A hosted the primary shard - // copies, the indexing operation would still proceed with only one copy of the - // data. - // If `wait_for_active_shards` is set on the request to `3` (and all three nodes - // are up), the indexing operation will require 3 active shard copies before - // proceeding. - // This requirement should be met because there are 3 active nodes in the - // cluster, each one holding a copy of the shard. - // However, if you set `wait_for_active_shards` to `all` (or to `4`, which is - // the same in this situation), the indexing operation will not proceed as you - // do not have all 4 copies of each shard active in the index. - // The operation will timeout unless a new node is brought up in the cluster to - // host the fourth copy of the shard. - // - // It is important to note that this setting greatly reduces the chances of the - // write operation not writing to the requisite number of shard copies, but it - // does not completely eliminate the possibility, because this check occurs - // before the write operation starts. - // After the write operation is underway, it is still possible for replication - // to fail on any number of shard copies but still succeed on the primary. - // The `_shards` section of the API response reveals the number of shard copies - // on which replication succeeded and failed. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create - Create core_create.NewCreate - // Delete a document. - // - // Remove a JSON document from the specified index. - // - // NOTE: You cannot send deletion requests directly to a data stream. - // To delete a document in a data stream, you must target the backing index - // containing the document. - // - // **Optimistic concurrency control** - // - // Delete operations can be made conditional and only be performed if the last - // modification to the document was assigned the sequence number and primary - // term specified by the `if_seq_no` and `if_primary_term` parameters. - // If a mismatch is detected, the operation will result in a - // `VersionConflictException` and a status code of `409`. - // - // **Versioning** - // - // Each document indexed is versioned. - // When deleting a document, the version can be specified to make sure the - // relevant document you are trying to delete is actually being deleted and it - // has not changed in the meantime. - // Every write operation run on a document, deletes included, causes its version - // to be incremented. - // The version number of a deleted document remains available for a short time - // after deletion to allow for control of concurrent operations. - // The length of time for which a deleted document's version remains available - // is determined by the `index.gc_deletes` index setting. - // - // **Routing** - // - // If routing is used during indexing, the routing value also needs to be - // specified to delete a document. - // - // If the `_routing` mapping is set to `required` and no routing value is - // specified, the delete API throws a `RoutingMissingException` and rejects the - // request. - // - // For example: - // - // ``` - // DELETE /my-index-000001/_doc/1?routing=shard-1 - // ``` - // - // This request deletes the document with ID 1, but it is routed based on the - // user. - // The document is not deleted if the correct routing is not specified. - // - // **Distributed** - // - // The delete operation gets hashed into a specific shard ID. - // It then gets redirected into the primary shard within that ID group and - // replicated (if needed) to shard replicas within that ID group. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete - Delete core_delete.NewDelete - // Delete documents. - // - // Deletes documents that match the specified query. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or alias: - // - // * `read` - // * `delete` or `write` - // - // You can specify the query criteria in the request URI or the request body - // using the same syntax as the search API. - // When you submit a delete by query request, Elasticsearch gets a snapshot of - // the data stream or index when it begins processing the request and deletes - // matching documents using internal versioning. - // If a document changes between the time that the snapshot is taken and the - // delete operation is processed, it results in a version conflict and the - // delete operation fails. - // - // NOTE: Documents with a version equal to 0 cannot be deleted using delete by - // query because internal versioning does not support 0 as a valid version - // number. - // - // While processing a delete by query request, Elasticsearch performs multiple - // search requests sequentially to find all of the matching documents to delete. - // A bulk delete request is performed for each batch of matching documents. - // If a search or bulk request is rejected, the requests are retried up to 10 - // times, with exponential back off. - // If the maximum retry limit is reached, processing halts and all failed - // requests are returned in the response. - // Any delete requests that completed successfully still stick, they are not - // rolled back. - // - // You can opt to count version conflicts instead of halting and returning by - // setting `conflicts` to `proceed`. - // Note that if you opt to count version conflicts the operation could attempt - // to delete more documents from the source than `max_docs` until it has - // successfully deleted `max_docs documents`, or it has gone through every - // document in the source query. - // - // **Throttling delete requests** - // - // To control the rate at which delete by query issues batches of delete - // operations, you can set `requests_per_second` to any positive decimal number. - // This pads each batch with a wait time to throttle the rate. - // Set `requests_per_second` to `-1` to disable throttling. - // - // Throttling uses a wait time between batches so that the internal scroll - // requests can be given a timeout that takes the request padding into account. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is `1000`, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single `_bulk` request, large batch sizes - // cause Elasticsearch to create many requests and wait before starting the next - // set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Delete by query supports sliced scroll to parallelize the delete process. - // This can improve efficiency and provide a convenient way to break the request - // down into smaller parts. - // - // Setting `slices` to `auto` lets Elasticsearch choose the number of slices to - // use. - // This setting will use one slice per shard, up to a certain limit. - // If there are multiple source data streams or indices, it will choose the - // number of slices based on the index or backing index with the smallest number - // of shards. - // Adding slices to the delete by query operation creates sub-requests which - // means it has some quirks: - // - // * You can see these requests in the tasks APIs. These sub-requests are - // "child" tasks of the task for the request with slices. - // * Fetching the status of the task for the request with slices only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with `slices` will cancel each sub-request. - // * Due to the nature of `slices` each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // `slices` are distributed proportionally to each sub-request. Combine that - // with the earlier point about distribution being uneven and you should - // conclude that using `max_docs` with `slices` might not result in exactly - // `max_docs` documents being deleted. - // * Each sub-request gets a slightly different snapshot of the source data - // stream or index though these are all taken at approximately the same time. - // - // If you're slicing manually or otherwise tuning automatic slicing, keep in - // mind that: - // - // * Query performance is most efficient when the number of slices is equal to - // the number of shards in the index or backing index. If that number is large - // (for example, 500), choose a lower number as too many `slices` hurts - // performance. Setting `slices` higher than the number of shards generally does - // not improve efficiency and adds overhead. - // * Delete performance scales linearly across available resources with the - // number of slices. - // - // Whether query or delete performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Cancel a delete by query operation** - // - // Any delete by query can be canceled using the task cancel API. For example: - // - // ``` - // POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel - // ``` - // - // The task ID can be found by using the get tasks API. - // - // Cancellation should happen quickly but might take a few seconds. - // The get task status API will continue to list the delete by query task until - // this task checks that it has been cancelled and terminates itself. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query - DeleteByQuery core_delete_by_query.NewDeleteByQuery - // Throttle a delete by query operation. - // - // Change the number of requests per second for a particular delete by query - // operation. - // Rethrottling that speeds up the query takes effect immediately but - // rethrotting that slows down the query takes effect after completing the - // current batch to prevent scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query-rethrottle + Bulk core_bulk.NewBulk + ClearScroll core_clear_scroll.NewClearScroll + ClosePointInTime core_close_point_in_time.NewClosePointInTime + Count core_count.NewCount + Create core_create.NewCreate + Delete core_delete.NewDelete + DeleteByQuery core_delete_by_query.NewDeleteByQuery DeleteByQueryRethrottle core_delete_by_query_rethrottle.NewDeleteByQueryRethrottle - // Delete a script or search template. - // Deletes a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-script - DeleteScript core_delete_script.NewDeleteScript - // Check a document. - // - // Verify that a document exists. - // For example, check to see if a document with the `_id` 0 exists: - // - // ``` - // HEAD my-index-000001/_doc/0 - // ``` - // - // If the document exists, the API returns a status code of `200 - OK`. - // If the document doesn’t exist, the API returns `404 - Not Found`. - // - // **Versioning support** - // - // You can use the `version` parameter to check the document only if its current - // version is equal to the specified one. - // - // Internally, Elasticsearch has marked the old document as deleted and added an - // entirely new document. - // The old version of the document doesn't disappear immediately, although you - // won't be able to access it. - // Elasticsearch cleans up deleted documents in the background as you continue - // to index more data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - Exists core_exists.NewExists - // Check for a document source. - // - // Check whether a document source exists in an index. - // For example: - // - // ``` - // HEAD my-index-000001/_source/1 - // ``` - // - // A document's source is not available if it is disabled in the mapping. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - ExistsSource core_exists_source.NewExistsSource - // Explain a document match result. - // Get information about why a specific document matches, or doesn't match, a - // query. - // It computes a score explanation for a query and a specific document. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-explain - Explain core_explain.NewExplain - // Get the field capabilities. - // - // Get information about the capabilities of fields among multiple indices. - // - // For data streams, the API returns field capabilities among the stream’s - // backing indices. - // It returns runtime fields like any other field. - // For example, a runtime field with a type of keyword is returned the same as - // any other field that belongs to the `keyword` family. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-field-caps - FieldCaps core_field_caps.NewFieldCaps - // Get a document by its ID. - // - // Get a document and its source or stored fields from an index. - // - // By default, this API is realtime and is not affected by the refresh rate of - // the index (when data will become visible for search). - // In the case where stored fields are requested with the `stored_fields` - // parameter and the document has been updated but is not yet refreshed, the API - // will have to parse and analyze the source to extract the stored fields. - // To turn off realtime behavior, set the `realtime` parameter to false. - // - // **Source filtering** - // - // By default, the API returns the contents of the `_source` field unless you - // have used the `stored_fields` parameter or the `_source` field is turned off. - // You can turn off `_source` retrieval by using the `_source` parameter: - // - // ``` - // GET my-index-000001/_doc/0?_source=false - // ``` - // - // If you only need one or two fields from the `_source`, use the - // `_source_includes` or `_source_excludes` parameters to include or filter out - // particular fields. - // This can be helpful with large documents where partial retrieval can save on - // network overhead - // Both parameters take a comma separated list of fields or wildcard - // expressions. - // For example: - // - // ``` - // GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities - // ``` - // - // If you only want to specify includes, you can use a shorter notation: - // - // ``` - // GET my-index-000001/_doc/0?_source=*.id - // ``` - // - // **Routing** - // - // If routing is used during indexing, the routing value also needs to be - // specified to retrieve a document. - // For example: - // - // ``` - // GET my-index-000001/_doc/2?routing=user1 - // ``` - // - // This request gets the document with ID 2, but it is routed based on the user. - // The document is not fetched if the correct routing is not specified. - // - // **Distributed** - // - // The GET operation is hashed into a specific shard ID. - // It is then redirected to one of the replicas within that shard ID and returns - // the result. - // The replicas are the primary shard and its replicas within that shard ID - // group. - // This means that the more replicas you have, the better your GET scaling will - // be. - // - // **Versioning support** - // - // You can use the `version` parameter to retrieve the document only if its - // current version is equal to the specified one. - // - // Internally, Elasticsearch has marked the old document as deleted and added an - // entirely new document. - // The old version of the document doesn't disappear immediately, although you - // won't be able to access it. - // Elasticsearch cleans up deleted documents in the background as you continue - // to index more data. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - Get core_get.NewGet - // Get a script or search template. - // Retrieves a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script - GetScript core_get_script.NewGetScript - // Get script contexts. - // - // Get a list of supported script contexts and their methods. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-context - GetScriptContext core_get_script_context.NewGetScriptContext - // Get script languages. - // - // Get a list of available script types, languages, and contexts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-languages - GetScriptLanguages core_get_script_languages.NewGetScriptLanguages - // Get a document's source. - // - // Get the source of a document. - // For example: - // - // ``` - // GET my-index-000001/_source/1 - // ``` - // - // You can use the source filtering parameters to control which parts of the - // `_source` are returned: - // - // ``` - // GET - // my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get - GetSource core_get_source.NewGetSource - // Get the cluster health. - // Get a report with the health status of an Elasticsearch cluster. - // The report contains a list of indicators that compose Elasticsearch - // functionality. - // - // Each indicator has a health status of: green, unknown, yellow or red. - // The indicator will provide an explanation and metadata describing the reason - // for its current health status. - // - // The cluster’s status is controlled by the worst indicator status. - // - // In the event that an indicator’s status is non-green, a list of impacts may - // be present in the indicator result which detail the functionalities that are - // negatively affected by the health issue. - // Each impact carries with it a severity level, an area of the system that is - // affected, and a simple description of the impact on the system. - // - // Some health indicators can determine the root cause of a health problem and - // prescribe a set of steps that can be performed in order to improve the health - // of the system. - // The root cause and remediation steps are encapsulated in a diagnosis. - // A diagnosis contains a cause detailing a root cause analysis, an action - // containing a brief description of the steps to take to fix the problem, the - // list of affected resources (if applicable), and a detailed step-by-step - // troubleshooting guide to fix the diagnosed problem. - // - // NOTE: The health indicators perform root cause analysis of non-green health - // statuses. This can be computationally expensive when called frequently. - // When setting up automated polling of the API for health status, set verbose - // to false to disable the more expensive analysis logic. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-health-report - HealthReport core_health_report.NewHealthReport - // Create or update a document in an index. - // - // Add a JSON document to the specified data stream or index and make it - // searchable. - // If the target is an index and the document already exists, the request - // updates the document and increments its version. - // - // NOTE: You cannot use this API to send update requests for existing documents - // in a data stream. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or index alias: - // - // * To add or overwrite a document using the `PUT //_doc/<_id>` request - // format, you must have the `create`, `index`, or `write` index privilege. - // * To add a document using the `POST //_doc/` request format, you must - // have the `create_doc`, `create`, `index`, or `write` index privilege. - // * To automatically create a data stream or index with this API request, you - // must have the `auto_configure`, `create_index`, or `manage` index privilege. - // - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // NOTE: Replica shards might not all be started when an indexing operation - // returns successfully. - // By default, only the primary is required. Set `wait_for_active_shards` to - // change this default behavior. - // - // **Automatically create data streams and indices** - // - // If the request's target doesn't exist and matches an index template with a - // `data_stream` definition, the index operation automatically creates the data - // stream. - // - // If the target doesn't exist and doesn't match a data stream template, the - // operation automatically creates the index and applies any matching index - // templates. - // - // NOTE: Elasticsearch includes several built-in index templates. To avoid - // naming collisions with these templates, refer to index pattern documentation. - // - // If no mapping exists, the index operation creates a dynamic mapping. - // By default, new fields and objects are automatically added to the mapping if - // needed. - // - // Automatic index creation is controlled by the `action.auto_create_index` - // setting. - // If it is `true`, any index can be created automatically. - // You can modify this setting to explicitly allow or block automatic creation - // of indices that match specified patterns or set it to `false` to turn off - // automatic index creation entirely. - // Specify a comma-separated list of patterns you want to allow or prefix each - // pattern with `+` or `-` to indicate whether it should be allowed or blocked. - // When a list is specified, the default behaviour is to disallow. - // - // NOTE: The `action.auto_create_index` setting affects the automatic creation - // of indices only. - // It does not affect the creation of data streams. - // - // **Optimistic concurrency control** - // - // Index operations can be made conditional and only be performed if the last - // modification to the document was assigned the sequence number and primary - // term specified by the `if_seq_no` and `if_primary_term` parameters. - // If a mismatch is detected, the operation will result in a - // `VersionConflictException` and a status code of `409`. - // - // **Routing** - // - // By default, shard placement — or routing — is controlled by using a hash of - // the document's ID value. - // For more explicit control, the value fed into the hash function used by the - // router can be directly specified on a per-operation basis using the `routing` - // parameter. - // - // When setting up explicit mapping, you can also use the `_routing` field to - // direct the index operation to extract the routing value from the document - // itself. - // This does come at the (very minimal) cost of an additional document parsing - // pass. - // If the `_routing` mapping is defined and set to be required, the index - // operation will fail if no routing value is provided or extracted. - // - // NOTE: Data streams do not support custom routing unless they were created - // with the `allow_custom_routing` setting enabled in the template. - // - // **Distributed** - // - // The index operation is directed to the primary shard based on its route and - // performed on the actual node containing this shard. - // After the primary shard completes the operation, if needed, the update is - // distributed to applicable replicas. - // - // **Active shards** - // - // To improve the resiliency of writes to the system, indexing operations can be - // configured to wait for a certain number of active shard copies before - // proceeding with the operation. - // If the requisite number of active shard copies are not available, then the - // write operation must wait and retry, until either the requisite shard copies - // have started or a timeout occurs. - // By default, write operations only wait for the primary shards to be active - // before proceeding (that is to say `wait_for_active_shards` is `1`). - // This default can be overridden in the index settings dynamically by setting - // `index.write.wait_for_active_shards`. - // To alter this behavior per operation, use the `wait_for_active_shards - // request` parameter. - // - // Valid values are all or any positive integer up to the total number of - // configured copies per shard in the index (which is `number_of_replicas`+1). - // Specifying a negative value or a number greater than the number of shard - // copies will throw an error. - // - // For example, suppose you have a cluster of three nodes, A, B, and C and you - // create an index index with the number of replicas set to 3 (resulting in 4 - // shard copies, one more copy than there are nodes). - // If you attempt an indexing operation, by default the operation will only - // ensure the primary copy of each shard is available before proceeding. - // This means that even if B and C went down and A hosted the primary shard - // copies, the indexing operation would still proceed with only one copy of the - // data. - // If `wait_for_active_shards` is set on the request to `3` (and all three nodes - // are up), the indexing operation will require 3 active shard copies before - // proceeding. - // This requirement should be met because there are 3 active nodes in the - // cluster, each one holding a copy of the shard. - // However, if you set `wait_for_active_shards` to `all` (or to `4`, which is - // the same in this situation), the indexing operation will not proceed as you - // do not have all 4 copies of each shard active in the index. - // The operation will timeout unless a new node is brought up in the cluster to - // host the fourth copy of the shard. - // - // It is important to note that this setting greatly reduces the chances of the - // write operation not writing to the requisite number of shard copies, but it - // does not completely eliminate the possibility, because this check occurs - // before the write operation starts. - // After the write operation is underway, it is still possible for replication - // to fail on any number of shard copies but still succeed on the primary. - // The `_shards` section of the API response reveals the number of shard copies - // on which replication succeeded and failed. - // - // **No operation (noop) updates** - // - // When updating a document by using this API, a new version of the document is - // always created even if the document hasn't changed. - // If this isn't acceptable use the `_update` API with `detect_noop` set to - // `true`. - // The `detect_noop` option isn't available on this API because it doesn’t fetch - // the old source and isn't able to compare it against the new source. - // - // There isn't a definitive rule for when noop updates aren't acceptable. - // It's a combination of lots of factors like how frequently your data source - // sends updates that are actually noops and how many queries per second - // Elasticsearch runs on the shard receiving the updates. - // - // **Versioning** - // - // Each indexed document is given a version number. - // By default, internal versioning is used that starts at 1 and increments with - // each update, deletes included. - // Optionally, the version number can be set to an external value (for example, - // if maintained in a database). - // To enable this functionality, `version_type` should be set to `external`. - // The value provided must be a numeric, long value greater than or equal to 0, - // and less than around `9.2e+18`. - // - // NOTE: Versioning is completely real time, and is not affected by the near - // real time aspects of search operations. - // If no version is provided, the operation runs without any version checks. - // - // When using the external version type, the system checks to see if the version - // number passed to the index request is greater than the version of the - // currently stored document. - // If true, the document will be indexed and the new version number used. - // If the value provided is less than or equal to the stored document's version - // number, a version conflict will occur and the index operation will fail. For - // example: - // - // ``` - // PUT my-index-000001/_doc/1?version=2&version_type=external - // { - // "user": { - // "id": "elkbee" - // } - // } - // - // In this example, the operation will succeed since the supplied version of 2 - // is higher than the current document version of 1. - // If the document was already updated and its version was set to 2 or higher, - // the indexing command will fail and result in a conflict (409 HTTP status - // code). - // - // A nice side effect is that there is no need to maintain strict ordering of - // async indexing operations run as a result of changes to a source database, as - // long as version numbers from the source database are used. - // Even the simple case of updating the Elasticsearch index using data from a - // database is simplified if external versioning is used, as only the latest - // version will be used if the index operations arrive out of order. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create - Index core_index.NewIndex - // Get cluster info. - // Get basic build, version, and cluster information. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info - Info core_info.NewInfo - // Get multiple documents. - // - // Get multiple JSON documents by ID from one or more indices. - // If you specify an index in the request URI, you only need to specify the - // document IDs in the request body. - // To ensure fast responses, this multi get (mget) API responds with partial - // results if one or more shards fail. - // - // **Filter source fields** - // - // By default, the `_source` field is returned for every document (if stored). - // Use the `_source` and `_source_include` or `source_exclude` attributes to - // filter what fields are returned for a particular document. - // You can include the `_source`, `_source_includes`, and `_source_excludes` - // query parameters in the request URI to specify the defaults to use when there - // are no per-document instructions. - // - // **Get stored fields** - // - // Use the `stored_fields` attribute to specify the set of stored fields you - // want to retrieve. - // Any requested fields that are not stored are ignored. - // You can include the `stored_fields` query parameter in the request URI to - // specify the defaults to use when there are no per-document instructions. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mget - Mget core_mget.NewMget - // Run multiple searches. - // - // The format of the request is similar to the bulk API format and makes use of - // the newline delimited JSON (NDJSON) format. - // The structure is as follows: - // - // ``` - // header\n - // body\n - // header\n - // body\n - // ``` - // - // This structure is specifically optimized to reduce parsing if a specific - // search ends up redirected to another node. - // - // IMPORTANT: The final line of data must end with a newline character `\n`. - // Each newline character may be preceded by a carriage return `\r`. - // When sending requests to this endpoint the `Content-Type` header should be - // set to `application/x-ndjson`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch - Msearch core_msearch.NewMsearch - // Run multiple templated searches. - // - // Run multiple templated searches with a single request. - // If you are providing a text file or text input to `curl`, use the - // `--data-binary` flag instead of `-d` to preserve newlines. - // For example: - // - // ``` - // $ cat requests - // { "index": "my-index" } - // { "id": "my-search-template", "params": { "query_string": "hello world", - // "from": 0, "size": 10 }} - // { "index": "my-other-index" } - // { "id": "my-other-search-template", "params": { "query_type": "match_all" }} - // - // $ curl -H "Content-Type: application/x-ndjson" -XGET - // localhost:9200/_msearch/template --data-binary "@requests"; echo - // ``` - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch-template - MsearchTemplate core_msearch_template.NewMsearchTemplate - // Get multiple term vectors. - // - // Get multiple term vectors with a single request. - // You can specify existing documents by index and ID or provide artificial - // documents in the body of the request. - // You can specify the index in the request body or request URI. - // The response contains a `docs` array with all the fetched termvectors. - // Each element has the structure provided by the termvectors API. - // - // **Artificial documents** - // - // You can also use `mtermvectors` to generate term vectors for artificial - // documents provided in the body of the request. - // The mapping used is determined by the specified `_index`. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mtermvectors - Mtermvectors core_mtermvectors.NewMtermvectors - // Open a point in time. - // - // A search request by default runs against the most recent visible data of the - // target indices, - // which is called point in time. Elasticsearch pit (point in time) is a - // lightweight view into the - // state of the data as it existed when initiated. In some cases, it’s preferred - // to perform multiple - // search requests using the same point in time. For example, if refreshes - // happen between - // `search_after` requests, then the results of those requests might not be - // consistent as changes happening - // between searches are only visible to the more recent point in time. - // - // A point in time must be opened explicitly before being used in search - // requests. - // - // A subsequent search request with the `pit` parameter must not specify - // `index`, `routing`, or `preference` values as these parameters are copied - // from the point in time. - // - // Just like regular searches, you can use `from` and `size` to page through - // point in time search results, up to the first 10,000 hits. - // If you want to retrieve more hits, use PIT with `search_after`. - // - // IMPORTANT: The open point in time request and each subsequent search request - // can return different identifiers; always use the most recently received ID - // for the next search request. - // - // When a PIT that contains shard failures is used in a search request, the - // missing are always reported in the search response as a - // `NoShardAvailableActionException` exception. - // To get rid of these exceptions, a new PIT needs to be created so that shards - // missing from the previous PIT can be handled, assuming they become available - // in the meantime. - // - // **Keeping point in time alive** - // - // The `keep_alive` parameter, which is passed to a open point in time request - // and search request, extends the time to live of the corresponding point in - // time. - // The value does not need to be long enough to process all data — it just needs - // to be long enough for the next request. - // - // Normally, the background merge process optimizes the index by merging - // together smaller segments to create new, bigger segments. - // Once the smaller segments are no longer needed they are deleted. - // However, open point-in-times prevent the old segments from being deleted - // since they are still in use. - // - // TIP: Keeping older segments alive means that more disk space and file handles - // are needed. - // Ensure that you have configured your nodes to have ample free file handles. - // - // Additionally, if a segment contains deleted or updated documents then the - // point in time must keep track of whether each document in the segment was - // live at the time of the initial search request. - // Ensure that your nodes have sufficient heap space if you have many open - // point-in-times on an index that is subject to ongoing deletes or updates. - // Note that a point-in-time doesn't prevent its associated indices from being - // deleted. - // You can check how many point-in-times (that is, search contexts) are open - // with the nodes stats API. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time - OpenPointInTime core_open_point_in_time.NewOpenPointInTime - // Ping the cluster. - // Get information about whether the cluster is running. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cluster - Ping core_ping.NewPing - // Create or update a script or search template. - // Creates or updates a stored script or search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-put-script - PutScript core_put_script.NewPutScript - // Evaluate ranked search results. - // - // Evaluate the quality of ranked search results over a set of typical search - // queries. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rank-eval - RankEval core_rank_eval.NewRankEval - // Reindex documents. - // - // Copy documents from a source to a destination. - // You can copy all documents to the destination index or reindex a subset of - // the documents. - // The source can be any existing index, alias, or data stream. - // The destination must differ from the source. - // For example, you cannot reindex a data stream into itself. - // - // IMPORTANT: Reindex requires `_source` to be enabled for all documents in the - // source. - // The destination should be configured as wanted before calling the reindex - // API. - // Reindex does not copy the settings from the source or its associated - // template. - // Mappings, shard counts, and replicas, for example, must be configured ahead - // of time. - // - // If the Elasticsearch security features are enabled, you must have the - // following security privileges: - // - // * The `read` index privilege for the source data stream, index, or alias. - // * The `write` index privilege for the destination data stream, index, or - // index alias. - // * To automatically create a data stream or index with a reindex API request, - // you must have the `auto_configure`, `create_index`, or `manage` index - // privilege for the destination data stream, index, or alias. - // * If reindexing from a remote cluster, the `source.remote.user` must have the - // `monitor` cluster privilege and the `read` index privilege for the source - // data stream, index, or alias. - // - // If reindexing from a remote cluster, you must explicitly allow the remote - // host in the `reindex.remote.whitelist` setting. - // Automatic data stream creation requires a matching index template with data - // stream enabled. - // - // The `dest` element can be configured like the index API to control optimistic - // concurrency control. - // Omitting `version_type` or setting it to `internal` causes Elasticsearch to - // blindly dump documents into the destination, overwriting any that happen to - // have the same ID. - // - // Setting `version_type` to `external` causes Elasticsearch to preserve the - // `version` from the source, create any documents that are missing, and update - // any documents that have an older version in the destination than they do in - // the source. - // - // Setting `op_type` to `create` causes the reindex API to create only missing - // documents in the destination. - // All existing documents will cause a version conflict. - // - // IMPORTANT: Because data streams are append-only, any reindex request to a - // destination data stream must have an `op_type` of `create`. - // A reindex can only add new documents to a destination data stream. - // It cannot update existing documents in a destination data stream. - // - // By default, version conflicts abort the reindex process. - // To continue reindexing if there are conflicts, set the `conflicts` request - // body property to `proceed`. - // In this case, the response includes a count of the version conflicts that - // were encountered. - // Note that the handling of other error types is unaffected by the `conflicts` - // property. - // Additionally, if you opt to count version conflicts, the operation could - // attempt to reindex more documents from the source than `max_docs` until it - // has successfully indexed `max_docs` documents into the target or it has gone - // through every document in the source query. - // - // NOTE: The reindex API makes no effort to handle ID collisions. - // The last document written will "win" but the order isn't usually predictable - // so it is not a good idea to rely on this behavior. - // Instead, make sure that IDs are unique by using a script. - // - // **Running reindex asynchronously** - // - // If the request contains `wait_for_completion=false`, Elasticsearch performs - // some preflight checks, launches the request, and returns a task you can use - // to cancel or get the status of the task. - // Elasticsearch creates a record of this task as a document at - // `_tasks/`. - // - // **Reindex from multiple sources** - // - // If you have many sources to reindex it is generally better to reindex them - // one at a time rather than using a glob pattern to pick up multiple sources. - // That way you can resume the process if there are any errors by removing the - // partially completed source and starting over. - // It also makes parallelizing the process fairly simple: split the list of - // sources to reindex and run each list in parallel. - // - // For example, you can use a bash script like this: - // - // ``` - // for index in i1 i2 i3 i4 i5; do - // curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty - // -d'{ - // "source": { - // "index": "'$index'" - // }, - // "dest": { - // "index": "'$index'-reindexed" - // } - // }' - // done - // ``` - // - // **Throttling** - // - // Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, - // for example) to throttle the rate at which reindex issues batches of index - // operations. - // Requests are throttled by padding each batch with a wait time. - // To turn off throttling, set `requests_per_second` to `-1`. - // - // The throttling is done by waiting between batches so that the scroll that - // reindex uses internally can be given a timeout that takes into account the - // padding. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is `1000`, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single bulk request, large batch sizes cause - // Elasticsearch to create many requests and then wait for a while before - // starting the next set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Reindex supports sliced scroll to parallelize the reindexing process. - // This parallelization can improve efficiency and provide a convenient way to - // break the request down into smaller parts. - // - // NOTE: Reindexing from remote clusters does not support manual or automatic - // slicing. - // - // You can slice a reindex request manually by providing a slice ID and total - // number of slices to each request. - // You can also let reindex automatically parallelize by using sliced scroll to - // slice on `_id`. - // The `slices` parameter specifies the number of slices to use. - // - // Adding `slices` to the reindex request just automates the manual process, - // creating sub-requests which means it has some quirks: - // - // * You can see these requests in the tasks API. These sub-requests are "child" - // tasks of the task for the request with slices. - // * Fetching the status of the task for the request with `slices` only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with `slices` will cancel each sub-request. - // * Due to the nature of `slices`, each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // `slices` are distributed proportionally to each sub-request. Combine that - // with the previous point about distribution being uneven and you should - // conclude that using `max_docs` with `slices` might not result in exactly - // `max_docs` documents being reindexed. - // * Each sub-request gets a slightly different snapshot of the source, though - // these are all taken at approximately the same time. - // - // If slicing automatically, setting `slices` to `auto` will choose a reasonable - // number for most indices. - // If slicing manually or otherwise tuning automatic slicing, use the following - // guidelines. - // - // Query performance is most efficient when the number of slices is equal to the - // number of shards in the index. - // If that number is large (for example, `500`), choose a lower number as too - // many slices will hurt performance. - // Setting slices higher than the number of shards generally does not improve - // efficiency and adds overhead. - // - // Indexing performance scales linearly across available resources with the - // number of slices. - // - // Whether query or indexing performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Modify documents during reindexing** - // - // Like `_update_by_query`, reindex operations support a script that modifies - // the document. - // Unlike `_update_by_query`, the script is allowed to modify the document's - // metadata. - // - // Just as in `_update_by_query`, you can set `ctx.op` to change the operation - // that is run on the destination. - // For example, set `ctx.op` to `noop` if your script decides that the document - // doesn’t have to be indexed in the destination. This "no operation" will be - // reported in the `noop` counter in the response body. - // Set `ctx.op` to `delete` if your script decides that the document must be - // deleted from the destination. - // The deletion will be reported in the `deleted` counter in the response body. - // Setting `ctx.op` to anything else will return an error, as will setting any - // other field in `ctx`. - // - // Think of the possibilities! Just be careful; you are able to change: - // - // * `_id` - // * `_index` - // * `_version` - // * `_routing` - // - // Setting `_version` to `null` or clearing it from the `ctx` map is just like - // not sending the version in an indexing request. - // It will cause the document to be overwritten in the destination regardless of - // the version on the target or the version type you use in the reindex API. - // - // **Reindex from remote** - // - // Reindex supports reindexing from a remote Elasticsearch cluster. - // The `host` parameter must contain a scheme, host, port, and optional path. - // The `username` and `password` parameters are optional and when they are - // present the reindex operation will connect to the remote Elasticsearch node - // using basic authentication. - // Be sure to use HTTPS when using basic authentication or the password will be - // sent in plain text. - // There are a range of settings available to configure the behavior of the - // HTTPS connection. - // - // When using Elastic Cloud, it is also possible to authenticate against the - // remote cluster through the use of a valid API key. - // Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` - // setting. - // It can be set to a comma delimited list of allowed remote host and port - // combinations. - // Scheme is ignored; only the host and port are used. - // For example: - // - // ``` - // reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, - // localhost:*"] - // ``` - // - // The list of allowed hosts must be configured on any nodes that will - // coordinate the reindex. - // This feature should work with remote clusters of any version of - // Elasticsearch. - // This should enable you to upgrade from any version of Elasticsearch to the - // current version by reindexing from a cluster of the old version. - // - // WARNING: Elasticsearch does not support forward compatibility across major - // versions. - // For example, you cannot reindex from a 7.x cluster into a 6.x cluster. - // - // To enable queries sent to older versions of Elasticsearch, the `query` - // parameter is sent directly to the remote host without validation or - // modification. - // - // NOTE: Reindexing from remote clusters does not support manual or automatic - // slicing. - // - // Reindexing from a remote server uses an on-heap buffer that defaults to a - // maximum size of 100mb. - // If the remote index includes very large documents you'll need to use a - // smaller batch size. - // It is also possible to set the socket read timeout on the remote connection - // with the `socket_timeout` field and the connection timeout with the - // `connect_timeout` field. - // Both default to 30 seconds. - // - // **Configuring SSL parameters** - // - // Reindex from remote supports configurable SSL settings. - // These must be specified in the `elasticsearch.yml` file, with the exception - // of the secure settings, which you add in the Elasticsearch keystore. - // It is not possible to configure SSL in the body of the reindex request. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex - Reindex core_reindex.NewReindex - // Throttle a reindex operation. - // - // Change the number of requests per second for a particular reindex operation. - // For example: - // - // ``` - // POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 - // ``` - // - // Rethrottling that speeds up the query takes effect immediately. - // Rethrottling that slows down the query will take effect after completing the - // current batch. - // This behavior prevents scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex - ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle - // Render a search template. - // - // Render a search template as a search request body. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-render-search-template - RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate - // Run a script. - // - // Runs a script and returns a result. - // Use this API to build and test scripts, such as when defining a script for a - // runtime field. - // This API requires very few dependencies and is especially useful if you don't - // have permissions to write documents on a cluster. - // - // The API uses several _contexts_, which control how scripts are run, what - // variables are available at runtime, and what the return type is. - // - // Each context requires a script, but additional parameters depend on the - // context you're using for that script. - // https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples - ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute - // Run a scrolling search. - // - // IMPORTANT: The scroll API is no longer recommend for deep pagination. If you - // need to preserve the index state while paging through more than 10,000 hits, - // use the `search_after` parameter with a point in time (PIT). - // - // The scroll API gets large sets of results from a single scrolling search - // request. - // To get the necessary scroll ID, submit a search API request that includes an - // argument for the `scroll` query parameter. - // The `scroll` parameter indicates how long Elasticsearch should retain the - // search context for the request. - // The search response returns a scroll ID in the `_scroll_id` response body - // parameter. - // You can then use the scroll ID with the scroll API to retrieve the next batch - // of results for the request. - // If the Elasticsearch security features are enabled, the access to the results - // of a specific scroll ID is restricted to the user or API key that submitted - // the search. - // - // You can also use the scroll API to specify a new scroll parameter that - // extends or shortens the retention period for the search context. - // - // IMPORTANT: Results from a scrolling search reflect the state of the index at - // the time of the initial search request. Subsequent indexing or document - // changes only affect later search and scroll requests. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-scroll - Scroll core_scroll.NewScroll - // Run a search. - // - // Get search hits that match the query defined in the request. - // You can provide search queries using the `q` query string parameter or the - // request body. - // If both are specified, only the query parameter is used. - // - // If the Elasticsearch security features are enabled, you must have the read - // index privilege for the target data stream, index, or alias. For - // cross-cluster search, refer to the documentation about configuring CCS - // privileges. - // To search a point in time (PIT) for an alias, you must have the `read` index - // privilege for the alias's data streams or indices. - // - // **Search slicing** - // - // When paging through a large number of documents, it can be helpful to split - // the search into multiple slices to consume them independently with the - // `slice` and `pit` properties. - // By default the splitting is done first on the shards, then locally on each - // shard. - // The local splitting partitions the shard into contiguous ranges based on - // Lucene document IDs. - // - // For instance if the number of shards is equal to 2 and you request 4 slices, - // the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are - // assigned to the second shard. - // - // IMPORTANT: The same point-in-time ID should be used for all slices. - // If different PIT IDs are used, slices can overlap and miss documents. - // This situation can occur because the splitting criterion is based on Lucene - // document IDs, which are not stable across changes to the index. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search - Search core_search.NewSearch - // Search a vector tile. - // - // Search a vector tile for geospatial values. - // Before using this API, you should be familiar with the Mapbox vector tile - // specification. - // The API returns results as a binary mapbox vector tile. - // - // Internally, Elasticsearch translates a vector tile search API request into a - // search containing: - // - // * A `geo_bounding_box` query on the ``. The query uses the - // `//` tile as a bounding box. - // * A `geotile_grid` or `geohex_grid` aggregation on the ``. The - // `grid_agg` parameter determines the aggregation type. The aggregation uses - // the `//` tile as a bounding box. - // * Optionally, a `geo_bounds` aggregation on the ``. The search only - // includes this aggregation if the `exact_bounds` parameter is `true`. - // * If the optional parameter `with_labels` is `true`, the internal search will - // include a dynamic runtime field that calls the `getLabelPosition` function of - // the geometry doc value. This enables the generation of new point features - // containing suggested geometry labels, so that, for example, multi-polygons - // will have only one label. - // - // For example, Elasticsearch may translate a vector tile search API request - // with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of - // `true` into the following search - // - // ``` - // GET my-index/_search - // { - // "size": 10000, - // "query": { - // "geo_bounding_box": { - // "my-geo-field": { - // "top_left": { - // "lat": -40.979898069620134, - // "lon": -45 - // }, - // "bottom_right": { - // "lat": -66.51326044311186, - // "lon": 0 - // } - // } - // } - // }, - // "aggregations": { - // "grid": { - // "geotile_grid": { - // "field": "my-geo-field", - // "precision": 11, - // "size": 65536, - // "bounds": { - // "top_left": { - // "lat": -40.979898069620134, - // "lon": -45 - // }, - // "bottom_right": { - // "lat": -66.51326044311186, - // "lon": 0 - // } - // } - // } - // }, - // "bounds": { - // "geo_bounds": { - // "field": "my-geo-field", - // "wrap_longitude": false - // } - // } - // } - // } - // ``` - // - // The API returns results as a binary Mapbox vector tile. - // Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the - // tile contains three layers: - // - // * A `hits` layer containing a feature for each `` value matching the - // `geo_bounding_box` query. - // * An `aggs` layer containing a feature for each cell of the `geotile_grid` or - // `geohex_grid`. The layer only contains features for cells with matching data. - // * A meta layer containing: - // * A feature containing a bounding box. By default, this is the bounding box - // of the tile. - // * Value ranges for any sub-aggregations on the `geotile_grid` or - // `geohex_grid`. - // * Metadata for the search. - // - // The API only returns features that can display at its zoom level. - // For example, if a polygon feature has no area at its zoom level, the API - // omits it. - // The API returns errors as UTF-8 encoded JSON. - // - // IMPORTANT: You can specify several options for this API as either a query - // parameter or request body parameter. - // If you specify both parameters, the query parameter takes precedence. - // - // **Grid precision for geotile** - // - // For a `grid_agg` of `geotile`, you can use cells in the `aggs` layer as tiles - // for lower zoom levels. - // `grid_precision` represents the additional zoom levels available through - // these cells. The final precision is computed by as follows: ` + - // grid_precision`. - // For example, if `` is 7 and `grid_precision` is 8, then the - // `geotile_grid` aggregation will use a precision of 15. - // The maximum final precision is 29. - // The `grid_precision` also determines the number of cells for the grid as - // follows: `(2^grid_precision) x (2^grid_precision)`. - // For example, a value of 8 divides the tile into a grid of 256 x 256 cells. - // The `aggs` layer only contains features for cells with matching data. - // - // **Grid precision for geohex** - // - // For a `grid_agg` of `geohex`, Elasticsearch uses `` and - // `grid_precision` to calculate a final precision as follows: ` + - // grid_precision`. - // - // This precision determines the H3 resolution of the hexagonal cells produced - // by the `geohex` aggregation. - // The following table maps the H3 resolution for each precision. - // For example, if `` is 3 and `grid_precision` is 3, the precision is 6. - // At a precision of 6, hexagonal cells have an H3 resolution of 2. - // If `` is 3 and `grid_precision` is 4, the precision is 7. - // At a precision of 7, hexagonal cells have an H3 resolution of 3. - // - // | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | - // | --------- | ---------------- | ------------- | ----------------| ----- | - // | 1 | 4 | 0 | 122 | 30.5 | - // | 2 | 16 | 0 | 122 | 7.625 | - // | 3 | 64 | 1 | 842 | 13.15625 | - // | 4 | 256 | 1 | 842 | 3.2890625 | - // | 5 | 1024 | 2 | 5882 | 5.744140625 | - // | 6 | 4096 | 2 | 5882 | 1.436035156 | - // | 7 | 16384 | 3 | 41162 | 2.512329102 | - // | 8 | 65536 | 3 | 41162 | 0.6280822754 | - // | 9 | 262144 | 4 | 288122 | 1.099098206 | - // | 10 | 1048576 | 4 | 288122 | 0.2747745514 | - // | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | - // | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | - // | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | - // | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | - // | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | - // | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | - // | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | - // | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | - // | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | - // | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | - // | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | - // | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | - // | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | - // | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | - // | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | - // | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | - // | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | - // | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | - // | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | - // - // Hexagonal cells don't align perfectly on a vector tile. - // Some cells may intersect more than one vector tile. - // To compute the H3 resolution for each precision, Elasticsearch compares the - // average density of hexagonal bins at each resolution with the average density - // of tile bins at each zoom level. - // Elasticsearch uses the H3 resolution that is closest to the corresponding - // geotile density. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-mvt - SearchMvt core_search_mvt.NewSearchMvt - // Get the search shards. - // - // Get the indices and shards that a search request would be run against. - // This information can be useful for working out issues or planning - // optimizations with routing and shard preferences. - // When filtered aliases are used, the filter is returned as part of the - // `indices` section. - // - // If the Elasticsearch security features are enabled, you must have the - // `view_index_metadata` or `manage` index privilege for the target data stream, - // index, or alias. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-shards - SearchShards core_search_shards.NewSearchShards - // Run a search with a search template. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-template - SearchTemplate core_search_template.NewSearchTemplate - // Get terms in an index. - // - // Discover terms that match a partial string in an index. - // This API is designed for low-latency look-ups used in auto-complete - // scenarios. - // - // > info - // > The terms enum API may return terms from deleted documents. Deleted - // documents are initially only marked as deleted. It is not until their - // segments are merged that documents are actually deleted. Until that happens, - // the terms enum API will return terms from these documents. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-terms-enum - TermsEnum core_terms_enum.NewTermsEnum - // Get term vector information. - // - // Get information and statistics about terms in the fields of a particular - // document. - // - // You can retrieve term vectors for documents stored in the index or for - // artificial documents passed in the body of the request. - // You can specify the fields you are interested in through the `fields` - // parameter or by adding the fields to the request body. - // For example: - // - // ``` - // GET /my-index-000001/_termvectors/1?fields=message - // ``` - // - // Fields can be specified using wildcards, similar to the multi match query. - // - // Term vectors are real-time by default, not near real-time. - // This can be changed by setting `realtime` parameter to `false`. - // - // You can request three types of values: _term information_, _term statistics_, - // and _field statistics_. - // By default, all term information and field statistics are returned for all - // fields but term statistics are excluded. - // - // **Term information** - // - // * term frequency in the field (always returned) - // * term positions (`positions: true`) - // * start and end offsets (`offsets: true`) - // * term payloads (`payloads: true`), as base64 encoded bytes - // - // If the requested information wasn't stored in the index, it will be computed - // on the fly if possible. - // Additionally, term vectors could be computed for documents not even existing - // in the index, but instead provided by the user. - // - // > warn - // > Start and end offsets assume UTF-16 encoding is being used. If you want to - // use these offsets in order to get the original text that produced this token, - // you should make sure that the string you are taking a sub-string of is also - // encoded using UTF-16. - // - // **Behaviour** - // - // The term and field statistics are not accurate. - // Deleted documents are not taken into account. - // The information is only retrieved for the shard the requested document - // resides in. - // The term and field statistics are therefore only useful as relative measures - // whereas the absolute numbers have no meaning in this context. - // By default, when requesting term vectors of artificial documents, a shard to - // get the statistics from is randomly selected. - // Use `routing` only to hit a particular shard. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-termvectors - Termvectors core_termvectors.NewTermvectors - // Update a document. - // - // Update a document by running a script or passing a partial document. - // - // If the Elasticsearch security features are enabled, you must have the `index` - // or `write` index privilege for the target index or index alias. - // - // The script can update, delete, or skip modifying the document. - // The API also supports passing a partial document, which is merged into the - // existing document. - // To fully replace an existing document, use the index API. - // This operation: - // - // * Gets the document (collocated with the shard) from the index. - // * Runs the specified script. - // * Indexes the result. - // - // The document must still be reindexed, but using this API removes some network - // roundtrips and reduces chances of version conflicts between the GET and the - // index operation. - // - // The `_source` field must be enabled to use this API. - // In addition to `_source`, you can access the following variables through the - // `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the - // current timestamp). - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update - Update core_update.NewUpdate - // Update documents. - // Updates documents that match the specified query. - // If no query is specified, performs an update on every document in the data - // stream or index without modifying the source, which is useful for picking up - // mapping changes. - // - // If the Elasticsearch security features are enabled, you must have the - // following index privileges for the target data stream, index, or alias: - // - // * `read` - // * `index` or `write` - // - // You can specify the query criteria in the request URI or the request body - // using the same syntax as the search API. - // - // When you submit an update by query request, Elasticsearch gets a snapshot of - // the data stream or index when it begins processing the request and updates - // matching documents using internal versioning. - // When the versions match, the document is updated and the version number is - // incremented. - // If a document changes between the time that the snapshot is taken and the - // update operation is processed, it results in a version conflict and the - // operation fails. - // You can opt to count version conflicts instead of halting and returning by - // setting `conflicts` to `proceed`. - // Note that if you opt to count version conflicts, the operation could attempt - // to update more documents from the source than `max_docs` until it has - // successfully updated `max_docs` documents or it has gone through every - // document in the source query. - // - // NOTE: Documents with a version equal to 0 cannot be updated using update by - // query because internal versioning does not support 0 as a valid version - // number. - // - // While processing an update by query request, Elasticsearch performs multiple - // search requests sequentially to find all of the matching documents. - // A bulk update request is performed for each batch of matching documents. - // Any query or update failures cause the update by query request to fail and - // the failures are shown in the response. - // Any update requests that completed successfully still stick, they are not - // rolled back. - // - // **Throttling update requests** - // - // To control the rate at which update by query issues batches of update - // operations, you can set `requests_per_second` to any positive decimal number. - // This pads each batch with a wait time to throttle the rate. - // Set `requests_per_second` to `-1` to turn off throttling. - // - // Throttling uses a wait time between batches so that the internal scroll - // requests can be given a timeout that takes the request padding into account. - // The padding time is the difference between the batch size divided by the - // `requests_per_second` and the time spent writing. - // By default the batch size is 1000, so if `requests_per_second` is set to - // `500`: - // - // ``` - // target_time = 1000 / 500 per second = 2 seconds - // wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - // ``` - // - // Since the batch is issued as a single _bulk request, large batch sizes cause - // Elasticsearch to create many requests and wait before starting the next set. - // This is "bursty" instead of "smooth". - // - // **Slicing** - // - // Update by query supports sliced scroll to parallelize the update process. - // This can improve efficiency and provide a convenient way to break the request - // down into smaller parts. - // - // Setting `slices` to `auto` chooses a reasonable number for most data streams - // and indices. - // This setting will use one slice per shard, up to a certain limit. - // If there are multiple source data streams or indices, it will choose the - // number of slices based on the index or backing index with the smallest number - // of shards. - // - // Adding `slices` to `_update_by_query` just automates the manual process of - // creating sub-requests, which means it has some quirks: - // - // * You can see these requests in the tasks APIs. These sub-requests are - // "child" tasks of the task for the request with slices. - // * Fetching the status of the task for the request with `slices` only contains - // the status of completed slices. - // * These sub-requests are individually addressable for things like - // cancellation and rethrottling. - // * Rethrottling the request with `slices` will rethrottle the unfinished - // sub-request proportionally. - // * Canceling the request with slices will cancel each sub-request. - // * Due to the nature of slices each sub-request won't get a perfectly even - // portion of the documents. All documents will be addressed, but some slices - // may be larger than others. Expect larger slices to have a more even - // distribution. - // * Parameters like `requests_per_second` and `max_docs` on a request with - // slices are distributed proportionally to each sub-request. Combine that with - // the point above about distribution being uneven and you should conclude that - // using `max_docs` with `slices` might not result in exactly `max_docs` - // documents being updated. - // * Each sub-request gets a slightly different snapshot of the source data - // stream or index though these are all taken at approximately the same time. - // - // If you're slicing manually or otherwise tuning automatic slicing, keep in - // mind that: - // - // * Query performance is most efficient when the number of slices is equal to - // the number of shards in the index or backing index. If that number is large - // (for example, 500), choose a lower number as too many slices hurts - // performance. Setting slices higher than the number of shards generally does - // not improve efficiency and adds overhead. - // * Update performance scales linearly across available resources with the - // number of slices. - // - // Whether query or update performance dominates the runtime depends on the - // documents being reindexed and cluster resources. - // - // **Update the document source** - // - // Update by query supports scripts to update the document source. - // As with the update API, you can set `ctx.op` to change the operation that is - // performed. - // - // Set `ctx.op = "noop"` if your script decides that it doesn't have to make any - // changes. - // The update by query operation skips updating the document and increments the - // `noop` counter. - // - // Set `ctx.op = "delete"` if your script decides that the document should be - // deleted. - // The update by query operation deletes the document and increments the - // `deleted` counter. - // - // Update by query supports only `index`, `noop`, and `delete`. - // Setting `ctx.op` to anything else is an error. - // Setting any other field in `ctx` is an error. - // This API enables you to only modify the source of matching documents; you - // cannot move them. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query - UpdateByQuery core_update_by_query.NewUpdateByQuery - // Throttle an update by query operation. - // - // Change the number of requests per second for a particular update by query - // operation. - // Rethrottling that speeds up the query takes effect immediately but - // rethrotting that slows down the query takes effect after completing the - // current batch to prevent scroll timeouts. - // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query-rethrottle + DeleteScript core_delete_script.NewDeleteScript + Exists core_exists.NewExists + ExistsSource core_exists_source.NewExistsSource + Explain core_explain.NewExplain + FieldCaps core_field_caps.NewFieldCaps + Get core_get.NewGet + GetScript core_get_script.NewGetScript + GetScriptContext core_get_script_context.NewGetScriptContext + GetScriptLanguages core_get_script_languages.NewGetScriptLanguages + GetSource core_get_source.NewGetSource + HealthReport core_health_report.NewHealthReport + Index core_index.NewIndex + Info core_info.NewInfo + Mget core_mget.NewMget + Msearch core_msearch.NewMsearch + MsearchTemplate core_msearch_template.NewMsearchTemplate + Mtermvectors core_mtermvectors.NewMtermvectors + OpenPointInTime core_open_point_in_time.NewOpenPointInTime + Ping core_ping.NewPing + PutScript core_put_script.NewPutScript + RankEval core_rank_eval.NewRankEval + Reindex core_reindex.NewReindex + ReindexRethrottle core_reindex_rethrottle.NewReindexRethrottle + RenderSearchTemplate core_render_search_template.NewRenderSearchTemplate + ScriptsPainlessExecute core_scripts_painless_execute.NewScriptsPainlessExecute + Scroll core_scroll.NewScroll + Search core_search.NewSearch + SearchMvt core_search_mvt.NewSearchMvt + SearchShards core_search_shards.NewSearchShards + SearchTemplate core_search_template.NewSearchTemplate + TermsEnum core_terms_enum.NewTermsEnum + Termvectors core_termvectors.NewTermvectors + Update core_update.NewUpdate + UpdateByQuery core_update_by_query.NewUpdateByQuery UpdateByQueryRethrottle core_update_by_query_rethrottle.NewUpdateByQueryRethrottle } func New(tp elastictransport.Interface) *API { return &API{ - // AsyncSearch AsyncSearch: AsyncSearch{ Delete: async_search_delete.NewDeleteFunc(tp), Get: async_search_get.NewGetFunc(tp), @@ -10483,7 +1334,6 @@ func New(tp elastictransport.Interface) *API { Submit: async_search_submit.NewSubmitFunc(tp), }, - // Autoscaling Autoscaling: Autoscaling{ DeleteAutoscalingPolicy: autoscaling_delete_autoscaling_policy.NewDeleteAutoscalingPolicyFunc(tp), GetAutoscalingCapacity: autoscaling_get_autoscaling_capacity.NewGetAutoscalingCapacityFunc(tp), @@ -10491,12 +1341,10 @@ func New(tp elastictransport.Interface) *API { PutAutoscalingPolicy: autoscaling_put_autoscaling_policy.NewPutAutoscalingPolicyFunc(tp), }, - // Capabilities Capabilities: Capabilities{ Capabilities: capabilities.NewCapabilitiesFunc(tp), }, - // Cat Cat: Cat{ Aliases: cat_aliases.NewAliasesFunc(tp), Allocation: cat_allocation.NewAllocationFunc(tp), @@ -10526,7 +1374,6 @@ func New(tp elastictransport.Interface) *API { Transforms: cat_transforms.NewTransformsFunc(tp), }, - // Ccr Ccr: Ccr{ DeleteAutoFollowPattern: ccr_delete_auto_follow_pattern.NewDeleteAutoFollowPatternFunc(tp), Follow: ccr_follow.NewFollowFunc(tp), @@ -10543,7 +1390,6 @@ func New(tp elastictransport.Interface) *API { Unfollow: ccr_unfollow.NewUnfollowFunc(tp), }, - // Cluster Cluster: Cluster{ AllocationExplain: cluster_allocation_explain.NewAllocationExplainFunc(tp), DeleteComponentTemplate: cluster_delete_component_template.NewDeleteComponentTemplateFunc(tp), @@ -10563,7 +1409,6 @@ func New(tp elastictransport.Interface) *API { Stats: cluster_stats.NewStatsFunc(tp), }, - // Connector Connector: Connector{ CheckIn: connector_check_in.NewCheckInFunc(tp), Delete: connector_delete.NewDeleteFunc(tp), @@ -10598,7 +1443,6 @@ func New(tp elastictransport.Interface) *API { UpdateStatus: connector_update_status.NewUpdateStatusFunc(tp), }, - // Core Core: Core{ Bulk: core_bulk.NewBulkFunc(tp), ClearScroll: core_clear_scroll.NewClearScrollFunc(tp), @@ -10645,14 +1489,12 @@ func New(tp elastictransport.Interface) *API { UpdateByQueryRethrottle: core_update_by_query_rethrottle.NewUpdateByQueryRethrottleFunc(tp), }, - // DanglingIndices DanglingIndices: DanglingIndices{ DeleteDanglingIndex: dangling_indices_delete_dangling_index.NewDeleteDanglingIndexFunc(tp), ImportDanglingIndex: dangling_indices_import_dangling_index.NewImportDanglingIndexFunc(tp), ListDanglingIndices: dangling_indices_list_dangling_indices.NewListDanglingIndicesFunc(tp), }, - // Enrich Enrich: Enrich{ DeletePolicy: enrich_delete_policy.NewDeletePolicyFunc(tp), ExecutePolicy: enrich_execute_policy.NewExecutePolicyFunc(tp), @@ -10661,7 +1503,6 @@ func New(tp elastictransport.Interface) *API { Stats: enrich_stats.NewStatsFunc(tp), }, - // Eql Eql: Eql{ Delete: eql_delete.NewDeleteFunc(tp), Get: eql_get.NewGetFunc(tp), @@ -10669,7 +1510,6 @@ func New(tp elastictransport.Interface) *API { Search: eql_search.NewSearchFunc(tp), }, - // Esql Esql: Esql{ AsyncQuery: esql_async_query.NewAsyncQueryFunc(tp), AsyncQueryDelete: esql_async_query_delete.NewAsyncQueryDeleteFunc(tp), @@ -10678,13 +1518,11 @@ func New(tp elastictransport.Interface) *API { Query: esql_query.NewQueryFunc(tp), }, - // Features Features: Features{ GetFeatures: features_get_features.NewGetFeaturesFunc(tp), ResetFeatures: features_reset_features.NewResetFeaturesFunc(tp), }, - // Fleet Fleet: Fleet{ GlobalCheckpoints: fleet_global_checkpoints.NewGlobalCheckpointsFunc(tp), Msearch: fleet_msearch.NewMsearchFunc(tp), @@ -10692,12 +1530,10 @@ func New(tp elastictransport.Interface) *API { Search: fleet_search.NewSearchFunc(tp), }, - // Graph Graph: Graph{ Explore: graph_explore.NewExploreFunc(tp), }, - // Ilm Ilm: Ilm{ DeleteLifecycle: ilm_delete_lifecycle.NewDeleteLifecycleFunc(tp), ExplainLifecycle: ilm_explain_lifecycle.NewExplainLifecycleFunc(tp), @@ -10712,7 +1548,6 @@ func New(tp elastictransport.Interface) *API { Stop: ilm_stop.NewStopFunc(tp), }, - // Indices Indices: Indices{ AddBlock: indices_add_block.NewAddBlockFunc(tp), Analyze: indices_analyze.NewAnalyzeFunc(tp), @@ -10779,7 +1614,6 @@ func New(tp elastictransport.Interface) *API { ValidateQuery: indices_validate_query.NewValidateQueryFunc(tp), }, - // Inference Inference: Inference{ ChatCompletionUnified: inference_chat_completion_unified.NewChatCompletionUnifiedFunc(tp), Completion: inference_completion.NewCompletionFunc(tp), @@ -10810,7 +1644,6 @@ func New(tp elastictransport.Interface) *API { Update: inference_update.NewUpdateFunc(tp), }, - // Ingest Ingest: Ingest{ DeleteGeoipDatabase: ingest_delete_geoip_database.NewDeleteGeoipDatabaseFunc(tp), DeleteIpLocationDatabase: ingest_delete_ip_location_database.NewDeleteIpLocationDatabaseFunc(tp), @@ -10826,7 +1659,6 @@ func New(tp elastictransport.Interface) *API { Simulate: ingest_simulate.NewSimulateFunc(tp), }, - // License License: License{ Delete: license_delete.NewDeleteFunc(tp), Get: license_get.NewGetFunc(tp), @@ -10837,21 +1669,18 @@ func New(tp elastictransport.Interface) *API { PostStartTrial: license_post_start_trial.NewPostStartTrialFunc(tp), }, - // Logstash Logstash: Logstash{ DeletePipeline: logstash_delete_pipeline.NewDeletePipelineFunc(tp), GetPipeline: logstash_get_pipeline.NewGetPipelineFunc(tp), PutPipeline: logstash_put_pipeline.NewPutPipelineFunc(tp), }, - // Migration Migration: Migration{ Deprecations: migration_deprecations.NewDeprecationsFunc(tp), GetFeatureUpgradeStatus: migration_get_feature_upgrade_status.NewGetFeatureUpgradeStatusFunc(tp), PostFeatureUpgrade: migration_post_feature_upgrade.NewPostFeatureUpgradeFunc(tp), }, - // Ml Ml: Ml{ ClearTrainedModelDeploymentCache: ml_clear_trained_model_deployment_cache.NewClearTrainedModelDeploymentCacheFunc(tp), CloseJob: ml_close_job.NewCloseJobFunc(tp), @@ -10928,12 +1757,10 @@ func New(tp elastictransport.Interface) *API { ValidateDetector: ml_validate_detector.NewValidateDetectorFunc(tp), }, - // Monitoring Monitoring: Monitoring{ Bulk: monitoring_bulk.NewBulkFunc(tp), }, - // Nodes Nodes: Nodes{ ClearRepositoriesMeteringArchive: nodes_clear_repositories_metering_archive.NewClearRepositoriesMeteringArchiveFunc(tp), GetRepositoriesMeteringInfo: nodes_get_repositories_metering_info.NewGetRepositoriesMeteringInfoFunc(tp), @@ -10944,7 +1771,6 @@ func New(tp elastictransport.Interface) *API { Usage: nodes_usage.NewUsageFunc(tp), }, - // Profiling Profiling: Profiling{ Flamegraph: profiling_flamegraph.NewFlamegraphFunc(tp), Stacktraces: profiling_stacktraces.NewStacktracesFunc(tp), @@ -10952,7 +1778,6 @@ func New(tp elastictransport.Interface) *API { TopnFunctions: profiling_topn_functions.NewTopnFunctionsFunc(tp), }, - // QueryRules QueryRules: QueryRules{ DeleteRule: query_rules_delete_rule.NewDeleteRuleFunc(tp), DeleteRuleset: query_rules_delete_ruleset.NewDeleteRulesetFunc(tp), @@ -10964,7 +1789,6 @@ func New(tp elastictransport.Interface) *API { Test: query_rules_test.NewTestFunc(tp), }, - // Rollup Rollup: Rollup{ DeleteJob: rollup_delete_job.NewDeleteJobFunc(tp), GetJobs: rollup_get_jobs.NewGetJobsFunc(tp), @@ -10976,7 +1800,6 @@ func New(tp elastictransport.Interface) *API { StopJob: rollup_stop_job.NewStopJobFunc(tp), }, - // SearchApplication SearchApplication: SearchApplication{ Delete: search_application_delete.NewDeleteFunc(tp), DeleteBehavioralAnalytics: search_application_delete_behavioral_analytics.NewDeleteBehavioralAnalyticsFunc(tp), @@ -10990,7 +1813,6 @@ func New(tp elastictransport.Interface) *API { Search: search_application_search.NewSearchFunc(tp), }, - // SearchableSnapshots SearchableSnapshots: SearchableSnapshots{ CacheStats: searchable_snapshots_cache_stats.NewCacheStatsFunc(tp), ClearCache: searchable_snapshots_clear_cache.NewClearCacheFunc(tp), @@ -10998,7 +1820,6 @@ func New(tp elastictransport.Interface) *API { Stats: searchable_snapshots_stats.NewStatsFunc(tp), }, - // Security Security: Security{ ActivateUserProfile: security_activate_user_profile.NewActivateUserProfileFunc(tp), Authenticate: security_authenticate.NewAuthenticateFunc(tp), @@ -11066,19 +1887,16 @@ func New(tp elastictransport.Interface) *API { UpdateUserProfileData: security_update_user_profile_data.NewUpdateUserProfileDataFunc(tp), }, - // Shutdown Shutdown: Shutdown{ DeleteNode: shutdown_delete_node.NewDeleteNodeFunc(tp), GetNode: shutdown_get_node.NewGetNodeFunc(tp), PutNode: shutdown_put_node.NewPutNodeFunc(tp), }, - // Simulate Simulate: Simulate{ Ingest: simulate_ingest.NewIngestFunc(tp), }, - // Slm Slm: Slm{ DeleteLifecycle: slm_delete_lifecycle.NewDeleteLifecycleFunc(tp), ExecuteLifecycle: slm_execute_lifecycle.NewExecuteLifecycleFunc(tp), @@ -11091,7 +1909,6 @@ func New(tp elastictransport.Interface) *API { Stop: slm_stop.NewStopFunc(tp), }, - // Snapshot Snapshot: Snapshot{ CleanupRepository: snapshot_cleanup_repository.NewCleanupRepositoryFunc(tp), Clone: snapshot_clone.NewCloneFunc(tp), @@ -11108,7 +1925,6 @@ func New(tp elastictransport.Interface) *API { VerifyRepository: snapshot_verify_repository.NewVerifyRepositoryFunc(tp), }, - // Sql Sql: Sql{ ClearCursor: sql_clear_cursor.NewClearCursorFunc(tp), DeleteAsync: sql_delete_async.NewDeleteAsyncFunc(tp), @@ -11118,12 +1934,10 @@ func New(tp elastictransport.Interface) *API { Translate: sql_translate.NewTranslateFunc(tp), }, - // Ssl Ssl: Ssl{ Certificates: ssl_certificates.NewCertificatesFunc(tp), }, - // Synonyms Synonyms: Synonyms{ DeleteSynonym: synonyms_delete_synonym.NewDeleteSynonymFunc(tp), DeleteSynonymRule: synonyms_delete_synonym_rule.NewDeleteSynonymRuleFunc(tp), @@ -11134,14 +1948,12 @@ func New(tp elastictransport.Interface) *API { PutSynonymRule: synonyms_put_synonym_rule.NewPutSynonymRuleFunc(tp), }, - // Tasks Tasks: Tasks{ Cancel: tasks_cancel.NewCancelFunc(tp), Get: tasks_get.NewGetFunc(tp), List: tasks_list.NewListFunc(tp), }, - // TextStructure TextStructure: TextStructure{ FindFieldStructure: text_structure_find_field_structure.NewFindFieldStructureFunc(tp), FindMessageStructure: text_structure_find_message_structure.NewFindMessageStructureFunc(tp), @@ -11149,7 +1961,6 @@ func New(tp elastictransport.Interface) *API { TestGrokPattern: text_structure_test_grok_pattern.NewTestGrokPatternFunc(tp), }, - // Transform Transform: Transform{ DeleteTransform: transform_delete_transform.NewDeleteTransformFunc(tp), GetNodeStats: transform_get_node_stats.NewGetNodeStatsFunc(tp), @@ -11165,7 +1976,6 @@ func New(tp elastictransport.Interface) *API { UpgradeTransforms: transform_upgrade_transforms.NewUpgradeTransformsFunc(tp), }, - // Watcher Watcher: Watcher{ AckWatch: watcher_ack_watch.NewAckWatchFunc(tp), ActivateWatch: watcher_activate_watch.NewActivateWatchFunc(tp), @@ -11182,7 +1992,6 @@ func New(tp elastictransport.Interface) *API { UpdateSettings: watcher_update_settings.NewUpdateSettingsFunc(tp), }, - // Xpack Xpack: Xpack{ Info: xpack_info.NewInfoFunc(tp), Usage: xpack_usage.NewUsageFunc(tp), diff --git a/typedapi/asyncsearch/delete/delete.go b/typedapi/asyncsearch/delete/delete.go index d960d0c43c..1405ca2f16 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete an async search. // diff --git a/typedapi/asyncsearch/delete/response.go b/typedapi/asyncsearch/delete/response.go index 6fac5229c7..e65053f59d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L25 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 74a096b19e..33be0c85e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get async search results. // diff --git a/typedapi/asyncsearch/get/response.go b/typedapi/asyncsearch/get/response.go index 43e54af5e5..c7ef80e38e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L25 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 1ef0d55568..63db92dfcd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package status @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L42 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 d12e876298..25b8611484 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the async search status. // diff --git a/typedapi/asyncsearch/submit/request.go b/typedapi/asyncsearch/submit/request.go index 1deee46637..0c5831eb4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package submit @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L54-L294 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L54-L294 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` diff --git a/typedapi/asyncsearch/submit/response.go b/typedapi/asyncsearch/submit/response.go index 7a8d6f2c6b..5c04038dc8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package submit @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L25 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 dd09921821..38bb3a6348 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run an async search. // diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go b/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go index 0cd4ebccdf..38415ee594 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete an autoscaling policy. // diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/response.go b/typedapi/autoscaling/deleteautoscalingpolicy/response.go index 31fb09c0f0..3457662ffc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteautoscalingpolicy // Response holds the response body struct for the package deleteautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L25 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 43c84735b7..f1341b41bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the autoscaling capacity. // diff --git a/typedapi/autoscaling/getautoscalingcapacity/response.go b/typedapi/autoscaling/getautoscalingcapacity/response.go index 602a31e760..bd7f2951a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getautoscalingcapacity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingcapacity // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bf17d86c32..5c6cf1fb70 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get an autoscaling policy. // diff --git a/typedapi/autoscaling/getautoscalingpolicy/response.go b/typedapi/autoscaling/getautoscalingpolicy/response.go index 4ebdf4f777..68dcd37035 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L25 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 e4373f5053..5f0084318e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update an autoscaling policy. // diff --git a/typedapi/autoscaling/putautoscalingpolicy/request.go b/typedapi/autoscaling/putautoscalingpolicy/request.go index 28555b4835..d2350dd453 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9fa96a939e..64524f8c2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putautoscalingpolicy // Response holds the response body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L25 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 c5d6683b17..59c7d403d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3c3ca16244..d267006736 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get aliases. // diff --git a/typedapi/cat/aliases/response.go b/typedapi/cat/aliases/response.go index 41730a100d..5dbb6c8631 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package aliases @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package aliases // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/aliases/CatAliasesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/aliases/CatAliasesResponse.ts#L22-L25 type Response []types.AliasesRecord diff --git a/typedapi/cat/allocation/allocation.go b/typedapi/cat/allocation/allocation.go index 3bc807c12d..a96aefc406 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get shard allocation information. // diff --git a/typedapi/cat/allocation/response.go b/typedapi/cat/allocation/response.go index 521899e68d..730bdf1c7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package allocation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package allocation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/allocation/CatAllocationResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/allocation/CatAllocationResponse.ts#L22-L25 type Response []types.AllocationRecord diff --git a/typedapi/cat/componenttemplates/component_templates.go b/typedapi/cat/componenttemplates/component_templates.go index fa41f2ee81..d1179edde8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get component templates. // diff --git a/typedapi/cat/componenttemplates/response.go b/typedapi/cat/componenttemplates/response.go index 73b8a8de63..85a7f6864b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package componenttemplates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package componenttemplates // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L25 type Response []types.CatComponentTemplate diff --git a/typedapi/cat/count/count.go b/typedapi/cat/count/count.go index bf7d69fd54..b6f741c564 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a document count. // diff --git a/typedapi/cat/count/response.go b/typedapi/cat/count/response.go index 7573752440..dac71c5459 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/count/CatCountResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/count/CatCountResponse.ts#L22-L25 type Response []types.CountRecord diff --git a/typedapi/cat/fielddata/fielddata.go b/typedapi/cat/fielddata/fielddata.go index 5d2e057aef..93e2416fdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get field data cache information. // diff --git a/typedapi/cat/fielddata/response.go b/typedapi/cat/fielddata/response.go index 8a97e85bc6..e17d45dc5e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package fielddata @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fielddata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/fielddata/CatFielddataResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/fielddata/CatFielddataResponse.ts#L22-L25 type Response []types.FielddataRecord diff --git a/typedapi/cat/health/health.go b/typedapi/cat/health/health.go index 97f67377e8..8b9f78e528 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the cluster health status. // diff --git a/typedapi/cat/health/response.go b/typedapi/cat/health/response.go index 3154156803..484050183e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package health @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/health/CatHealthResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/health/CatHealthResponse.ts#L22-L25 type Response []types.HealthRecord diff --git a/typedapi/cat/help/help.go b/typedapi/cat/help/help.go index 399255cf1d..8b9740b6af 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get CAT help. // diff --git a/typedapi/cat/help/response.go b/typedapi/cat/help/response.go index c7b2091896..a1b7dbf3ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package help // Response holds the response body struct for the package help // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/help/CatHelpResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 72ab650e69..0f37f050ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get index information. // diff --git a/typedapi/cat/indices/response.go b/typedapi/cat/indices/response.go index bb5ef1169b..1fe2204cc1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package indices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package indices // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/indices/CatIndicesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/indices/CatIndicesResponse.ts#L22-L25 type Response []types.IndicesRecord diff --git a/typedapi/cat/master/master.go b/typedapi/cat/master/master.go index 8d188f3e81..1a01518c72 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get master node information. // diff --git a/typedapi/cat/master/response.go b/typedapi/cat/master/response.go index 990fd7ecb1..7c7608cb82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package master @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package master // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/master/CatMasterResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/master/CatMasterResponse.ts#L22-L25 type Response []types.MasterRecord diff --git a/typedapi/cat/mldatafeeds/ml_datafeeds.go b/typedapi/cat/mldatafeeds/ml_datafeeds.go index f209f7186b..a3004580b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get datafeeds. // diff --git a/typedapi/cat/mldatafeeds/response.go b/typedapi/cat/mldatafeeds/response.go index b292586d12..2ccad779de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mldatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L25 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 ee457429f2..41c1f940ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get data frame analytics jobs. // diff --git a/typedapi/cat/mldataframeanalytics/response.go b/typedapi/cat/mldataframeanalytics/response.go index d1d1cd40f7..05b106310c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mldataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mldataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L25 type Response []types.DataFrameAnalyticsRecord diff --git a/typedapi/cat/mljobs/ml_jobs.go b/typedapi/cat/mljobs/ml_jobs.go index 8cbb8b0897..4abf1adab0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get anomaly detection jobs. // diff --git a/typedapi/cat/mljobs/response.go b/typedapi/cat/mljobs/response.go index aa0887c3a8..f55e6627a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mljobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mljobs // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L25 type Response []types.JobsRecord diff --git a/typedapi/cat/mltrainedmodels/ml_trained_models.go b/typedapi/cat/mltrainedmodels/ml_trained_models.go index 82a694221b..e128d0c64d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get trained models. // diff --git a/typedapi/cat/mltrainedmodels/response.go b/typedapi/cat/mltrainedmodels/response.go index 8a4bfbaf04..716069bad2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mltrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mltrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L25 type Response []types.TrainedModelsRecord diff --git a/typedapi/cat/nodeattrs/nodeattrs.go b/typedapi/cat/nodeattrs/nodeattrs.go index 216a85a3fd..4965a2ecd9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get node attribute information. // diff --git a/typedapi/cat/nodeattrs/response.go b/typedapi/cat/nodeattrs/response.go index 4e343843f5..a3af89928f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package nodeattrs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodeattrs // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L25 type Response []types.NodeAttributesRecord diff --git a/typedapi/cat/nodes/nodes.go b/typedapi/cat/nodes/nodes.go index a5392655d2..c3cee6e1e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get node information. // @@ -40,6 +40,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catnodecolumn" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) @@ -313,15 +314,21 @@ func (r *Nodes) IncludeUnloadedSegments(includeunloadedsegments bool) *Nodes { return r } -// H List of columns to appear in the response. Supports simple wildcards. +// H A comma-separated list of columns names to display. +// It supports simple wildcards. // API name: h -func (r *Nodes) H(names ...string) *Nodes { - r.values.Set("h", strings.Join(names, ",")) +func (r *Nodes) H(catnodecolumns ...catnodecolumn.CatNodeColumn) *Nodes { + tmp := []string{} + for _, item := range catnodecolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } -// S List of columns that determine how the table should be sorted. +// S A comma-separated list of column names or aliases that determines the sort +// order. // Sorting defaults to ascending and can be changed by setting `:asc` // or `:desc` as a suffix to the column name. // API name: s @@ -331,7 +338,7 @@ func (r *Nodes) S(names ...string) *Nodes { return r } -// MasterTimeout Period to wait for a connection to the master node. +// MasterTimeout The period to wait for a connection to the master node. // API name: master_timeout func (r *Nodes) MasterTimeout(duration string) *Nodes { r.values.Set("master_timeout", duration) @@ -339,7 +346,7 @@ func (r *Nodes) MasterTimeout(duration string) *Nodes { return r } -// Time Unit used to display time values. +// Time The unit used to display time values. // API name: time func (r *Nodes) Time(time timeunit.TimeUnit) *Nodes { r.values.Set("time", time.String()) diff --git a/typedapi/cat/nodes/response.go b/typedapi/cat/nodes/response.go index b2ad1fc4e3..f400b4e006 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package nodes @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package nodes // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/nodes/CatNodesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/nodes/CatNodesResponse.ts#L22-L25 type Response []types.NodesRecord diff --git a/typedapi/cat/pendingtasks/pending_tasks.go b/typedapi/cat/pendingtasks/pending_tasks.go index d48c4244db..5f23b362ef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get pending task information. // diff --git a/typedapi/cat/pendingtasks/response.go b/typedapi/cat/pendingtasks/response.go index 4fb3077416..cd78d1fe91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L25 type Response []types.PendingTasksRecord diff --git a/typedapi/cat/plugins/plugins.go b/typedapi/cat/plugins/plugins.go index 803e936670..6feb6b4d75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get plugin information. // diff --git a/typedapi/cat/plugins/response.go b/typedapi/cat/plugins/response.go index f89cd833fa..19dae05a71 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package plugins @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package plugins // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/plugins/CatPluginsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/plugins/CatPluginsResponse.ts#L22-L25 type Response []types.PluginsRecord diff --git a/typedapi/cat/recovery/recovery.go b/typedapi/cat/recovery/recovery.go index b464085d4e..06b605080b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get shard recovery information. // @@ -46,6 +46,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catrecoverycolumn" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) @@ -355,15 +356,21 @@ func (r *Recovery) Detailed(detailed bool) *Recovery { return r } -// H List of columns to appear in the response. Supports simple wildcards. +// H A comma-separated list of columns names to display. +// It supports simple wildcards. // API name: h -func (r *Recovery) H(names ...string) *Recovery { - r.values.Set("h", strings.Join(names, ",")) +func (r *Recovery) H(catrecoverycolumns ...catrecoverycolumn.CatRecoveryColumn) *Recovery { + tmp := []string{} + for _, item := range catrecoverycolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } -// S List of columns that determine how the table should be sorted. +// S A comma-separated list of column names or aliases that determines the sort +// order. // Sorting defaults to ascending and can be changed by setting `:asc` // or `:desc` as a suffix to the column name. // API name: s @@ -373,7 +380,7 @@ func (r *Recovery) S(names ...string) *Recovery { return r } -// Time Unit used to display time values. +// Time The unit used to display time values. // API name: time func (r *Recovery) Time(time timeunit.TimeUnit) *Recovery { r.values.Set("time", time.String()) diff --git a/typedapi/cat/recovery/response.go b/typedapi/cat/recovery/response.go index a418f6527d..622b3d41ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/recovery/CatRecoveryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/recovery/CatRecoveryResponse.ts#L22-L25 type Response []types.RecoveryRecord diff --git a/typedapi/cat/repositories/repositories.go b/typedapi/cat/repositories/repositories.go index 14065a86bd..818f9644ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get snapshot repository information. // diff --git a/typedapi/cat/repositories/response.go b/typedapi/cat/repositories/response.go index 54dd3a06c7..dcdea66d51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package repositories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositories // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L25 type Response []types.RepositoriesRecord diff --git a/typedapi/cat/segments/response.go b/typedapi/cat/segments/response.go index c4b4539da7..68cbddcdb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/segments/CatSegmentsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/segments/CatSegmentsResponse.ts#L22-L25 type Response []types.SegmentsRecord diff --git a/typedapi/cat/segments/segments.go b/typedapi/cat/segments/segments.go index bd6884cc27..67d1a00610 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get segment information. // @@ -41,6 +41,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catsegmentscolumn" ) const ( @@ -329,15 +330,21 @@ func (r *Segments) Bytes(bytes bytes.Bytes) *Segments { return r } -// H List of columns to appear in the response. Supports simple wildcards. +// H A comma-separated list of columns names to display. +// It supports simple wildcards. // API name: h -func (r *Segments) H(names ...string) *Segments { - r.values.Set("h", strings.Join(names, ",")) +func (r *Segments) H(catsegmentscolumns ...catsegmentscolumn.CatSegmentsColumn) *Segments { + tmp := []string{} + for _, item := range catsegmentscolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } -// S List of columns that determine how the table should be sorted. +// S A comma-separated list of column names or aliases that determines the sort +// order. // Sorting defaults to ascending and can be changed by setting `:asc` // or `:desc` as a suffix to the column name. // API name: s diff --git a/typedapi/cat/shards/response.go b/typedapi/cat/shards/response.go index 52e26e80e0..fb1b4f39ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package shards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shards // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/shards/CatShardsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/shards/CatShardsResponse.ts#L22-L25 type Response []types.ShardsRecord diff --git a/typedapi/cat/shards/shards.go b/typedapi/cat/shards/shards.go index 7b7524e31e..0c1e4f0997 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get shard information. // @@ -40,6 +40,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catshardcolumn" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) @@ -330,13 +331,18 @@ func (r *Shards) Bytes(bytes bytes.Bytes) *Shards { // H List of columns to appear in the response. Supports simple wildcards. // API name: h -func (r *Shards) H(names ...string) *Shards { - r.values.Set("h", strings.Join(names, ",")) +func (r *Shards) H(catshardcolumns ...catshardcolumn.CatShardColumn) *Shards { + tmp := []string{} + for _, item := range catshardcolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } -// S List of columns that determine how the table should be sorted. +// S A comma-separated list of column names or aliases that determines the sort +// order. // Sorting defaults to ascending and can be changed by setting `:asc` // or `:desc` as a suffix to the column name. // API name: s @@ -346,7 +352,7 @@ func (r *Shards) S(names ...string) *Shards { return r } -// MasterTimeout Period to wait for a connection to the master node. +// MasterTimeout The period to wait for a connection to the master node. // API name: master_timeout func (r *Shards) MasterTimeout(duration string) *Shards { r.values.Set("master_timeout", duration) @@ -354,7 +360,7 @@ func (r *Shards) MasterTimeout(duration string) *Shards { return r } -// Time Unit used to display time values. +// Time The unit used to display time values. // API name: time func (r *Shards) Time(time timeunit.TimeUnit) *Shards { r.values.Set("time", time.String()) diff --git a/typedapi/cat/snapshots/response.go b/typedapi/cat/snapshots/response.go index ccf2c4b176..6e7519c8d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package snapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package snapshots // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L25 type Response []types.SnapshotsRecord diff --git a/typedapi/cat/snapshots/snapshots.go b/typedapi/cat/snapshots/snapshots.go index 16e50352e4..61a83ee238 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get snapshot information. // @@ -40,6 +40,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catsnapshotscolumn" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) @@ -329,10 +330,15 @@ func (r *Snapshots) IgnoreUnavailable(ignoreunavailable bool) *Snapshots { return r } -// H List of columns to appear in the response. Supports simple wildcards. +// H A comma-separated list of columns names to display. +// It supports simple wildcards. // API name: h -func (r *Snapshots) H(names ...string) *Snapshots { - r.values.Set("h", strings.Join(names, ",")) +func (r *Snapshots) H(catsnapshotscolumns ...catsnapshotscolumn.CatSnapshotsColumn) *Snapshots { + tmp := []string{} + for _, item := range catsnapshotscolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } diff --git a/typedapi/cat/tasks/response.go b/typedapi/cat/tasks/response.go index 0ff3d4fa08..a1361b4e90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package tasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package tasks // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/tasks/CatTasksResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/tasks/CatTasksResponse.ts#L22-L25 type Response []types.TasksRecord diff --git a/typedapi/cat/tasks/tasks.go b/typedapi/cat/tasks/tasks.go index 0f0e860346..0231a23c0d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get task information. // diff --git a/typedapi/cat/templates/response.go b/typedapi/cat/templates/response.go index c720a0301c..33c6d3430a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package templates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package templates // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/templates/CatTemplatesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/templates/CatTemplatesResponse.ts#L22-L25 type Response []types.TemplatesRecord diff --git a/typedapi/cat/templates/templates.go b/typedapi/cat/templates/templates.go index 76b9bdac9a..20b5f69910 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get index template information. // diff --git a/typedapi/cat/threadpool/response.go b/typedapi/cat/threadpool/response.go index a3e53189c7..b05cd335e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package threadpool @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package threadpool // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L25 type Response []types.ThreadPoolRecord diff --git a/typedapi/cat/threadpool/thread_pool.go b/typedapi/cat/threadpool/thread_pool.go index 17b8480c2a..67a9a98146 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get thread pool statistics. // @@ -41,6 +41,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catthreadpoolcolumn" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) @@ -322,13 +323,18 @@ func (r *ThreadPool) ThreadPoolPatterns(threadpoolpatterns string) *ThreadPool { // H List of columns to appear in the response. Supports simple wildcards. // API name: h -func (r *ThreadPool) H(names ...string) *ThreadPool { - r.values.Set("h", strings.Join(names, ",")) +func (r *ThreadPool) H(catthreadpoolcolumns ...catthreadpoolcolumn.CatThreadPoolColumn) *ThreadPool { + tmp := []string{} + for _, item := range catthreadpoolcolumns { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) return r } -// S List of columns that determine how the table should be sorted. +// S A comma-separated list of column names or aliases that determines the sort +// order. // Sorting defaults to ascending and can be changed by setting `:asc` // or `:desc` as a suffix to the column name. // API name: s @@ -357,7 +363,7 @@ func (r *ThreadPool) Local(local bool) *ThreadPool { return r } -// MasterTimeout Period to wait for a connection to the master node. +// MasterTimeout The period to wait for a connection to the master node. // API name: master_timeout func (r *ThreadPool) MasterTimeout(duration string) *ThreadPool { r.values.Set("master_timeout", duration) diff --git a/typedapi/cat/transforms/response.go b/typedapi/cat/transforms/response.go index 392e384db2..a217b9dcaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package transforms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package transforms // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/transforms/CatTransformsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/transforms/CatTransformsResponse.ts#L22-L25 type Response []types.TransformsRecord diff --git a/typedapi/cat/transforms/transforms.go b/typedapi/cat/transforms/transforms.go index a3f9c7819f..9df7ef0cc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get transform information. // diff --git a/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go b/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go index 83a438e517..ad99eeb390 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete auto-follow patterns. // diff --git a/typedapi/ccr/deleteautofollowpattern/response.go b/typedapi/ccr/deleteautofollowpattern/response.go index b5eba311ba..fb3d627dcf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteautofollowpattern // Response holds the response body struct for the package deleteautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L25 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 08e95fa9c6..b3bc7163a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8851259924..57ec710fcd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package follow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow/CreateFollowIndexRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 41d4797fb8..e29ae6c8bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package follow // Response holds the response body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4d294d7922..a88de565fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get follower information. // diff --git a/typedapi/ccr/followinfo/response.go b/typedapi/ccr/followinfo/response.go index 8f5167d0f9..bf680706e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package followinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followinfo // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 55499100ae..0bc7a803e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get follower stats. // diff --git a/typedapi/ccr/followstats/response.go b/typedapi/ccr/followstats/response.go index cfea6e6520..9160fdcfa5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package followstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package followstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 32aa5010aa..512848d6a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 89604fb84d..bd50a5231b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package forgetfollower @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 351272f477..8a2be579b7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package forgetfollower @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bc056e683e..f7280d7e96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get auto-follow patterns. // diff --git a/typedapi/ccr/getautofollowpattern/response.go b/typedapi/ccr/getautofollowpattern/response.go index 198dc98d8a..2850149a2b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getautofollowpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 13f536219a..19a9951891 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Pause an auto-follow pattern. // diff --git a/typedapi/ccr/pauseautofollowpattern/response.go b/typedapi/ccr/pauseautofollowpattern/response.go index 3939cb4476..04bf0c5014 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package pauseautofollowpattern // Response holds the response body struct for the package pauseautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L25 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 9233897307..843589d9cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Pause a follower. // diff --git a/typedapi/ccr/pausefollow/response.go b/typedapi/ccr/pausefollow/response.go index a75ba876b6..3228428c4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package pausefollow // Response holds the response body struct for the package pausefollow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L25 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 9a7e22fadc..8c30c22d00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c126cb2f02..360d6e93d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putautofollowpattern @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8794577222..f10499d545 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putautofollowpattern // Response holds the response body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L25 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 cf01f9e743..a3869a543f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resumeautofollowpattern // Response holds the response body struct for the package resumeautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L25 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 952913b944..319b11a282 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Resume an auto-follow pattern. // diff --git a/typedapi/ccr/resumefollow/request.go b/typedapi/ccr/resumefollow/request.go index 19b2d20762..b92fb4b768 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resumefollow @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c649395b0c..b03b374ade 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resumefollow // Response holds the response body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L25 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 f1228688b1..91fb6ed1f9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 741876c612..b66a606057 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/stats/CcrStatsResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a4be0433ce..d9f540c7f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get cross-cluster replication stats. // diff --git a/typedapi/ccr/unfollow/response.go b/typedapi/ccr/unfollow/response.go index 221b2a0433..970666ac4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package unfollow // Response holds the response body struct for the package unfollow // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L25 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 790a8c4fa0..96aef6b086 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Unfollow an index. // diff --git a/typedapi/cluster/allocationexplain/allocation_explain.go b/typedapi/cluster/allocationexplain/allocation_explain.go index 720e880400..46e6ac9509 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Explain the shard allocations. // Get explanations for shard allocations in the cluster. @@ -28,6 +28,8 @@ // This API can be very useful when attempting to diagnose why a shard is // unassigned or why a shard continues to remain on its current node when you // might expect otherwise. +// Refer to the linked documentation for examples of how to troubleshoot +// allocation issues using this API. package allocationexplain import ( @@ -92,6 +94,8 @@ func NewAllocationExplainFunc(tp elastictransport.Interface) NewAllocationExplai // This API can be very useful when attempting to diagnose why a shard is // unassigned or why a shard continues to remain on its current node when you // might expect otherwise. +// Refer to the linked documentation for examples of how to troubleshoot +// allocation issues using this API. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-allocation-explain func New(tp elastictransport.Interface) *AllocationExplain { diff --git a/typedapi/cluster/allocationexplain/request.go b/typedapi/cluster/allocationexplain/request.go index c7b1c565b5..52339f808f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package allocationexplain @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L81 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 5d7ab01c45..802b75dc17 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package allocationexplain @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ebfaa02037..b603abfe60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b94bf8f44d..77159edad1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletecomponenttemplate // Response holds the response body struct for the package deletecomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L25 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 95a6bc53f4..3cfa6f9efd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear cluster voting config exclusions. // Remove master-eligible nodes from the voting configuration exclusion list. diff --git a/typedapi/cluster/existscomponenttemplate/exists_component_template.go b/typedapi/cluster/existscomponenttemplate/exists_component_template.go index 96bc8ee4d7..dbbe6397c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6ef5370386..d598f166bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get component templates. // Get information about component templates. @@ -311,6 +311,19 @@ func (r *GetComponentTemplate) FlatSettings(flatsettings bool) *GetComponentTemp return r } +// SettingsFilter Filter out results, for example to filter out sensitive information. Supports +// wildcards or full settings keys +// API name: settings_filter +func (r *GetComponentTemplate) SettingsFilter(settingsfilters ...string) *GetComponentTemplate { + tmp := []string{} + for _, item := range settingsfilters { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("settings_filter", strings.Join(tmp, ",")) + + return r +} + // IncludeDefaults Return all default configurations for the component template (default: false) // API name: include_defaults func (r *GetComponentTemplate) IncludeDefaults(includedefaults bool) *GetComponentTemplate { diff --git a/typedapi/cluster/getcomponenttemplate/response.go b/typedapi/cluster/getcomponenttemplate/response.go index 2dcc69a8e8..f2191a69a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcomponenttemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8d869000b3..5b33fd3caa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 7e14e70043..7ad31cba1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsettings @@ -26,11 +26,15 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L32 type Response struct { - Defaults map[string]json.RawMessage `json:"defaults,omitempty"` + + // Defaults The default setting values. + Defaults map[string]json.RawMessage `json:"defaults,omitempty"` + // Persistent The settings that persist after the cluster restarts. Persistent map[string]json.RawMessage `json:"persistent"` - Transient map[string]json.RawMessage `json:"transient"` + // Transient The settings that do not persist after the cluster restarts. + Transient map[string]json.RawMessage `json:"transient"` } // NewResponse returns a Response diff --git a/typedapi/cluster/health/health.go b/typedapi/cluster/health/health.go index 4fd29eff90..0da1fc571e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the cluster health status. // @@ -37,7 +37,6 @@ package health import ( - gobytes "bytes" "context" "encoding/json" "errors" @@ -45,6 +44,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -253,7 +253,8 @@ func (r Health) Do(providedCtx context.Context) (*Response, error) { } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{408}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -265,42 +266,6 @@ func (r Health) Do(providedCtx context.Context) (*Response, error) { return response, nil } - if res.StatusCode == 408 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { diff --git a/typedapi/cluster/health/response.go b/typedapi/cluster/health/response.go index 07d36efe2c..186ad003c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package health @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/health/ClusterHealthResponse.ts#L26-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/health/ClusterHealthResponse.ts#L26-L38 type Response struct { // ActivePrimaryShards The number of active primary shards. diff --git a/typedapi/cluster/info/info.go b/typedapi/cluster/info/info.go index 67c9c361fa..7db9963932 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get cluster info. // Returns basic information about the cluster. diff --git a/typedapi/cluster/info/response.go b/typedapi/cluster/info/response.go index b6cf4cb375..a8d36d135c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bf5a8370d8..aeb9056c61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3264539966..454c6f08fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package pendingtasks @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bd7b08b88c..6829440211 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update voting configuration exclusions. // Update the cluster voting config exclusions by node IDs or node names. diff --git a/typedapi/cluster/putcomponenttemplate/put_component_template.go b/typedapi/cluster/putcomponenttemplate/put_component_template.go index 1cd76b0f73..25c17a40ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a component template. // Component templates are building blocks for constructing index templates that @@ -386,6 +386,14 @@ func (r *PutComponentTemplate) Create(create bool) *PutComponentTemplate { return r } +// Cause User defined reason for create the component template. +// API name: cause +func (r *PutComponentTemplate) Cause(cause string) *PutComponentTemplate { + 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. diff --git a/typedapi/cluster/putcomponenttemplate/request.go b/typedapi/cluster/putcomponenttemplate/request.go index 0b48abd9ff..4efc0cd306 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcomponenttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L110 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 6197310b80..8884cc78b3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcomponenttemplate // Response holds the response body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L25 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 9d146d8700..f0a70d91e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the cluster settings. // @@ -422,6 +422,7 @@ func (r *PutSettings) Pretty(pretty bool) *PutSettings { return r } +// The settings that persist after the cluster restarts. // API name: persistent func (r *PutSettings) Persistent(persistent map[string]json.RawMessage) *PutSettings { // Initialize the request if it is not already initialized @@ -451,6 +452,7 @@ func (r *PutSettings) AddPersistent(key string, value json.RawMessage) *PutSetti return r } +// The settings that do not persist after the cluster restarts. // API name: transient func (r *PutSettings) Transient(transient map[string]json.RawMessage) *PutSettings { // Initialize the request if it is not already initialized diff --git a/typedapi/cluster/putsettings/request.go b/typedapi/cluster/putsettings/request.go index e00e3104a3..3aeaebb9fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsettings @@ -27,10 +27,13 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L71 type Request struct { + + // Persistent The settings that persist after the cluster restarts. Persistent map[string]json.RawMessage `json:"persistent,omitempty"` - Transient map[string]json.RawMessage `json:"transient,omitempty"` + // Transient The settings that do not persist after the cluster restarts. + Transient map[string]json.RawMessage `json:"transient,omitempty"` } // NewRequest returns a Request diff --git a/typedapi/cluster/putsettings/response.go b/typedapi/cluster/putsettings/response.go index f390b128a0..f28fda2e4d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b1720adf2c..04cef1d4c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get remote cluster information. // diff --git a/typedapi/cluster/remoteinfo/response.go b/typedapi/cluster/remoteinfo/response.go index 650e87bb32..5b4dbaeb46 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package remoteinfo @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package remoteinfo // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7f633019ca..e40550e486 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reroute @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d3f3862104..9861f5ee01 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 678f82a890..1347f55f37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reroute @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d578fbfc24..39da8377a9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package state @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package state // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/state/ClusterStateResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/state/ClusterStateResponse.ts#L22-L31 type Response = json.RawMessage diff --git a/typedapi/cluster/state/state.go b/typedapi/cluster/state/state.go index 3bb7bea036..7e33d2a890 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 9990659619..3fd01df218 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -27,9 +27,11 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/ClusterStatsResponse.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/ClusterStatsResponse.ts#L71-L74 type Response struct { + // Ccs Cross-cluster stats + Ccs types.CCSStats `json:"ccs"` // ClusterName Name of the cluster, based on the cluster name setting. ClusterName string `json:"cluster_name"` // ClusterUuid Unique identifier for the cluster. @@ -41,9 +43,14 @@ type Response struct { NodeStats *types.NodeStatistics `json:"_nodes,omitempty"` // Nodes Contains statistics about nodes selected by the request’s node filters. Nodes types.ClusterNodes `json:"nodes"` + // Repositories Contains stats on repository feature usage exposed in cluster stats for + // telemetry. + Repositories map[string]map[string]int64 `json:"repositories"` + // Snapshots Contains stats cluster snapshots. + Snapshots types.ClusterSnapshotStats `json:"snapshots"` // Status Health status of the cluster, based on the state of its primary and replica // shards. - Status healthstatus.HealthStatus `json:"status"` + Status *healthstatus.HealthStatus `json:"status,omitempty"` // Timestamp Unix timestamp, in milliseconds, for the last time the cluster statistics // were refreshed. Timestamp int64 `json:"timestamp"` @@ -51,6 +58,8 @@ type Response struct { // NewResponse returns a Response func NewResponse() *Response { - r := &Response{} + r := &Response{ + Repositories: make(map[string]map[string]int64, 0), + } return r } diff --git a/typedapi/cluster/stats/stats.go b/typedapi/cluster/stats/stats.go index 5d7f9a44f2..1366a18132 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e0e01d3eae..37a3fe5547 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check in a connector. // diff --git a/typedapi/connector/checkin/response.go b/typedapi/connector/checkin/response.go index ca2bc954f4..752472fd7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package checkin @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package checkin // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 66a701a968..09d14bc1df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a connector. // diff --git a/typedapi/connector/delete/response.go b/typedapi/connector/delete/response.go index 55f081ff04..577846579f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/delete/ConnectorDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/delete/ConnectorDeleteResponse.ts#L22-L25 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 2e8766d6bf..5ff61fcad1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a connector. // diff --git a/typedapi/connector/get/response.go b/typedapi/connector/get/response.go index d26204fc91..2532fad7eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -35,7 +35,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/get/ConnectorGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/get/ConnectorGetResponse.ts#L22-L25 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 fda07e286f..cfd5412a34 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector last sync stats. // diff --git a/typedapi/connector/lastsync/request.go b/typedapi/connector/lastsync/request.go index 317a0f1635..d1c50f609a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package lastsync @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8a344b9c59..6a38deb364 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package lastsync @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0d37bc9fff..18cf072919 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get all connectors. // diff --git a/typedapi/connector/list/response.go b/typedapi/connector/list/response.go index 43cf57cad8..766327e117 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/list/ConnectorListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 056f4834a2..fb45f61737 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a connector. // diff --git a/typedapi/connector/post/request.go b/typedapi/connector/post/request.go index 952e38b748..2f0bc9a9e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package post @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/post/ConnectorPostRequest.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 abea0dfe5c..ae8ad0a5f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package post @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/post/ConnectorPostResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8be12c8655..68d87061e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a connector. package put diff --git a/typedapi/connector/put/request.go b/typedapi/connector/put/request.go index 9787d33642..9922f2d2d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/put/ConnectorPutRequest.ts#L22-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7a8da1e5a2..c995915c37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/put/ConnectorPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1fc536d1ab..5f03d7b3cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Creates a secret for a Connector. package secretpost diff --git a/typedapi/connector/syncjobcancel/response.go b/typedapi/connector/syncjobcancel/response.go index 8bf84c7da7..307d285737 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobcancel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjobcancel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c782815361..ad2c182856 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Cancel a connector sync job. // diff --git a/typedapi/connector/syncjobcheckin/response.go b/typedapi/connector/syncjobcheckin/response.go index 42eb71d2f6..959769e897 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobcheckin // Response holds the response body struct for the package syncjobcheckin // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ec64152e5d..b22f29e432 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 1e7a977b49..3d43f50c91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobclaim @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2629e7c98a..0d0d2093ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobclaim // Response holds the response body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d68983ca9b..31527d935e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8215211d6e..4733591f1c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobdelete // Response holds the response body struct for the package syncjobdelete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L25 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 b9e4a46509..5fab89d24b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a connector sync job. // diff --git a/typedapi/connector/syncjoberror/request.go b/typedapi/connector/syncjoberror/request.go index 0f1d68a60a..7afc9eede8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjoberror @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0e81d7892c..2e7c681c24 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjoberror // Response holds the response body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2bb8059cb0..f682307220 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8e0d644402..0bd07b814d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobget @@ -36,7 +36,7 @@ import ( // Response holds the response body struct for the package syncjobget // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L25 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 dced5b7d70..ce60207321 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a connector sync job. package syncjobget diff --git a/typedapi/connector/syncjoblist/response.go b/typedapi/connector/syncjoblist/response.go index 4541b3c639..8ad8d78662 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjoblist @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package syncjoblist // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 45fa734102..65cf2d594a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get all connector sync jobs. // diff --git a/typedapi/connector/syncjobpost/request.go b/typedapi/connector/syncjobpost/request.go index 0684b56a4d..3ea993f188 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobpost @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 18ef117707..041e234139 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobpost // Response holds the response body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 843d33591d..cde2ee4f46 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a connector sync job. // diff --git a/typedapi/connector/syncjobupdatestats/request.go b/typedapi/connector/syncjobupdatestats/request.go index 600151ba2b..a060fd4dc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobupdatestats @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8a7552d5c9..a61f3df601 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package syncjobupdatestats // Response holds the response body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ebc06460aa..a1543c28e0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 75afc12bb2..e0ef0f3363 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateactivefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateactivefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 05078780f8..5143afed86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Activate the connector draft filter. // diff --git a/typedapi/connector/updateapikeyid/request.go b/typedapi/connector/updateapikeyid/request.go index 27329852f7..d7b7d73b85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateapikeyid @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 980588cb20..84cb2807a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateapikeyid @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 cf67685045..2481f75edd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector API key ID. // diff --git a/typedapi/connector/updateconfiguration/request.go b/typedapi/connector/updateconfiguration/request.go index a1fe39a544..2c9f3570ab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateconfiguration @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8bdbdcf35f..82565fadac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateconfiguration @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a726adbc61..79e336c210 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector configuration. // diff --git a/typedapi/connector/updateerror/request.go b/typedapi/connector/updateerror/request.go index 07aff99418..0c2e69444c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateerror @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e7613e17c8..c7d7225f14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateerror @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 270271325f..aa889cd64b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector error field. // diff --git a/typedapi/connector/updatefeatures/request.go b/typedapi/connector/updatefeatures/request.go index 9bc9d97208..198add416e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefeatures @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1f17f5297a..5d6052414a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ae1cbf67c4..c5e0c39932 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 14a62a9306..afb0bd4af6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefiltering @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 502679599f..c90cbd4f44 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefiltering @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fb08ad1a66..c9c2938956 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector filtering. // diff --git a/typedapi/connector/updatefilteringvalidation/request.go b/typedapi/connector/updatefilteringvalidation/request.go index 459908dcca..0ddc17533c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefilteringvalidation @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5ab053e49b..ed9d6b6ec2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefilteringvalidation @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c07931ea38..f42d3ed8f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector draft filtering validation. // diff --git a/typedapi/connector/updateindexname/request.go b/typedapi/connector/updateindexname/request.go index 3e3fa97145..80903db91a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateindexname @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 73745b97e9..36dcfba427 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateindexname @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 28da10b38c..e0fd986a5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector index name. // diff --git a/typedapi/connector/updatename/request.go b/typedapi/connector/updatename/request.go index 1525d28735..f4dc936f1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatename @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bbfb8acd0c..6969da6e4d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatename @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 63e015080b..e566e6bcf2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector name and description. package updatename diff --git a/typedapi/connector/updatenative/request.go b/typedapi/connector/updatenative/request.go index babae81c1e..2d5c725468 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatenative @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 abc39c20a5..a6dc32285f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatenative @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 794e12a658..10679fcf21 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector is_native flag. package updatenative diff --git a/typedapi/connector/updatepipeline/request.go b/typedapi/connector/updatepipeline/request.go index f7de5ed6b4..9ad259c368 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatepipeline @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 771c5ac184..80610e4c8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatepipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 de9cfbe062..1f0459773a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector pipeline. // diff --git a/typedapi/connector/updatescheduling/request.go b/typedapi/connector/updatescheduling/request.go index 5f122826c7..a8b3859cb3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatescheduling @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b35378dad8..38981f62dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatescheduling @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 87eb459a81..e9220d1d13 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector scheduling. package updatescheduling diff --git a/typedapi/connector/updateservicetype/request.go b/typedapi/connector/updateservicetype/request.go index 8d85f1a08b..2d90196193 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateservicetype @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 39f7c43543..55309b5f51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateservicetype @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 77960a0179..ee5c504da8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector service type. package updateservicetype diff --git a/typedapi/connector/updatestatus/request.go b/typedapi/connector/updatestatus/request.go index c90b396229..4a01d63d4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatestatus @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d467aace03..0815e415db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatestatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 499b89b4c9..af94d14453 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the connector status. package updatestatus diff --git a/typedapi/core/bulk/bulk.go b/typedapi/core/bulk/bulk.go index 7d405cf0a8..3c4d3de7de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Bulk index or delete documents. // Perform multiple `index`, `create`, `delete`, and `update` actions in a @@ -175,6 +175,11 @@ // The request will only wait for those three shards to refresh. // The other two shards that make up the index do not participate in the `_bulk` // request at all. +// +// You might want to disable the refresh interval temporarily to improve +// indexing throughput for large bulk requests. +// Refer to the linked documentation for step-by-step instructions using the +// index settings API. package bulk import ( @@ -394,6 +399,11 @@ func NewBulkFunc(tp elastictransport.Interface) NewBulk { // The other two shards that make up the index do not participate in the `_bulk` // request at all. // +// You might want to disable the refresh interval temporarily to improve +// indexing throughput for large bulk requests. +// Refer to the linked documentation for step-by-step instructions using the +// index settings API. +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk func New(tp elastictransport.Interface) *Bulk { r := &Bulk{ diff --git a/typedapi/core/bulk/request.go b/typedapi/core/bulk/request.go index c89b94b6cf..72669779fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/BulkRequest.ts#L32-L247 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/bulk/BulkRequest.ts#L32-L251 type Request = []any diff --git a/typedapi/core/bulk/response.go b/typedapi/core/bulk/response.go index c77631a73a..d4d9d5622d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulk @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/BulkResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fe8da28098..c6eb0dbd60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear a scrolling search. // Clear the search context and results for a scrolling search. @@ -31,6 +31,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -256,7 +257,8 @@ func (r ClearScroll) Do(providedCtx context.Context) (*Response, error) { } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{404}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -268,42 +270,6 @@ func (r ClearScroll) Do(providedCtx context.Context) (*Response, error) { return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { diff --git a/typedapi/core/clearscroll/request.go b/typedapi/core/clearscroll/request.go index 06aebe323c..62819d3db0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearscroll @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fd46cad210..ea3853ce3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearscroll // Response holds the response body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aaa2054a3e..7eef26ec20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Close a point in time. // A point in time must be opened explicitly before being used in search @@ -37,6 +37,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -264,7 +265,8 @@ func (r ClosePointInTime) Do(providedCtx context.Context) (*Response, error) { } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{404}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -276,42 +278,6 @@ func (r ClosePointInTime) Do(providedCtx context.Context) (*Response, error) { return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { diff --git a/typedapi/core/closepointintime/request.go b/typedapi/core/closepointintime/request.go index 13bf45fe0d..d0e574b991 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package closepointintime @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9db2f411fe..dead222b7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package closepointintime // Response holds the response body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e2654e756c..98a89f0283 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 bf1d259f20..253f843bf4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package count @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/count/CountRequest.ts#L26-L154 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0b47aa902b..d561e7fdd4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package count @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/count/CountResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b6286cc1f7..e0d031daa8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a new document in the index. // @@ -160,7 +160,6 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/optype" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) @@ -598,22 +597,6 @@ func (r *Create) _index(index string) *Create { return r } -// IfPrimaryTerm Only perform the operation if the document has this primary term. -// API name: if_primary_term -func (r *Create) IfPrimaryTerm(ifprimaryterm string) *Create { - r.values.Set("if_primary_term", ifprimaryterm) - - return r -} - -// IfSeqNo Only perform the operation if the document has this sequence number. -// API name: if_seq_no -func (r *Create) IfSeqNo(sequencenumber string) *Create { - r.values.Set("if_seq_no", sequencenumber) - - return r -} - // IncludeSourceOnError True or false if to include the document source in the error message in case // of parsing errors. // API name: include_source_on_error @@ -623,21 +606,6 @@ func (r *Create) IncludeSourceOnError(includesourceonerror bool) *Create { return r } -// OpType Set to `create` to only index the document if it does not already exist (put -// if absent). -// If a document with the specified `_id` already exists, the indexing operation -// will fail. -// The behavior is the same as using the `/_create` endpoint. -// If a document ID is specified, this paramater defaults to `index`. -// Otherwise, it defaults to `create`. -// If the request targets a data stream, an `op_type` of `create` is required. -// API name: op_type -func (r *Create) OpType(optype optype.OpType) *Create { - r.values.Set("op_type", optype.String()) - - return r -} - // Pipeline The ID of the pipeline to use to preprocess incoming documents. // If the index has a default ingest pipeline specified, setting the value to // `_none` turns off the default ingest pipeline for this request. diff --git a/typedapi/core/create/request.go b/typedapi/core/create/request.go index 0bd5deb306..d62293995a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/create/CreateRequest.ts#L35-L221 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/create/CreateRequest.ts#L32-L199 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/create/response.go b/typedapi/core/create/response.go index ddcac9078e..d2f930a9eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/create/CreateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/create/CreateResponse.ts#L22-L25 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 ed3c8a63d2..acd95d38ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a document. // @@ -74,7 +74,6 @@ package delete import ( - gobytes "bytes" "context" "encoding/json" "errors" @@ -82,6 +81,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -329,7 +329,8 @@ func (r Delete) Do(providedCtx context.Context) (*Response, error) { } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{404}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -341,42 +342,6 @@ func (r Delete) Do(providedCtx context.Context) (*Response, error) { return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { diff --git a/typedapi/core/delete/response.go b/typedapi/core/delete/response.go index bf679d6c03..095466f440 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/delete/DeleteResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/delete/DeleteResponse.ts#L22-L35 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 75e42422b7..6b41675842 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete documents. // diff --git a/typedapi/core/deletebyquery/request.go b/typedapi/core/deletebyquery/request.go index 5a238a1130..8451b27175 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletebyquery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L314 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d54c3bb81b..524f4522f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f8bd9edd1c..c1f386fbb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Throttle a delete by query operation. // diff --git a/typedapi/core/deletebyqueryrethrottle/response.go b/typedapi/core/deletebyqueryrethrottle/response.go index 7d78e21407..3b0dfe9d01 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletebyqueryrethrottle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package deletebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L25 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 cb0fe75a35..aea46ebc6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2c476e6c59..2f10c93eb8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletescript // Response holds the response body struct for the package deletescript // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L25 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 f0994f5452..916052a0a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check a document. // diff --git a/typedapi/core/existssource/exists_source.go b/typedapi/core/existssource/exists_source.go index 563282619d..3628ef34cb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check for a document source. // diff --git a/typedapi/core/explain/explain.go b/typedapi/core/explain/explain.go index f79b514196..f797797ec2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 cd7ca0c7a3..38a64046bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explain @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/explain/ExplainRequest.ts#L26-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 17bbe8bccf..2c63cbe055 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explain @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/explain/ExplainResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 829cddbbd8..ae91efc5c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the field capabilities. // diff --git a/typedapi/core/fieldcaps/request.go b/typedapi/core/fieldcaps/request.go index eebae146c2..ab5aee7340 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package fieldcaps @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2ac90bc17d..568b341794 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package fieldcaps @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 59b039d701..7f726e411e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a document by its ID. // @@ -95,7 +95,6 @@ package get import ( - gobytes "bytes" "context" "encoding/json" "errors" @@ -103,6 +102,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -370,7 +370,8 @@ func (r Get) Do(providedCtx context.Context) (*Response, error) { } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{404}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -382,42 +383,6 @@ func (r Get) Do(providedCtx context.Context) (*Response, error) { return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { @@ -502,7 +467,7 @@ func (r *Get) _index(index string) *Get { } // ForceSyntheticSource Indicates whether the request forces synthetic `_source`. -// Use this paramater to test if the mapping supports synthetic `_source` and to +// Use this parameter to test if the mapping supports synthetic `_source` and to // get a sense of the worst case performance. // Fetches with this parameter enabled will be slower than enabling synthetic // source natively in the index. @@ -592,8 +557,8 @@ func (r *Get) SourceIncludes_(fields ...string) *Get { // StoredFields A comma-separated list of stored fields to return as part of a hit. // If no fields are specified, no stored fields are included in the response. // If this field is specified, the `_source` parameter defaults to `false`. -// Only leaf fields can be retrieved with the `stored_field` option. -// Object fields can't be returned;​if specified, the request fails. +// Only leaf fields can be retrieved with the `stored_fields` option. +// Object fields can't be returned; if specified, the request fails. // API name: stored_fields func (r *Get) StoredFields(fields ...string) *Get { r.values.Set("stored_fields", strings.Join(fields, ",")) diff --git a/typedapi/core/get/response.go b/typedapi/core/get/response.go index b4445a4650..f7cf60a149 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get/GetResponse.ts#L23-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/get/GetResponse.ts#L23-L35 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 4cf5728ccb..86b4048fd7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 f522bc9574..e878654055 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getscript @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscript // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script/GetScriptResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f37fb174be..65f1eacd94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get script contexts. // diff --git a/typedapi/core/getscriptcontext/response.go b/typedapi/core/getscriptcontext/response.go index c0c39375fd..f8701c2cc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getscriptcontext @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptcontext // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ccb7b241d7..36ae178ecf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get script languages. // diff --git a/typedapi/core/getscriptlanguages/response.go b/typedapi/core/getscriptlanguages/response.go index 7544eb0531..0b88c7808a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getscriptlanguages @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getscriptlanguages // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ef7fa288b8..3d854423fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a document's source. // @@ -409,14 +409,6 @@ func (r *GetSource) SourceIncludes_(fields ...string) *GetSource { return r } -// StoredFields A comma-separated list of stored fields to return as part of a hit. -// API name: stored_fields -func (r *GetSource) StoredFields(fields ...string) *GetSource { - r.values.Set("stored_fields", strings.Join(fields, ",")) - - return r -} - // Version The version number for concurrency control. // It must match the current version of the document for the request to succeed. // API name: version diff --git a/typedapi/core/getsource/response.go b/typedapi/core/getsource/response.go index 0f6bece133..d7ef68866c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsource @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsource // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_source/SourceResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e121d1054f..f53b05e0d3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e78299f77c..6791f398f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package healthreport @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package healthreport // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fbc35b3fd9..8a943e2e16 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a document in an index. // @@ -880,6 +880,15 @@ func (r *Index) RequireAlias(requirealias bool) *Index { return r } +// RequireDataStream If `true`, the request's actions must target a data stream (existing or to be +// created). +// API name: require_data_stream +func (r *Index) RequireDataStream(requiredatastream bool) *Index { + r.values.Set("require_data_stream", strconv.FormatBool(requiredatastream)) + + 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/index/request.go b/typedapi/core/index/request.go index 6cbd240e7c..fa1067a161 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package index @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/index/IndexRequest.ts#L35-L268 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/index/IndexRequest.ts#L35-L273 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/index/response.go b/typedapi/core/index/response.go index 37210a22ca..f0657f6d4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package index @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/index/IndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/index/IndexResponse.ts#L22-L25 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 45135fc0ea..6c92b8f64c 100644 --- a/typedapi/core/info/info.go +++ b/typedapi/core/info/info.go @@ -16,10 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get cluster info. // Get basic build, version, and cluster information. +// ::: In Serverless, this API is retained for backward compatibility only. Some +// response fields, such as the version number, should be ignored. package info import ( @@ -71,6 +73,8 @@ func NewInfoFunc(tp elastictransport.Interface) NewInfo { // Get cluster info. // Get basic build, version, and cluster information. +// ::: In Serverless, this API is retained for backward compatibility only. Some +// response fields, such as the version number, should be ignored. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info func New(tp elastictransport.Interface) *Info { diff --git a/typedapi/core/info/response.go b/typedapi/core/info/response.go index f78dd62a4e..0fc2a761ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 type Response struct { // ClusterName The responding cluster's name. diff --git a/typedapi/core/mget/mget.go b/typedapi/core/mget/mget.go index 2b8f2a3601..fc171ce54b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get multiple documents. // diff --git a/typedapi/core/mget/request.go b/typedapi/core/mget/request.go index 4a03d5e5d6..a428f27c00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mget @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mget/MultiGetRequest.ts#L25-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f04701d003..3535c72c85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mget @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mget/MultiGetResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 56aa5abd2c..2f3af67f48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run multiple searches. // diff --git a/typedapi/core/msearch/request.go b/typedapi/core/msearch/request.go index 627c6ad9cf..d1fb69f4a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/MultiSearchRequest.ts#L25-L136 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/MultiSearchRequest.ts#L25-L140 type Request = []types.MsearchRequestItem diff --git a/typedapi/core/msearch/response.go b/typedapi/core/msearch/response.go index 9fc1614baf..acc4f1434b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearch @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/MultiSearchResponse.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/MultiSearchResponse.ts#L25-L28 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 6797cce960..0ef1751c69 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run multiple templated searches. // diff --git a/typedapi/core/msearchtemplate/request.go b/typedapi/core/msearchtemplate/request.go index 03257ca5f2..40df5440f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearchtemplate @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bda7dce155..e51889796c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearchtemplate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L33 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 eadcb30154..377be45256 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get multiple term vectors. // diff --git a/typedapi/core/mtermvectors/request.go b/typedapi/core/mtermvectors/request.go index 5098e641ed..e27af241d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mtermvectors @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d55b24e2a9..efd7b86d83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mtermvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 098ab9a0d0..39095f4554 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Open a point in time. // @@ -474,8 +474,7 @@ func (r *OpenPointInTime) Routing(routing string) *OpenPointInTime { // ExpandWildcards The type of index that wildcard patterns can match. // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. -// It supports comma-separated values, such as `open,hidden`. Valid values are: -// `all`, `open`, `closed`, `hidden`, `none`. +// It supports comma-separated values, such as `open,hidden`. // API name: expand_wildcards func (r *OpenPointInTime) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *OpenPointInTime { tmp := []string{} diff --git a/typedapi/core/openpointintime/request.go b/typedapi/core/openpointintime/request.go index 9b46cfee73..21e84b2aac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package openpointintime @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts#L26-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f5c0bbff17..fce6dd9518 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package openpointintime @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1c3eb25b2..796afd303f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2026c3562a..d2a6410f64 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a3b0d7ba53..cb3e2b7b81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putscript @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/put_script/PutScriptRequest.ts#L25-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 86ac9d7188..1926bab20d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putscript // Response holds the response body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/put_script/PutScriptResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/put_script/PutScriptResponse.ts#L22-L25 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 a381ea617b..e4a24a7eb3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Evaluate ranked search results. // diff --git a/typedapi/core/rankeval/request.go b/typedapi/core/rankeval/request.go index 732969de30..b41663d6a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rankeval @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/RankEvalRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e70c31e6c9..a64caf6d75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rankeval @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 417e3a5c6a..382cff9cb6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Reindex documents. // @@ -86,219 +86,7 @@ // has successfully indexed `max_docs` documents into the target or it has gone // through every document in the source query. // -// NOTE: The reindex API makes no effort to handle ID collisions. -// The last document written will "win" but the order isn't usually predictable -// so it is not a good idea to rely on this behavior. -// Instead, make sure that IDs are unique by using a script. -// -// **Running reindex asynchronously** -// -// If the request contains `wait_for_completion=false`, Elasticsearch performs -// some preflight checks, launches the request, and returns a task you can use -// to cancel or get the status of the task. -// Elasticsearch creates a record of this task as a document at -// `_tasks/`. -// -// **Reindex from multiple sources** -// -// If you have many sources to reindex it is generally better to reindex them -// one at a time rather than using a glob pattern to pick up multiple sources. -// That way you can resume the process if there are any errors by removing the -// partially completed source and starting over. -// It also makes parallelizing the process fairly simple: split the list of -// sources to reindex and run each list in parallel. -// -// For example, you can use a bash script like this: -// -// ``` -// for index in i1 i2 i3 i4 i5; do -// -// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -// -// -d'{ -// "source": { -// "index": "'$index'" -// }, -// "dest": { -// "index": "'$index'-reindexed" -// } -// }' -// -// done -// ``` -// -// **Throttling** -// -// Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, -// for example) to throttle the rate at which reindex issues batches of index -// operations. -// Requests are throttled by padding each batch with a wait time. -// To turn off throttling, set `requests_per_second` to `-1`. -// -// The throttling is done by waiting between batches so that the scroll that -// reindex uses internally can be given a timeout that takes into account the -// padding. -// The padding time is the difference between the batch size divided by the -// `requests_per_second` and the time spent writing. -// By default the batch size is `1000`, so if `requests_per_second` is set to -// `500`: -// -// ``` -// target_time = 1000 / 500 per second = 2 seconds -// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds -// ``` -// -// Since the batch is issued as a single bulk request, large batch sizes cause -// Elasticsearch to create many requests and then wait for a while before -// starting the next set. -// This is "bursty" instead of "smooth". -// -// **Slicing** -// -// Reindex supports sliced scroll to parallelize the reindexing process. -// This parallelization can improve efficiency and provide a convenient way to -// break the request down into smaller parts. -// -// NOTE: Reindexing from remote clusters does not support manual or automatic -// slicing. -// -// You can slice a reindex request manually by providing a slice ID and total -// number of slices to each request. -// You can also let reindex automatically parallelize by using sliced scroll to -// slice on `_id`. -// The `slices` parameter specifies the number of slices to use. -// -// Adding `slices` to the reindex request just automates the manual process, -// creating sub-requests which means it has some quirks: -// -// * You can see these requests in the tasks API. These sub-requests are "child" -// tasks of the task for the request with slices. -// * Fetching the status of the task for the request with `slices` only contains -// the status of completed slices. -// * These sub-requests are individually addressable for things like -// cancellation and rethrottling. -// * Rethrottling the request with `slices` will rethrottle the unfinished -// sub-request proportionally. -// * Canceling the request with `slices` will cancel each sub-request. -// * Due to the nature of `slices`, each sub-request won't get a perfectly even -// portion of the documents. All documents will be addressed, but some slices -// may be larger than others. Expect larger slices to have a more even -// distribution. -// * Parameters like `requests_per_second` and `max_docs` on a request with -// `slices` are distributed proportionally to each sub-request. Combine that -// with the previous point about distribution being uneven and you should -// conclude that using `max_docs` with `slices` might not result in exactly -// `max_docs` documents being reindexed. -// * Each sub-request gets a slightly different snapshot of the source, though -// these are all taken at approximately the same time. -// -// If slicing automatically, setting `slices` to `auto` will choose a reasonable -// number for most indices. -// If slicing manually or otherwise tuning automatic slicing, use the following -// guidelines. -// -// Query performance is most efficient when the number of slices is equal to the -// number of shards in the index. -// If that number is large (for example, `500`), choose a lower number as too -// many slices will hurt performance. -// Setting slices higher than the number of shards generally does not improve -// efficiency and adds overhead. -// -// Indexing performance scales linearly across available resources with the -// number of slices. -// -// Whether query or indexing performance dominates the runtime depends on the -// documents being reindexed and cluster resources. -// -// **Modify documents during reindexing** -// -// Like `_update_by_query`, reindex operations support a script that modifies -// the document. -// Unlike `_update_by_query`, the script is allowed to modify the document's -// metadata. -// -// Just as in `_update_by_query`, you can set `ctx.op` to change the operation -// that is run on the destination. -// For example, set `ctx.op` to `noop` if your script decides that the document -// doesn’t have to be indexed in the destination. This "no operation" will be -// reported in the `noop` counter in the response body. -// Set `ctx.op` to `delete` if your script decides that the document must be -// deleted from the destination. -// The deletion will be reported in the `deleted` counter in the response body. -// Setting `ctx.op` to anything else will return an error, as will setting any -// other field in `ctx`. -// -// Think of the possibilities! Just be careful; you are able to change: -// -// * `_id` -// * `_index` -// * `_version` -// * `_routing` -// -// Setting `_version` to `null` or clearing it from the `ctx` map is just like -// not sending the version in an indexing request. -// It will cause the document to be overwritten in the destination regardless of -// the version on the target or the version type you use in the reindex API. -// -// **Reindex from remote** -// -// Reindex supports reindexing from a remote Elasticsearch cluster. -// The `host` parameter must contain a scheme, host, port, and optional path. -// The `username` and `password` parameters are optional and when they are -// present the reindex operation will connect to the remote Elasticsearch node -// using basic authentication. -// Be sure to use HTTPS when using basic authentication or the password will be -// sent in plain text. -// There are a range of settings available to configure the behavior of the -// HTTPS connection. -// -// When using Elastic Cloud, it is also possible to authenticate against the -// remote cluster through the use of a valid API key. -// Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` -// setting. -// It can be set to a comma delimited list of allowed remote host and port -// combinations. -// Scheme is ignored; only the host and port are used. -// For example: -// -// ``` -// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, -// localhost:*"] -// ``` -// -// The list of allowed hosts must be configured on any nodes that will -// coordinate the reindex. -// This feature should work with remote clusters of any version of -// Elasticsearch. -// This should enable you to upgrade from any version of Elasticsearch to the -// current version by reindexing from a cluster of the old version. -// -// WARNING: Elasticsearch does not support forward compatibility across major -// versions. -// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. -// -// To enable queries sent to older versions of Elasticsearch, the `query` -// parameter is sent directly to the remote host without validation or -// modification. -// -// NOTE: Reindexing from remote clusters does not support manual or automatic -// slicing. -// -// Reindexing from a remote server uses an on-heap buffer that defaults to a -// maximum size of 100mb. -// If the remote index includes very large documents you'll need to use a -// smaller batch size. -// It is also possible to set the socket read timeout on the remote connection -// with the `socket_timeout` field and the connection timeout with the -// `connect_timeout` field. -// Both default to 30 seconds. -// -// **Configuring SSL parameters** -// -// Reindex from remote supports configurable SSL settings. -// These must be specified in the `elasticsearch.yml` file, with the exception -// of the secure settings, which you add in the Elasticsearch keystore. -// It is not possible to configure SSL in the body of the reindex request. +// Refer to the linked documentation for examples of how to reindex documents. package reindex import ( @@ -422,219 +210,7 @@ func NewReindexFunc(tp elastictransport.Interface) NewReindex { // has successfully indexed `max_docs` documents into the target or it has gone // through every document in the source query. // -// NOTE: The reindex API makes no effort to handle ID collisions. -// The last document written will "win" but the order isn't usually predictable -// so it is not a good idea to rely on this behavior. -// Instead, make sure that IDs are unique by using a script. -// -// **Running reindex asynchronously** -// -// If the request contains `wait_for_completion=false`, Elasticsearch performs -// some preflight checks, launches the request, and returns a task you can use -// to cancel or get the status of the task. -// Elasticsearch creates a record of this task as a document at -// `_tasks/`. -// -// **Reindex from multiple sources** -// -// If you have many sources to reindex it is generally better to reindex them -// one at a time rather than using a glob pattern to pick up multiple sources. -// That way you can resume the process if there are any errors by removing the -// partially completed source and starting over. -// It also makes parallelizing the process fairly simple: split the list of -// sources to reindex and run each list in parallel. -// -// For example, you can use a bash script like this: -// -// ``` -// for index in i1 i2 i3 i4 i5; do -// -// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -// -// -d'{ -// "source": { -// "index": "'$index'" -// }, -// "dest": { -// "index": "'$index'-reindexed" -// } -// }' -// -// done -// ``` -// -// **Throttling** -// -// Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, -// for example) to throttle the rate at which reindex issues batches of index -// operations. -// Requests are throttled by padding each batch with a wait time. -// To turn off throttling, set `requests_per_second` to `-1`. -// -// The throttling is done by waiting between batches so that the scroll that -// reindex uses internally can be given a timeout that takes into account the -// padding. -// The padding time is the difference between the batch size divided by the -// `requests_per_second` and the time spent writing. -// By default the batch size is `1000`, so if `requests_per_second` is set to -// `500`: -// -// ``` -// target_time = 1000 / 500 per second = 2 seconds -// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds -// ``` -// -// Since the batch is issued as a single bulk request, large batch sizes cause -// Elasticsearch to create many requests and then wait for a while before -// starting the next set. -// This is "bursty" instead of "smooth". -// -// **Slicing** -// -// Reindex supports sliced scroll to parallelize the reindexing process. -// This parallelization can improve efficiency and provide a convenient way to -// break the request down into smaller parts. -// -// NOTE: Reindexing from remote clusters does not support manual or automatic -// slicing. -// -// You can slice a reindex request manually by providing a slice ID and total -// number of slices to each request. -// You can also let reindex automatically parallelize by using sliced scroll to -// slice on `_id`. -// The `slices` parameter specifies the number of slices to use. -// -// Adding `slices` to the reindex request just automates the manual process, -// creating sub-requests which means it has some quirks: -// -// * You can see these requests in the tasks API. These sub-requests are "child" -// tasks of the task for the request with slices. -// * Fetching the status of the task for the request with `slices` only contains -// the status of completed slices. -// * These sub-requests are individually addressable for things like -// cancellation and rethrottling. -// * Rethrottling the request with `slices` will rethrottle the unfinished -// sub-request proportionally. -// * Canceling the request with `slices` will cancel each sub-request. -// * Due to the nature of `slices`, each sub-request won't get a perfectly even -// portion of the documents. All documents will be addressed, but some slices -// may be larger than others. Expect larger slices to have a more even -// distribution. -// * Parameters like `requests_per_second` and `max_docs` on a request with -// `slices` are distributed proportionally to each sub-request. Combine that -// with the previous point about distribution being uneven and you should -// conclude that using `max_docs` with `slices` might not result in exactly -// `max_docs` documents being reindexed. -// * Each sub-request gets a slightly different snapshot of the source, though -// these are all taken at approximately the same time. -// -// If slicing automatically, setting `slices` to `auto` will choose a reasonable -// number for most indices. -// If slicing manually or otherwise tuning automatic slicing, use the following -// guidelines. -// -// Query performance is most efficient when the number of slices is equal to the -// number of shards in the index. -// If that number is large (for example, `500`), choose a lower number as too -// many slices will hurt performance. -// Setting slices higher than the number of shards generally does not improve -// efficiency and adds overhead. -// -// Indexing performance scales linearly across available resources with the -// number of slices. -// -// Whether query or indexing performance dominates the runtime depends on the -// documents being reindexed and cluster resources. -// -// **Modify documents during reindexing** -// -// Like `_update_by_query`, reindex operations support a script that modifies -// the document. -// Unlike `_update_by_query`, the script is allowed to modify the document's -// metadata. -// -// Just as in `_update_by_query`, you can set `ctx.op` to change the operation -// that is run on the destination. -// For example, set `ctx.op` to `noop` if your script decides that the document -// doesn’t have to be indexed in the destination. This "no operation" will be -// reported in the `noop` counter in the response body. -// Set `ctx.op` to `delete` if your script decides that the document must be -// deleted from the destination. -// The deletion will be reported in the `deleted` counter in the response body. -// Setting `ctx.op` to anything else will return an error, as will setting any -// other field in `ctx`. -// -// Think of the possibilities! Just be careful; you are able to change: -// -// * `_id` -// * `_index` -// * `_version` -// * `_routing` -// -// Setting `_version` to `null` or clearing it from the `ctx` map is just like -// not sending the version in an indexing request. -// It will cause the document to be overwritten in the destination regardless of -// the version on the target or the version type you use in the reindex API. -// -// **Reindex from remote** -// -// Reindex supports reindexing from a remote Elasticsearch cluster. -// The `host` parameter must contain a scheme, host, port, and optional path. -// The `username` and `password` parameters are optional and when they are -// present the reindex operation will connect to the remote Elasticsearch node -// using basic authentication. -// Be sure to use HTTPS when using basic authentication or the password will be -// sent in plain text. -// There are a range of settings available to configure the behavior of the -// HTTPS connection. -// -// When using Elastic Cloud, it is also possible to authenticate against the -// remote cluster through the use of a valid API key. -// Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` -// setting. -// It can be set to a comma delimited list of allowed remote host and port -// combinations. -// Scheme is ignored; only the host and port are used. -// For example: -// -// ``` -// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, -// localhost:*"] -// ``` -// -// The list of allowed hosts must be configured on any nodes that will -// coordinate the reindex. -// This feature should work with remote clusters of any version of -// Elasticsearch. -// This should enable you to upgrade from any version of Elasticsearch to the -// current version by reindexing from a cluster of the old version. -// -// WARNING: Elasticsearch does not support forward compatibility across major -// versions. -// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. -// -// To enable queries sent to older versions of Elasticsearch, the `query` -// parameter is sent directly to the remote host without validation or -// modification. -// -// NOTE: Reindexing from remote clusters does not support manual or automatic -// slicing. -// -// Reindexing from a remote server uses an on-heap buffer that defaults to a -// maximum size of 100mb. -// If the remote index includes very large documents you'll need to use a -// smaller batch size. -// It is also possible to set the socket read timeout on the remote connection -// with the `socket_timeout` field and the connection timeout with the -// `connect_timeout` field. -// Both default to 30 seconds. -// -// **Configuring SSL parameters** -// -// Reindex from remote supports configurable SSL settings. -// These must be specified in the `elasticsearch.yml` file, with the exception -// of the secure settings, which you add in the Elasticsearch keystore. -// It is not possible to configure SSL in the body of the reindex request. +// Refer to the linked documentation for examples of how to reindex documents. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex func New(tp elastictransport.Interface) *Reindex { diff --git a/typedapi/core/reindex/request.go b/typedapi/core/reindex/request.go index 516e88ab3f..120354b1ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reindex @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex/ReindexRequest.ts#L27-L309 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/reindex/ReindexRequest.ts#L27-L178 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 4eaed35995..5fb7a70c2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex/ReindexResponse.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 01aa0eb651..bdc7031598 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Throttle a reindex operation. // diff --git a/typedapi/core/reindexrethrottle/response.go b/typedapi/core/reindexrethrottle/response.go index b12a085486..7b4807969c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reindexrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reindexrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7f4b3dc951..f69749e34c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Render a search template. // diff --git a/typedapi/core/rendersearchtemplate/request.go b/typedapi/core/rendersearchtemplate/request.go index a9ceb92907..5a9696620c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rendersearchtemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L77 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 2cd2340b21..3066ee3db8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rendersearchtemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aa9703b831..7d71972339 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package scriptspainlessexecute @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d112683759..083d6a413e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package scriptspainlessexecute @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 97446a0cdc..ac5732f21b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a script. // diff --git a/typedapi/core/scroll/request.go b/typedapi/core/scroll/request.go index cf8d1e8359..7124351c27 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package scroll @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scroll/ScrollRequest.ts#L24-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c5cd1d20b6..b3a4f9f224 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package scroll @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scroll/ScrollResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/scroll/ScrollResponse.ts#L22-L25 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 e766bf7c7c..9000f71a03 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a scrolling search. // diff --git a/typedapi/core/search/request.go b/typedapi/core/search/request.go index 1ee6121f98..fa4689bb90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/SearchRequest.ts#L53-L584 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/SearchRequest.ts#L53-L588 type Request struct { // Aggregations Defines the aggregations that are run as part of the search request. diff --git a/typedapi/core/search/response.go b/typedapi/core/search/response.go index e2e0797569..45656db236 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/SearchResponse.ts#L34-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/SearchResponse.ts#L34-L37 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 16c528e1dd..fd5bbd255d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a search. // @@ -555,11 +555,12 @@ func (r *Search) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Sea // method. // * `_prefer_nodes:,` to if possible, run the search on the // specified nodes IDs. If not, select shards using the default method. -// `_shards:,` to run the search only on the specified shards. You -// can combine this value with other `preference` values. However, the `_shards` -// value must come first. For example: `_shards:2,3|_local`. -// `` (any string that does not start with `_`) to route searches -// with the same `` to the same shards in the same order. +// * `_shards:,` to run the search only on the specified shards. +// You can combine this value with other `preference` values. However, the +// `_shards` value must come first. For example: `_shards:2,3|_local`. +// * `` (any string that does not start with `_`) to route +// searches with the same `` to the same shards in the same +// order. // API name: preference func (r *Search) Preference(preference string) *Search { r.values.Set("preference", preference) diff --git a/typedapi/core/searchmvt/request.go b/typedapi/core/searchmvt/request.go index 29016ace7d..2251d3eab9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package searchmvt @@ -35,7 +35,7 @@ import ( // Request holds the request body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L373 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L334 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 db049c402e..d9283eca2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package searchmvt // Response holds the response body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aedfb5198a..4203560d4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Search a vector tile. // @@ -41,58 +41,6 @@ // containing suggested geometry labels, so that, for example, multi-polygons // will have only one label. // -// For example, Elasticsearch may translate a vector tile search API request -// with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of -// `true` into the following search -// -// ``` -// GET my-index/_search -// -// { -// "size": 10000, -// "query": { -// "geo_bounding_box": { -// "my-geo-field": { -// "top_left": { -// "lat": -40.979898069620134, -// "lon": -45 -// }, -// "bottom_right": { -// "lat": -66.51326044311186, -// "lon": 0 -// } -// } -// } -// }, -// "aggregations": { -// "grid": { -// "geotile_grid": { -// "field": "my-geo-field", -// "precision": 11, -// "size": 65536, -// "bounds": { -// "top_left": { -// "lat": -40.979898069620134, -// "lon": -45 -// }, -// "bottom_right": { -// "lat": -66.51326044311186, -// "lon": 0 -// } -// } -// } -// }, -// "bounds": { -// "geo_bounds": { -// "field": "my-geo-field", -// "wrap_longitude": false -// } -// } -// } -// } -// -// ``` -// // The API returns results as a binary Mapbox vector tile. // Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the // tile contains three layers: @@ -187,6 +135,11 @@ // of tile bins at each zoom level. // Elasticsearch uses the H3 resolution that is closest to the corresponding // geotile density. +// +// Learn how to use the vector tile search API with practical examples in the +// [Vector tile search +// examples](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/vector-tile-search) +// guide. package searchmvt import ( @@ -294,58 +247,6 @@ func NewSearchMvtFunc(tp elastictransport.Interface) NewSearchMvt { // containing suggested geometry labels, so that, for example, multi-polygons // will have only one label. // -// For example, Elasticsearch may translate a vector tile search API request -// with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of -// `true` into the following search -// -// ``` -// GET my-index/_search -// -// { -// "size": 10000, -// "query": { -// "geo_bounding_box": { -// "my-geo-field": { -// "top_left": { -// "lat": -40.979898069620134, -// "lon": -45 -// }, -// "bottom_right": { -// "lat": -66.51326044311186, -// "lon": 0 -// } -// } -// } -// }, -// "aggregations": { -// "grid": { -// "geotile_grid": { -// "field": "my-geo-field", -// "precision": 11, -// "size": 65536, -// "bounds": { -// "top_left": { -// "lat": -40.979898069620134, -// "lon": -45 -// }, -// "bottom_right": { -// "lat": -66.51326044311186, -// "lon": 0 -// } -// } -// } -// }, -// "bounds": { -// "geo_bounds": { -// "field": "my-geo-field", -// "wrap_longitude": false -// } -// } -// } -// } -// -// ``` -// // The API returns results as a binary Mapbox vector tile. // Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the // tile contains three layers: @@ -441,6 +342,11 @@ func NewSearchMvtFunc(tp elastictransport.Interface) NewSearchMvt { // Elasticsearch uses the H3 resolution that is closest to the corresponding // geotile density. // +// Learn how to use the vector tile search API with practical examples in the +// [Vector tile search +// examples](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/vector-tile-search) +// guide. +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-mvt func New(tp elastictransport.Interface) *SearchMvt { r := &SearchMvt{ diff --git a/typedapi/core/searchshards/response.go b/typedapi/core/searchshards/response.go index e5c075168a..cb920ab8ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package searchshards @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package searchshards // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_shards/SearchShardsResponse.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 926ecf31a8..c5cc0d7189 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the search shards. // @@ -340,7 +340,6 @@ func (r *SearchShards) AllowNoIndices(allownoindices bool) *SearchShards { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *SearchShards) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *SearchShards { tmp := []string{} diff --git a/typedapi/core/searchtemplate/request.go b/typedapi/core/searchtemplate/request.go index bd20b15095..f2e9f7d7e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package searchtemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_template/SearchTemplateRequest.ts#L33-L154 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search_template/SearchTemplateRequest.ts#L33-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 8d87620e94..9af1e35e38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package searchtemplate @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 01baf913d9..6e46364abc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a search with a search template. package searchtemplate @@ -348,7 +348,6 @@ func (r *SearchTemplate) CcsMinimizeRoundtrips(ccsminimizeroundtrips bool) *Sear // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *SearchTemplate) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *SearchTemplate { tmp := []string{} diff --git a/typedapi/core/termsenum/request.go b/typedapi/core/termsenum/request.go index f02ad3c880..f68ce30741 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package termsenum @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 36b9c0500b..34285a921c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package termsenum @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c20739fb6d..9f76e055c0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get terms in an index. // diff --git a/typedapi/core/termvectors/request.go b/typedapi/core/termvectors/request.go index a485265d9f..b3e8755bb0 100644 --- a/typedapi/core/termvectors/request.go +++ b/typedapi/core/termvectors/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package termvectors @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/TermVectorsRequest.ts#L33-L239 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/TermVectorsRequest.ts#L33-L241 type Request struct { // Doc An artificial document (a document not present in the index) for which you diff --git a/typedapi/core/termvectors/response.go b/typedapi/core/termvectors/response.go index d620cb000c..e60df67aaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package termvectors @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 52a0fd20ce..f728a1a65b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get term vector information. // @@ -72,6 +72,8 @@ // By default, when requesting term vectors of artificial documents, a shard to // get the statistics from is randomly selected. // Use `routing` only to hit a particular shard. +// Refer to the linked documentation for detailed examples of how to use this +// API. package termvectors import ( @@ -192,6 +194,8 @@ func NewTermvectorsFunc(tp elastictransport.Interface) NewTermvectors { // By default, when requesting term vectors of artificial documents, a shard to // get the statistics from is randomly selected. // Use `routing` only to hit a particular shard. +// Refer to the linked documentation for detailed examples of how to use this +// API. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-termvectors func New(tp elastictransport.Interface) *Termvectors { diff --git a/typedapi/core/update/request.go b/typedapi/core/update/request.go index 3592813005..88a3ae0338 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package update @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update/UpdateRequest.ts#L38-L194 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/update/UpdateRequest.ts#L38-L196 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 8f41618a98..09ca587433 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package update @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update/UpdateResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/update/UpdateResponse.ts#L27-L30 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 391786453c..49ab687b33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a document. // @@ -43,6 +43,8 @@ // In addition to `_source`, you can access the following variables through the // `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the // current timestamp). +// For usage examples such as partial updates, upserts, and scripted updates, +// see the External documentation. package update import ( @@ -136,6 +138,8 @@ func NewUpdateFunc(tp elastictransport.Interface) NewUpdate { // In addition to `_source`, you can access the following variables through the // `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the // current timestamp). +// For usage examples such as partial updates, upserts, and scripted updates, +// see the External documentation. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update func New(tp elastictransport.Interface) *Update { diff --git a/typedapi/core/updatebyquery/request.go b/typedapi/core/updatebyquery/request.go index 9d9b60f20f..bf13b1099f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatebyquery @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L340 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L349 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 a6322ba342..33af53127a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatebyquery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 56ff0d32bf..5862af2133 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update documents. // Updates documents that match the specified query. @@ -60,6 +60,40 @@ // Any update requests that completed successfully still stick, they are not // rolled back. // +// **Refreshing shards** +// +// Specifying the `refresh` parameter refreshes all shards once the request +// completes. +// This is different to the update API's `refresh` parameter, which causes only +// the shard +// that received the request to be refreshed. Unlike the update API, it does not +// support +// `wait_for`. +// +// **Running update by query asynchronously** +// +// If the request contains `wait_for_completion=false`, Elasticsearch +// performs some preflight checks, launches the request, and returns a +// [task](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks) +// you can use to cancel or get the status of the task. +// Elasticsearch creates a record of this task as a document at +// `.tasks/task/${taskId}`. +// +// **Waiting for active shards** +// +// `wait_for_active_shards` controls how many copies of a shard must be active +// before proceeding with the request. See +// [`wait_for_active_shards`](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create#operation-create-wait_for_active_shards) +// for details. `timeout` controls how long each write request waits for +// unavailable +// shards to become available. Both work exactly the way they work in the +// [Bulk +// API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk). +// Update by query uses scrolled searches, so you can also +// specify the `scroll` parameter to control how long it keeps the search +// context +// alive, for example `?scroll=10m`. The default is 5 minutes. +// // **Throttling update requests** // // To control the rate at which update by query issues batches of update @@ -133,28 +167,8 @@ // // Whether query or update performance dominates the runtime depends on the // documents being reindexed and cluster resources. -// -// **Update the document source** -// -// Update by query supports scripts to update the document source. -// As with the update API, you can set `ctx.op` to change the operation that is -// performed. -// -// Set `ctx.op = "noop"` if your script decides that it doesn't have to make any -// changes. -// The update by query operation skips updating the document and increments the -// `noop` counter. -// -// Set `ctx.op = "delete"` if your script decides that the document should be -// deleted. -// The update by query operation deletes the document and increments the -// `deleted` counter. -// -// Update by query supports only `index`, `noop`, and `delete`. -// Setting `ctx.op` to anything else is an error. -// Setting any other field in `ctx` is an error. -// This API enables you to only modify the source of matching documents; you -// cannot move them. +// Refer to the linked documentation for examples of how to update documents +// using the `_update_by_query` API: package updatebyquery import ( @@ -263,6 +277,40 @@ func NewUpdateByQueryFunc(tp elastictransport.Interface) NewUpdateByQuery { // Any update requests that completed successfully still stick, they are not // rolled back. // +// **Refreshing shards** +// +// Specifying the `refresh` parameter refreshes all shards once the request +// completes. +// This is different to the update API's `refresh` parameter, which causes only +// the shard +// that received the request to be refreshed. Unlike the update API, it does not +// support +// `wait_for`. +// +// **Running update by query asynchronously** +// +// If the request contains `wait_for_completion=false`, Elasticsearch +// performs some preflight checks, launches the request, and returns a +// [task](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks) +// you can use to cancel or get the status of the task. +// Elasticsearch creates a record of this task as a document at +// `.tasks/task/${taskId}`. +// +// **Waiting for active shards** +// +// `wait_for_active_shards` controls how many copies of a shard must be active +// before proceeding with the request. See +// [`wait_for_active_shards`](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create#operation-create-wait_for_active_shards) +// for details. `timeout` controls how long each write request waits for +// unavailable +// shards to become available. Both work exactly the way they work in the +// [Bulk +// API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk). +// Update by query uses scrolled searches, so you can also +// specify the `scroll` parameter to control how long it keeps the search +// context +// alive, for example `?scroll=10m`. The default is 5 minutes. +// // **Throttling update requests** // // To control the rate at which update by query issues batches of update @@ -336,28 +384,8 @@ func NewUpdateByQueryFunc(tp elastictransport.Interface) NewUpdateByQuery { // // Whether query or update performance dominates the runtime depends on the // documents being reindexed and cluster resources. -// -// **Update the document source** -// -// Update by query supports scripts to update the document source. -// As with the update API, you can set `ctx.op` to change the operation that is -// performed. -// -// Set `ctx.op = "noop"` if your script decides that it doesn't have to make any -// changes. -// The update by query operation skips updating the document and increments the -// `noop` counter. -// -// Set `ctx.op = "delete"` if your script decides that the document should be -// deleted. -// The update by query operation deletes the document and increments the -// `deleted` counter. -// -// Update by query supports only `index`, `noop`, and `delete`. -// Setting `ctx.op` to anything else is an error. -// Setting any other field in `ctx` is an error. -// This API enables you to only modify the source of matching documents; you -// cannot move them. +// Refer to the linked documentation for examples of how to update documents +// using the `_update_by_query` API: // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query func New(tp elastictransport.Interface) *UpdateByQuery { @@ -647,7 +675,6 @@ func (r *UpdateByQuery) Df(df string) *UpdateByQuery { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // It supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *UpdateByQuery) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *UpdateByQuery { tmp := []string{} diff --git a/typedapi/core/updatebyqueryrethrottle/response.go b/typedapi/core/updatebyqueryrethrottle/response.go index 814e5071a2..2ab6ea139c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatebyqueryrethrottle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 51b6767470..4ebee4bcfc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 fed9600956..21e2954a24 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0f1d80aeb6..96818dd43a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletedanglingindex // Response holds the response body struct for the package deletedanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L25 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 5283e3e0ae..b21c711bd1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Import a dangling index. // diff --git a/typedapi/danglingindices/importdanglingindex/response.go b/typedapi/danglingindices/importdanglingindex/response.go index 67480061de..5253300e34 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package importdanglingindex // Response holds the response body struct for the package importdanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L25 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 147b28b29d..65f59651e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the dangling indices. // diff --git a/typedapi/danglingindices/listdanglingindices/response.go b/typedapi/danglingindices/listdanglingindices/response.go index 108707c581..d25318af94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package listdanglingindices @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listdanglingindices // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a35191c136..b3133e137b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0a422f19b2..17ec8b5ce1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletepolicy // Response holds the response body struct for the package deletepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L25 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 618cff5ccc..368f3de524 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 544beec165..26e7dca864 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package executepolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 type Response struct { Status *types.ExecuteEnrichPolicyStatus `json:"status,omitempty"` Task types.TaskId `json:"task,omitempty"` diff --git a/typedapi/enrich/getpolicy/get_policy.go b/typedapi/enrich/getpolicy/get_policy.go index 50934a935a..d5981a0a14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0355ac0b90..75a5e71798 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bb3e2ec945..a91a579a16 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an enrich policy. // Creates an enrich policy. diff --git a/typedapi/enrich/putpolicy/request.go b/typedapi/enrich/putpolicy/request.go index bce4c1a1b3..2280ae1596 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putpolicy @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1f140f2fe2..b570c4395c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putpolicy // Response holds the response body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L25 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 e6aee7e07a..b36270f666 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fa81baabef..ac23ed62e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ff0140d480..7b408130eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6e422d9076..38ba141f9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/delete/EqlDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/eql/delete/EqlDeleteResponse.ts#L22-L25 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 7f16a42b49..4648ad4841 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2cbf7238ec..35139b0660 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/get/EqlGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/eql/get/EqlGetResponse.ts#L22-L25 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 9e54074143..532232ab97 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 70a66daee4..d0c007ec82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getstatus // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 af760a7f61..cb464fd773 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/search/EqlSearchRequest.ts#L28-L161 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/eql/search/EqlSearchRequest.ts#L28-L166 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 1a274fb910..32d46c3eb4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/search/EqlSearchResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/eql/search/EqlSearchResponse.ts#L22-L25 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 f9bfb602c9..88c199b701 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get EQL search results. // Returns search results for an Event Query Language (EQL) query. @@ -319,6 +319,8 @@ func (r *Search) _index(index string) *Search { return r } +// AllowNoIndices Whether to ignore if a wildcard indices expression resolves into no concrete +// indices. (This includes `_all` string or when no indices have been specified) // API name: allow_no_indices func (r *Search) AllowNoIndices(allownoindices bool) *Search { r.values.Set("allow_no_indices", strconv.FormatBool(allownoindices)) @@ -326,6 +328,8 @@ func (r *Search) AllowNoIndices(allownoindices bool) *Search { return r } +// ExpandWildcards Whether to expand wildcard expression to concrete indices that are open, +// closed or both. // API name: expand_wildcards func (r *Search) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Search { tmp := []string{} @@ -337,6 +341,15 @@ func (r *Search) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcar return r } +// CcsMinimizeRoundtrips Indicates whether network round-trips should be minimized as part of +// cross-cluster search requests execution +// API name: ccs_minimize_roundtrips +func (r *Search) CcsMinimizeRoundtrips(ccsminimizeroundtrips bool) *Search { + r.values.Set("ccs_minimize_roundtrips", strconv.FormatBool(ccsminimizeroundtrips)) + + return r +} + // IgnoreUnavailable If true, missing or closed indices are not included in the response. // API name: ignore_unavailable func (r *Search) IgnoreUnavailable(ignoreunavailable bool) *Search { diff --git a/typedapi/esdsl/access.go b/typedapi/esdsl/access.go index dcb7d4bd17..f1fa6110cc 100644 --- a/typedapi/esdsl/access.go +++ b/typedapi/esdsl/access.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/acknowledgestate.go b/typedapi/esdsl/acknowledgestate.go index a6e4c9f1b1..18e7592bc6 100644 --- a/typedapi/esdsl/acknowledgestate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/actionstatus.go b/typedapi/esdsl/actionstatus.go index e5b598b38c..3b5607f531 100644 --- a/typedapi/esdsl/actionstatus.go +++ b/typedapi/esdsl/actionstatus.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/activationstate.go b/typedapi/esdsl/activationstate.go index 44423fcc26..bdc29ead2b 100644 --- a/typedapi/esdsl/activationstate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/adaptiveallocations.go b/typedapi/esdsl/adaptiveallocations.go index 6f3dabc4a4..e8e1bb1d1c 100644 --- a/typedapi/esdsl/adaptiveallocations.go +++ b/typedapi/esdsl/adaptiveallocations.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/adaptiveallocationssettings.go b/typedapi/esdsl/adaptiveallocationssettings.go index abb499cf28..bd9014df09 100644 --- a/typedapi/esdsl/adaptiveallocationssettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/addaction.go b/typedapi/esdsl/addaction.go index 30cfeac42c..d4a8016865 100644 --- a/typedapi/esdsl/addaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/adjacencymatrixaggregation.go b/typedapi/esdsl/adjacencymatrixaggregation.go index 2bfd880a50..d697741813 100644 --- a/typedapi/esdsl/adjacencymatrixaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/aggregatemetricdoubleproperty.go b/typedapi/esdsl/aggregatemetricdoubleproperty.go index c9272927ed..a2206541ef 100644 --- a/typedapi/esdsl/aggregatemetricdoubleproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -82,6 +82,13 @@ func (s *_aggregateMetricDoubleProperty) IgnoreAbove(ignoreabove int) *_aggregat return s } +func (s *_aggregateMetricDoubleProperty) IgnoreMalformed(ignoremalformed bool) *_aggregateMetricDoubleProperty { + + s.v.IgnoreMalformed = &ignoremalformed + + return s +} + func (s *_aggregateMetricDoubleProperty) Meta(meta map[string]string) *_aggregateMetricDoubleProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/aggregateorder.go b/typedapi/esdsl/aggregateorder.go index d13f6f476a..d490ebd4ce 100644 --- a/typedapi/esdsl/aggregateorder.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/aggregateoutput.go b/typedapi/esdsl/aggregateoutput.go index 5c11d8fbf1..113450a655 100644 --- a/typedapi/esdsl/aggregateoutput.go +++ b/typedapi/esdsl/aggregateoutput.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/aggregationrange.go b/typedapi/esdsl/aggregationrange.go index f000aecfc0..ef26082fe0 100644 --- a/typedapi/esdsl/aggregationrange.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/aggregations.go b/typedapi/esdsl/aggregations.go index ce958c483f..ce576346f7 100644 --- a/typedapi/esdsl/aggregations.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/alias.go b/typedapi/esdsl/alias.go index d08f0e6d4e..712eadbdf6 100644 --- a/typedapi/esdsl/alias.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/aliasdefinition.go b/typedapi/esdsl/aliasdefinition.go index 6485ff4d2c..b593d0bcc6 100644 --- a/typedapi/esdsl/aliasdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/alibabacloudservicesettings.go b/typedapi/esdsl/alibabacloudservicesettings.go index 43e6d88204..1cdb9abce2 100644 --- a/typedapi/esdsl/alibabacloudservicesettings.go +++ b/typedapi/esdsl/alibabacloudservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/alibabacloudtasksettings.go b/typedapi/esdsl/alibabacloudtasksettings.go index b2db60fb23..ee79667420 100644 --- a/typedapi/esdsl/alibabacloudtasksettings.go +++ b/typedapi/esdsl/alibabacloudtasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/allfield.go b/typedapi/esdsl/allfield.go index ba13b0dab4..d429210254 100644 --- a/typedapi/esdsl/allfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/allocateaction.go b/typedapi/esdsl/allocateaction.go index f991dbd1fe..edc6db90f6 100644 --- a/typedapi/esdsl/allocateaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/alwayscondition.go b/typedapi/esdsl/alwayscondition.go index fdc0a245b9..66580cf959 100644 --- a/typedapi/esdsl/alwayscondition.go +++ b/typedapi/esdsl/alwayscondition.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/amazonbedrockservicesettings.go b/typedapi/esdsl/amazonbedrockservicesettings.go index 9e60cdef88..f48f87bcc6 100644 --- a/typedapi/esdsl/amazonbedrockservicesettings.go +++ b/typedapi/esdsl/amazonbedrockservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/amazonbedrocktasksettings.go b/typedapi/esdsl/amazonbedrocktasksettings.go index ea5a8031f6..bfd9f277ee 100644 --- a/typedapi/esdsl/amazonbedrocktasksettings.go +++ b/typedapi/esdsl/amazonbedrocktasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/analysisconfig.go b/typedapi/esdsl/analysisconfig.go index f4102a03aa..7e4e518a4b 100644 --- a/typedapi/esdsl/analysisconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/analysislimits.go b/typedapi/esdsl/analysislimits.go index 72349a5391..1fffba9fdc 100644 --- a/typedapi/esdsl/analysislimits.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/analysismemorylimit.go b/typedapi/esdsl/analysismemorylimit.go index 7472181c4f..0e1d62a975 100644 --- a/typedapi/esdsl/analysismemorylimit.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/analyzer.go b/typedapi/esdsl/analyzer.go index 48ed18739f..9f5b3ec257 100644 --- a/typedapi/esdsl/analyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_analyzer) UnknownAnalyzer(unknown json.RawMessage) *_analyzer { func (u *_analyzer) CustomAnalyzer(customanalyzer types.CustomAnalyzerVariant) *_analyzer { - u.v = &customanalyzer + u.v = customanalyzer.CustomAnalyzerCaster() return u } @@ -57,7 +57,7 @@ func (u *_customAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) FingerprintAnalyzer(fingerprintanalyzer types.FingerprintAnalyzerVariant) *_analyzer { - u.v = &fingerprintanalyzer + u.v = fingerprintanalyzer.FingerprintAnalyzerCaster() return u } @@ -70,7 +70,7 @@ func (u *_fingerprintAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) KeywordAnalyzer(keywordanalyzer types.KeywordAnalyzerVariant) *_analyzer { - u.v = &keywordanalyzer + u.v = keywordanalyzer.KeywordAnalyzerCaster() return u } @@ -83,7 +83,7 @@ func (u *_keywordAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) NoriAnalyzer(norianalyzer types.NoriAnalyzerVariant) *_analyzer { - u.v = &norianalyzer + u.v = norianalyzer.NoriAnalyzerCaster() return u } @@ -96,7 +96,7 @@ func (u *_noriAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) PatternAnalyzer(patternanalyzer types.PatternAnalyzerVariant) *_analyzer { - u.v = &patternanalyzer + u.v = patternanalyzer.PatternAnalyzerCaster() return u } @@ -109,7 +109,7 @@ func (u *_patternAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SimpleAnalyzer(simpleanalyzer types.SimpleAnalyzerVariant) *_analyzer { - u.v = &simpleanalyzer + u.v = simpleanalyzer.SimpleAnalyzerCaster() return u } @@ -122,7 +122,7 @@ func (u *_simpleAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) StandardAnalyzer(standardanalyzer types.StandardAnalyzerVariant) *_analyzer { - u.v = &standardanalyzer + u.v = standardanalyzer.StandardAnalyzerCaster() return u } @@ -135,7 +135,7 @@ func (u *_standardAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) StopAnalyzer(stopanalyzer types.StopAnalyzerVariant) *_analyzer { - u.v = &stopanalyzer + u.v = stopanalyzer.StopAnalyzerCaster() return u } @@ -148,7 +148,7 @@ func (u *_stopAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) WhitespaceAnalyzer(whitespaceanalyzer types.WhitespaceAnalyzerVariant) *_analyzer { - u.v = &whitespaceanalyzer + u.v = whitespaceanalyzer.WhitespaceAnalyzerCaster() return u } @@ -161,7 +161,7 @@ func (u *_whitespaceAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) IcuAnalyzer(icuanalyzer types.IcuAnalyzerVariant) *_analyzer { - u.v = &icuanalyzer + u.v = icuanalyzer.IcuAnalyzerCaster() return u } @@ -174,7 +174,7 @@ func (u *_icuAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) KuromojiAnalyzer(kuromojianalyzer types.KuromojiAnalyzerVariant) *_analyzer { - u.v = &kuromojianalyzer + u.v = kuromojianalyzer.KuromojiAnalyzerCaster() return u } @@ -187,7 +187,7 @@ func (u *_kuromojiAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SnowballAnalyzer(snowballanalyzer types.SnowballAnalyzerVariant) *_analyzer { - u.v = &snowballanalyzer + u.v = snowballanalyzer.SnowballAnalyzerCaster() return u } @@ -200,7 +200,7 @@ func (u *_snowballAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) ArabicAnalyzer(arabicanalyzer types.ArabicAnalyzerVariant) *_analyzer { - u.v = &arabicanalyzer + u.v = arabicanalyzer.ArabicAnalyzerCaster() return u } @@ -213,7 +213,7 @@ func (u *_arabicAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) ArmenianAnalyzer(armeniananalyzer types.ArmenianAnalyzerVariant) *_analyzer { - u.v = &armeniananalyzer + u.v = armeniananalyzer.ArmenianAnalyzerCaster() return u } @@ -226,7 +226,7 @@ func (u *_armenianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) BasqueAnalyzer(basqueanalyzer types.BasqueAnalyzerVariant) *_analyzer { - u.v = &basqueanalyzer + u.v = basqueanalyzer.BasqueAnalyzerCaster() return u } @@ -239,7 +239,7 @@ func (u *_basqueAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) BengaliAnalyzer(bengalianalyzer types.BengaliAnalyzerVariant) *_analyzer { - u.v = &bengalianalyzer + u.v = bengalianalyzer.BengaliAnalyzerCaster() return u } @@ -252,7 +252,7 @@ func (u *_bengaliAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) BrazilianAnalyzer(braziliananalyzer types.BrazilianAnalyzerVariant) *_analyzer { - u.v = &braziliananalyzer + u.v = braziliananalyzer.BrazilianAnalyzerCaster() return u } @@ -265,7 +265,7 @@ func (u *_brazilianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) BulgarianAnalyzer(bulgariananalyzer types.BulgarianAnalyzerVariant) *_analyzer { - u.v = &bulgariananalyzer + u.v = bulgariananalyzer.BulgarianAnalyzerCaster() return u } @@ -278,7 +278,7 @@ func (u *_bulgarianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) CatalanAnalyzer(catalananalyzer types.CatalanAnalyzerVariant) *_analyzer { - u.v = &catalananalyzer + u.v = catalananalyzer.CatalanAnalyzerCaster() return u } @@ -291,7 +291,7 @@ func (u *_catalanAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) ChineseAnalyzer(chineseanalyzer types.ChineseAnalyzerVariant) *_analyzer { - u.v = &chineseanalyzer + u.v = chineseanalyzer.ChineseAnalyzerCaster() return u } @@ -304,7 +304,7 @@ func (u *_chineseAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) CjkAnalyzer(cjkanalyzer types.CjkAnalyzerVariant) *_analyzer { - u.v = &cjkanalyzer + u.v = cjkanalyzer.CjkAnalyzerCaster() return u } @@ -317,7 +317,7 @@ func (u *_cjkAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) CzechAnalyzer(czechanalyzer types.CzechAnalyzerVariant) *_analyzer { - u.v = &czechanalyzer + u.v = czechanalyzer.CzechAnalyzerCaster() return u } @@ -330,7 +330,7 @@ func (u *_czechAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) DanishAnalyzer(danishanalyzer types.DanishAnalyzerVariant) *_analyzer { - u.v = &danishanalyzer + u.v = danishanalyzer.DanishAnalyzerCaster() return u } @@ -343,7 +343,7 @@ func (u *_danishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) DutchAnalyzer(dutchanalyzer types.DutchAnalyzerVariant) *_analyzer { - u.v = &dutchanalyzer + u.v = dutchanalyzer.DutchAnalyzerCaster() return u } @@ -356,7 +356,7 @@ func (u *_dutchAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) EnglishAnalyzer(englishanalyzer types.EnglishAnalyzerVariant) *_analyzer { - u.v = &englishanalyzer + u.v = englishanalyzer.EnglishAnalyzerCaster() return u } @@ -369,7 +369,7 @@ func (u *_englishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) EstonianAnalyzer(estoniananalyzer types.EstonianAnalyzerVariant) *_analyzer { - u.v = &estoniananalyzer + u.v = estoniananalyzer.EstonianAnalyzerCaster() return u } @@ -382,7 +382,7 @@ func (u *_estonianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) FinnishAnalyzer(finnishanalyzer types.FinnishAnalyzerVariant) *_analyzer { - u.v = &finnishanalyzer + u.v = finnishanalyzer.FinnishAnalyzerCaster() return u } @@ -395,7 +395,7 @@ func (u *_finnishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) FrenchAnalyzer(frenchanalyzer types.FrenchAnalyzerVariant) *_analyzer { - u.v = &frenchanalyzer + u.v = frenchanalyzer.FrenchAnalyzerCaster() return u } @@ -408,7 +408,7 @@ func (u *_frenchAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) GalicianAnalyzer(galiciananalyzer types.GalicianAnalyzerVariant) *_analyzer { - u.v = &galiciananalyzer + u.v = galiciananalyzer.GalicianAnalyzerCaster() return u } @@ -421,7 +421,7 @@ func (u *_galicianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) GermanAnalyzer(germananalyzer types.GermanAnalyzerVariant) *_analyzer { - u.v = &germananalyzer + u.v = germananalyzer.GermanAnalyzerCaster() return u } @@ -434,7 +434,7 @@ func (u *_germanAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) GreekAnalyzer(greekanalyzer types.GreekAnalyzerVariant) *_analyzer { - u.v = &greekanalyzer + u.v = greekanalyzer.GreekAnalyzerCaster() return u } @@ -447,7 +447,7 @@ func (u *_greekAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) HindiAnalyzer(hindianalyzer types.HindiAnalyzerVariant) *_analyzer { - u.v = &hindianalyzer + u.v = hindianalyzer.HindiAnalyzerCaster() return u } @@ -460,7 +460,7 @@ func (u *_hindiAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) HungarianAnalyzer(hungariananalyzer types.HungarianAnalyzerVariant) *_analyzer { - u.v = &hungariananalyzer + u.v = hungariananalyzer.HungarianAnalyzerCaster() return u } @@ -473,7 +473,7 @@ func (u *_hungarianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) IndonesianAnalyzer(indonesiananalyzer types.IndonesianAnalyzerVariant) *_analyzer { - u.v = &indonesiananalyzer + u.v = indonesiananalyzer.IndonesianAnalyzerCaster() return u } @@ -486,7 +486,7 @@ func (u *_indonesianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) IrishAnalyzer(irishanalyzer types.IrishAnalyzerVariant) *_analyzer { - u.v = &irishanalyzer + u.v = irishanalyzer.IrishAnalyzerCaster() return u } @@ -499,7 +499,7 @@ func (u *_irishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) ItalianAnalyzer(italiananalyzer types.ItalianAnalyzerVariant) *_analyzer { - u.v = &italiananalyzer + u.v = italiananalyzer.ItalianAnalyzerCaster() return u } @@ -512,7 +512,7 @@ func (u *_italianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) LatvianAnalyzer(latviananalyzer types.LatvianAnalyzerVariant) *_analyzer { - u.v = &latviananalyzer + u.v = latviananalyzer.LatvianAnalyzerCaster() return u } @@ -525,7 +525,7 @@ func (u *_latvianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) LithuanianAnalyzer(lithuaniananalyzer types.LithuanianAnalyzerVariant) *_analyzer { - u.v = &lithuaniananalyzer + u.v = lithuaniananalyzer.LithuanianAnalyzerCaster() return u } @@ -538,7 +538,7 @@ func (u *_lithuanianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) NorwegianAnalyzer(norwegiananalyzer types.NorwegianAnalyzerVariant) *_analyzer { - u.v = &norwegiananalyzer + u.v = norwegiananalyzer.NorwegianAnalyzerCaster() return u } @@ -551,7 +551,7 @@ func (u *_norwegianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) PersianAnalyzer(persiananalyzer types.PersianAnalyzerVariant) *_analyzer { - u.v = &persiananalyzer + u.v = persiananalyzer.PersianAnalyzerCaster() return u } @@ -564,7 +564,7 @@ func (u *_persianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) PortugueseAnalyzer(portugueseanalyzer types.PortugueseAnalyzerVariant) *_analyzer { - u.v = &portugueseanalyzer + u.v = portugueseanalyzer.PortugueseAnalyzerCaster() return u } @@ -577,7 +577,7 @@ func (u *_portugueseAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) RomanianAnalyzer(romaniananalyzer types.RomanianAnalyzerVariant) *_analyzer { - u.v = &romaniananalyzer + u.v = romaniananalyzer.RomanianAnalyzerCaster() return u } @@ -590,7 +590,7 @@ func (u *_romanianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) RussianAnalyzer(russiananalyzer types.RussianAnalyzerVariant) *_analyzer { - u.v = &russiananalyzer + u.v = russiananalyzer.RussianAnalyzerCaster() return u } @@ -603,7 +603,7 @@ func (u *_russianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SerbianAnalyzer(serbiananalyzer types.SerbianAnalyzerVariant) *_analyzer { - u.v = &serbiananalyzer + u.v = serbiananalyzer.SerbianAnalyzerCaster() return u } @@ -616,7 +616,7 @@ func (u *_serbianAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SoraniAnalyzer(soranianalyzer types.SoraniAnalyzerVariant) *_analyzer { - u.v = &soranianalyzer + u.v = soranianalyzer.SoraniAnalyzerCaster() return u } @@ -629,7 +629,7 @@ func (u *_soraniAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SpanishAnalyzer(spanishanalyzer types.SpanishAnalyzerVariant) *_analyzer { - u.v = &spanishanalyzer + u.v = spanishanalyzer.SpanishAnalyzerCaster() return u } @@ -642,7 +642,7 @@ func (u *_spanishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) SwedishAnalyzer(swedishanalyzer types.SwedishAnalyzerVariant) *_analyzer { - u.v = &swedishanalyzer + u.v = swedishanalyzer.SwedishAnalyzerCaster() return u } @@ -655,7 +655,7 @@ func (u *_swedishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) TurkishAnalyzer(turkishanalyzer types.TurkishAnalyzerVariant) *_analyzer { - u.v = &turkishanalyzer + u.v = turkishanalyzer.TurkishAnalyzerCaster() return u } @@ -668,7 +668,7 @@ func (u *_turkishAnalyzer) AnalyzerCaster() *types.Analyzer { func (u *_analyzer) ThaiAnalyzer(thaianalyzer types.ThaiAnalyzerVariant) *_analyzer { - u.v = &thaianalyzer + u.v = thaianalyzer.ThaiAnalyzerCaster() return u } diff --git a/typedapi/esdsl/anthropicservicesettings.go b/typedapi/esdsl/anthropicservicesettings.go index 33889ce922..2bb271cd1a 100644 --- a/typedapi/esdsl/anthropicservicesettings.go +++ b/typedapi/esdsl/anthropicservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/anthropictasksettings.go b/typedapi/esdsl/anthropictasksettings.go index a0f8458822..2176808730 100644 --- a/typedapi/esdsl/anthropictasksettings.go +++ b/typedapi/esdsl/anthropictasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/apikeyaggregationcontainer.go b/typedapi/esdsl/apikeyaggregationcontainer.go index 9f3b947699..38d0d91346 100644 --- a/typedapi/esdsl/apikeyaggregationcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/apikeyfiltersaggregation.go b/typedapi/esdsl/apikeyfiltersaggregation.go index 246f59ef6a..f86d183f56 100644 --- a/typedapi/esdsl/apikeyfiltersaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/apikeyquerycontainer.go b/typedapi/esdsl/apikeyquerycontainer.go index 75a14cc0be..28ac0a85db 100644 --- a/typedapi/esdsl/apikeyquerycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/apostrophetokenfilter.go b/typedapi/esdsl/apostrophetokenfilter.go new file mode 100644 index 0000000000..1d4d659c14 --- /dev/null +++ b/typedapi/esdsl/apostrophetokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _apostropheTokenFilter struct { + v *types.ApostropheTokenFilter +} + +func NewApostropheTokenFilter() *_apostropheTokenFilter { + + return &_apostropheTokenFilter{v: types.NewApostropheTokenFilter()} + +} + +func (s *_apostropheTokenFilter) Version(versionstring string) *_apostropheTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_apostropheTokenFilter) ApostropheTokenFilterCaster() *types.ApostropheTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/appendprocessor.go b/typedapi/esdsl/appendprocessor.go index 3cc166463f..1129f3cd22 100644 --- a/typedapi/esdsl/appendprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/applicationglobaluserprivileges.go b/typedapi/esdsl/applicationglobaluserprivileges.go index 3400580a4d..6c154d17f1 100644 --- a/typedapi/esdsl/applicationglobaluserprivileges.go +++ b/typedapi/esdsl/applicationglobaluserprivileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/applicationprivileges.go b/typedapi/esdsl/applicationprivileges.go index d64df99d5e..7a009b52f9 100644 --- a/typedapi/esdsl/applicationprivileges.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/applicationprivilegescheck.go b/typedapi/esdsl/applicationprivilegescheck.go index b0d6617562..33884f98d9 100644 --- a/typedapi/esdsl/applicationprivilegescheck.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/arabicanalyzer.go b/typedapi/esdsl/arabicanalyzer.go index 01befddf70..f80fdcf5c2 100644 --- a/typedapi/esdsl/arabicanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_arabicAnalyzer) StemExclusion(stemexclusions ...string) *_arabicAnalyz return s } -func (s *_arabicAnalyzer) Stopwords(stopwords ...string) *_arabicAnalyzer { +func (s *_arabicAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_arabicAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/arabicnormalizationtokenfilter.go b/typedapi/esdsl/arabicnormalizationtokenfilter.go new file mode 100644 index 0000000000..8af441fd27 --- /dev/null +++ b/typedapi/esdsl/arabicnormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _arabicNormalizationTokenFilter struct { + v *types.ArabicNormalizationTokenFilter +} + +func NewArabicNormalizationTokenFilter() *_arabicNormalizationTokenFilter { + + return &_arabicNormalizationTokenFilter{v: types.NewArabicNormalizationTokenFilter()} + +} + +func (s *_arabicNormalizationTokenFilter) Version(versionstring string) *_arabicNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_arabicNormalizationTokenFilter) ArabicNormalizationTokenFilterCaster() *types.ArabicNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/arabicstemtokenfilter.go b/typedapi/esdsl/arabicstemtokenfilter.go new file mode 100644 index 0000000000..d67fa3ad94 --- /dev/null +++ b/typedapi/esdsl/arabicstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _arabicStemTokenFilter struct { + v *types.ArabicStemTokenFilter +} + +func NewArabicStemTokenFilter() *_arabicStemTokenFilter { + + return &_arabicStemTokenFilter{v: types.NewArabicStemTokenFilter()} + +} + +func (s *_arabicStemTokenFilter) Version(versionstring string) *_arabicStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_arabicStemTokenFilter) ArabicStemTokenFilterCaster() *types.ArabicStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/armeniananalyzer.go b/typedapi/esdsl/armeniananalyzer.go index a21b329ade..1dc9f5a20f 100644 --- a/typedapi/esdsl/armeniananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_armenianAnalyzer) StemExclusion(stemexclusions ...string) *_armenianAn return s } -func (s *_armenianAnalyzer) Stopwords(stopwords ...string) *_armenianAnalyzer { +func (s *_armenianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_armenianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/arraycomparecondition.go b/typedapi/esdsl/arraycomparecondition.go index 3fb26c5320..b05f039ed5 100644 --- a/typedapi/esdsl/arraycomparecondition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/arraycompareopparams.go b/typedapi/esdsl/arraycompareopparams.go index 0771f7c0b9..73e2d053c7 100644 --- a/typedapi/esdsl/arraycompareopparams.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/asciifoldingtokenfilter.go b/typedapi/esdsl/asciifoldingtokenfilter.go index 634578286d..0ae04950e9 100644 --- a/typedapi/esdsl/asciifoldingtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/attachmentprocessor.go b/typedapi/esdsl/attachmentprocessor.go index a64ac7c5c1..baad32c025 100644 --- a/typedapi/esdsl/attachmentprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/autodatehistogramaggregation.go b/typedapi/esdsl/autodatehistogramaggregation.go index 45b7f9a396..2df823d987 100644 --- a/typedapi/esdsl/autodatehistogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/autoscalingpolicy.go b/typedapi/esdsl/autoscalingpolicy.go index 7829fa7b51..5b7536c5ad 100644 --- a/typedapi/esdsl/autoscalingpolicy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/averageaggregation.go b/typedapi/esdsl/averageaggregation.go index 6c337a6f36..e619ac378a 100644 --- a/typedapi/esdsl/averageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/averagebucketaggregation.go b/typedapi/esdsl/averagebucketaggregation.go index ddf98ec8d2..78ebda7aa4 100644 --- a/typedapi/esdsl/averagebucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azureaistudioservicesettings.go b/typedapi/esdsl/azureaistudioservicesettings.go index 2b7745ed73..73995d6962 100644 --- a/typedapi/esdsl/azureaistudioservicesettings.go +++ b/typedapi/esdsl/azureaistudioservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azureaistudiotasksettings.go b/typedapi/esdsl/azureaistudiotasksettings.go index ccbf9e4602..7244f8f53f 100644 --- a/typedapi/esdsl/azureaistudiotasksettings.go +++ b/typedapi/esdsl/azureaistudiotasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azureopenaiservicesettings.go b/typedapi/esdsl/azureopenaiservicesettings.go index 37570d9b29..ef18b5ccb4 100644 --- a/typedapi/esdsl/azureopenaiservicesettings.go +++ b/typedapi/esdsl/azureopenaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azureopenaitasksettings.go b/typedapi/esdsl/azureopenaitasksettings.go index 0d4b235a7c..8dfe8b4234 100644 --- a/typedapi/esdsl/azureopenaitasksettings.go +++ b/typedapi/esdsl/azureopenaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azurerepository.go b/typedapi/esdsl/azurerepository.go index 1d89760109..71af02041a 100644 --- a/typedapi/esdsl/azurerepository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/azurerepositorysettings.go b/typedapi/esdsl/azurerepositorysettings.go index bfb89fbdfa..4d4896c3e8 100644 --- a/typedapi/esdsl/azurerepositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/basqueanalyzer.go b/typedapi/esdsl/basqueanalyzer.go index 24bb93a345..d3ddcccf71 100644 --- a/typedapi/esdsl/basqueanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_basqueAnalyzer) StemExclusion(stemexclusions ...string) *_basqueAnalyz return s } -func (s *_basqueAnalyzer) Stopwords(stopwords ...string) *_basqueAnalyzer { +func (s *_basqueAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_basqueAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/bengalianalyzer.go b/typedapi/esdsl/bengalianalyzer.go index 35e7baf46d..64cb1cf4a9 100644 --- a/typedapi/esdsl/bengalianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_bengaliAnalyzer) StemExclusion(stemexclusions ...string) *_bengaliAnal return s } -func (s *_bengaliAnalyzer) Stopwords(stopwords ...string) *_bengaliAnalyzer { +func (s *_bengaliAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_bengaliAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/bengalinormalizationtokenfilter.go b/typedapi/esdsl/bengalinormalizationtokenfilter.go new file mode 100644 index 0000000000..77c5046e1d --- /dev/null +++ b/typedapi/esdsl/bengalinormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _bengaliNormalizationTokenFilter struct { + v *types.BengaliNormalizationTokenFilter +} + +func NewBengaliNormalizationTokenFilter() *_bengaliNormalizationTokenFilter { + + return &_bengaliNormalizationTokenFilter{v: types.NewBengaliNormalizationTokenFilter()} + +} + +func (s *_bengaliNormalizationTokenFilter) Version(versionstring string) *_bengaliNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_bengaliNormalizationTokenFilter) BengaliNormalizationTokenFilterCaster() *types.BengaliNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/binaryproperty.go b/typedapi/esdsl/binaryproperty.go index 2205c74f3c..f67938e616 100644 --- a/typedapi/esdsl/binaryproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/booleanproperty.go b/typedapi/esdsl/booleanproperty.go index 2ca1ef0e79..dc9b0c6b6e 100644 --- a/typedapi/esdsl/booleanproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/boolquery.go b/typedapi/esdsl/boolquery.go index f6e692c203..72dd346bc9 100644 --- a/typedapi/esdsl/boolquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -26,7 +26,7 @@ type _boolQuery struct { v *types.BoolQuery } -// matches users matching boolean combinations of other queries. +// matches documents matching boolean combinations of other queries. func NewBoolQuery() *_boolQuery { return &_boolQuery{v: types.NewBoolQuery()} diff --git a/typedapi/esdsl/boostingquery.go b/typedapi/esdsl/boostingquery.go index 26a2997a18..c55f1ee040 100644 --- a/typedapi/esdsl/boostingquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/boxplotaggregation.go b/typedapi/esdsl/boxplotaggregation.go index 39469a5ac7..2f5c68a463 100644 --- a/typedapi/esdsl/boxplotaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/braziliananalyzer.go b/typedapi/esdsl/braziliananalyzer.go index 8cfe3c46f2..9d1a3b4751 100644 --- a/typedapi/esdsl/braziliananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewBrazilianAnalyzer() *_brazilianAnalyzer { } -func (s *_brazilianAnalyzer) Stopwords(stopwords ...string) *_brazilianAnalyzer { +func (s *_brazilianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_brazilianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/brazilianstemtokenfilter.go b/typedapi/esdsl/brazilianstemtokenfilter.go new file mode 100644 index 0000000000..7aec6c34a1 --- /dev/null +++ b/typedapi/esdsl/brazilianstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _brazilianStemTokenFilter struct { + v *types.BrazilianStemTokenFilter +} + +func NewBrazilianStemTokenFilter() *_brazilianStemTokenFilter { + + return &_brazilianStemTokenFilter{v: types.NewBrazilianStemTokenFilter()} + +} + +func (s *_brazilianStemTokenFilter) Version(versionstring string) *_brazilianStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_brazilianStemTokenFilter) BrazilianStemTokenFilterCaster() *types.BrazilianStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/bucketcorrelationaggregation.go b/typedapi/esdsl/bucketcorrelationaggregation.go index 5dd75ff5dc..31e8490e32 100644 --- a/typedapi/esdsl/bucketcorrelationaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketcorrelationfunction.go b/typedapi/esdsl/bucketcorrelationfunction.go index d5f5253a4d..b4847d9df2 100644 --- a/typedapi/esdsl/bucketcorrelationfunction.go +++ b/typedapi/esdsl/bucketcorrelationfunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go index 24fa2d5818..2f56d073eb 100644 --- a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go +++ b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go index e90a73d2d2..fe8dc79649 100644 --- a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketksaggregation.go b/typedapi/esdsl/bucketksaggregation.go index 83eedb835d..c1a6483b50 100644 --- a/typedapi/esdsl/bucketksaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketsapikeyquerycontainer.go b/typedapi/esdsl/bucketsapikeyquerycontainer.go index bd6c83a533..d06e5ad674 100644 --- a/typedapi/esdsl/bucketsapikeyquerycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketscriptaggregation.go b/typedapi/esdsl/bucketscriptaggregation.go index 7720486c19..d20496554a 100644 --- a/typedapi/esdsl/bucketscriptaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketselectoraggregation.go b/typedapi/esdsl/bucketselectoraggregation.go index 82ae328783..e38245cf3b 100644 --- a/typedapi/esdsl/bucketselectoraggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketsortaggregation.go b/typedapi/esdsl/bucketsortaggregation.go index 56adec6848..d818ef1e32 100644 --- a/typedapi/esdsl/bucketsortaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketspath.go b/typedapi/esdsl/bucketspath.go index 37c4695f71..96270a9ac5 100644 --- a/typedapi/esdsl/bucketspath.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bucketsquery.go b/typedapi/esdsl/bucketsquery.go index ca696ff578..00525b85cd 100644 --- a/typedapi/esdsl/bucketsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bulgariananalyzer.go b/typedapi/esdsl/bulgariananalyzer.go index a4b86ea59b..798ce8f301 100644 --- a/typedapi/esdsl/bulgariananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_bulgarianAnalyzer) StemExclusion(stemexclusions ...string) *_bulgarian return s } -func (s *_bulgarianAnalyzer) Stopwords(stopwords ...string) *_bulgarianAnalyzer { +func (s *_bulgarianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_bulgarianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/bytenumberproperty.go b/typedapi/esdsl/bytenumberproperty.go index c782561088..b79c4d4a67 100644 --- a/typedapi/esdsl/bytenumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bytesize.go b/typedapi/esdsl/bytesize.go index d723ce5278..416cb7904a 100644 --- a/typedapi/esdsl/bytesize.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/bytesprocessor.go b/typedapi/esdsl/bytesprocessor.go index 5d6042a15e..91148945a1 100644 --- a/typedapi/esdsl/bytesprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cachequeries.go b/typedapi/esdsl/cachequeries.go index 9b6ce46366..854b078f95 100644 --- a/typedapi/esdsl/cachequeries.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/calendarevent.go b/typedapi/esdsl/calendarevent.go index 67ddfca16d..b58565e6dc 100644 --- a/typedapi/esdsl/calendarevent.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cardinalityaggregation.go b/typedapi/esdsl/cardinalityaggregation.go index 71de8b6fdb..5d4a5ab098 100644 --- a/typedapi/esdsl/cardinalityaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/catalananalyzer.go b/typedapi/esdsl/catalananalyzer.go index 1428cb9406..ea164457d8 100644 --- a/typedapi/esdsl/catalananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_catalanAnalyzer) StemExclusion(stemexclusions ...string) *_catalanAnal return s } -func (s *_catalanAnalyzer) Stopwords(stopwords ...string) *_catalanAnalyzer { +func (s *_catalanAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_catalanAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/categorizationanalyzer.go b/typedapi/esdsl/categorizationanalyzer.go index dd994e2028..358e173ca2 100644 --- a/typedapi/esdsl/categorizationanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_categorizationAnalyzer) String(string string) *_categorizationAnalyzer func (u *_categorizationAnalyzer) CategorizationAnalyzerDefinition(categorizationanalyzerdefinition types.CategorizationAnalyzerDefinitionVariant) *_categorizationAnalyzer { - u.v = &categorizationanalyzerdefinition + u.v = categorizationanalyzerdefinition.CategorizationAnalyzerDefinitionCaster() return u } diff --git a/typedapi/esdsl/categorizationanalyzerdefinition.go b/typedapi/esdsl/categorizationanalyzerdefinition.go index 2d1db28ad2..01c511863b 100644 --- a/typedapi/esdsl/categorizationanalyzerdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/categorizetextaggregation.go b/typedapi/esdsl/categorizetextaggregation.go index 19417fd265..2e3c42465b 100644 --- a/typedapi/esdsl/categorizetextaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/categorizetextanalyzer.go b/typedapi/esdsl/categorizetextanalyzer.go index c7b97770fe..2f0ce92f79 100644 --- a/typedapi/esdsl/categorizetextanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_categorizeTextAnalyzer) String(string string) *_categorizeTextAnalyzer func (u *_categorizeTextAnalyzer) CustomCategorizeTextAnalyzer(customcategorizetextanalyzer types.CustomCategorizeTextAnalyzerVariant) *_categorizeTextAnalyzer { - u.v = &customcategorizetextanalyzer + u.v = customcategorizetextanalyzer.CustomCategorizeTextAnalyzerCaster() return u } diff --git a/typedapi/esdsl/chaininput.go b/typedapi/esdsl/chaininput.go index 14732c25d0..ff5956a05d 100644 --- a/typedapi/esdsl/chaininput.go +++ b/typedapi/esdsl/chaininput.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/charfilter.go b/typedapi/esdsl/charfilter.go index 3e5d0190aa..9a8330055d 100644 --- a/typedapi/esdsl/charfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/charfilterdefinition.go b/typedapi/esdsl/charfilterdefinition.go index f4f860ff1a..90fe825fe2 100644 --- a/typedapi/esdsl/charfilterdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_charFilterDefinition) UnknownCharFilterDefinition(unknown json.RawMess func (u *_charFilterDefinition) HtmlStripCharFilter(htmlstripcharfilter types.HtmlStripCharFilterVariant) *_charFilterDefinition { - u.v = &htmlstripcharfilter + u.v = htmlstripcharfilter.HtmlStripCharFilterCaster() return u } @@ -57,7 +57,7 @@ func (u *_htmlStripCharFilter) CharFilterDefinitionCaster() *types.CharFilterDef func (u *_charFilterDefinition) MappingCharFilter(mappingcharfilter types.MappingCharFilterVariant) *_charFilterDefinition { - u.v = &mappingcharfilter + u.v = mappingcharfilter.MappingCharFilterCaster() return u } @@ -70,7 +70,7 @@ func (u *_mappingCharFilter) CharFilterDefinitionCaster() *types.CharFilterDefin func (u *_charFilterDefinition) PatternReplaceCharFilter(patternreplacecharfilter types.PatternReplaceCharFilterVariant) *_charFilterDefinition { - u.v = &patternreplacecharfilter + u.v = patternreplacecharfilter.PatternReplaceCharFilterCaster() return u } @@ -83,7 +83,7 @@ func (u *_patternReplaceCharFilter) CharFilterDefinitionCaster() *types.CharFilt func (u *_charFilterDefinition) IcuNormalizationCharFilter(icunormalizationcharfilter types.IcuNormalizationCharFilterVariant) *_charFilterDefinition { - u.v = &icunormalizationcharfilter + u.v = icunormalizationcharfilter.IcuNormalizationCharFilterCaster() return u } @@ -96,7 +96,7 @@ func (u *_icuNormalizationCharFilter) CharFilterDefinitionCaster() *types.CharFi func (u *_charFilterDefinition) KuromojiIterationMarkCharFilter(kuromojiiterationmarkcharfilter types.KuromojiIterationMarkCharFilterVariant) *_charFilterDefinition { - u.v = &kuromojiiterationmarkcharfilter + u.v = kuromojiiterationmarkcharfilter.KuromojiIterationMarkCharFilterCaster() return u } diff --git a/typedapi/esdsl/chargrouptokenizer.go b/typedapi/esdsl/chargrouptokenizer.go index d02fb5ecf3..c7659997e5 100644 --- a/typedapi/esdsl/chargrouptokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/childrenaggregation.go b/typedapi/esdsl/childrenaggregation.go index f7a027ef21..406feb157c 100644 --- a/typedapi/esdsl/childrenaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/chineseanalyzer.go b/typedapi/esdsl/chineseanalyzer.go index 81a70f99f7..d3f582771e 100644 --- a/typedapi/esdsl/chineseanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewChineseAnalyzer() *_chineseAnalyzer { } -func (s *_chineseAnalyzer) Stopwords(stopwords ...string) *_chineseAnalyzer { +func (s *_chineseAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_chineseAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/chisquareheuristic.go b/typedapi/esdsl/chisquareheuristic.go index 4377cc39bf..0735c836b7 100644 --- a/typedapi/esdsl/chisquareheuristic.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/chunkingconfig.go b/typedapi/esdsl/chunkingconfig.go index 15c14131f1..a2ad52fa84 100644 --- a/typedapi/esdsl/chunkingconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/circleprocessor.go b/typedapi/esdsl/circleprocessor.go index f9e3e50bb4..34b7e4e32f 100644 --- a/typedapi/esdsl/circleprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cjkanalyzer.go b/typedapi/esdsl/cjkanalyzer.go index b038e08fdd..b40236085f 100644 --- a/typedapi/esdsl/cjkanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewCjkAnalyzer() *_cjkAnalyzer { } -func (s *_cjkAnalyzer) Stopwords(stopwords ...string) *_cjkAnalyzer { +func (s *_cjkAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_cjkAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/cjkbigramtokenfilter.go b/typedapi/esdsl/cjkbigramtokenfilter.go new file mode 100644 index 0000000000..bd05e9e4f8 --- /dev/null +++ b/typedapi/esdsl/cjkbigramtokenfilter.go @@ -0,0 +1,64 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cjkbigramignoredscript" +) + +type _cjkBigramTokenFilter struct { + v *types.CjkBigramTokenFilter +} + +func NewCjkBigramTokenFilter() *_cjkBigramTokenFilter { + + return &_cjkBigramTokenFilter{v: types.NewCjkBigramTokenFilter()} + +} + +func (s *_cjkBigramTokenFilter) IgnoredScripts(ignoredscripts ...cjkbigramignoredscript.CjkBigramIgnoredScript) *_cjkBigramTokenFilter { + + for _, v := range ignoredscripts { + + s.v.IgnoredScripts = append(s.v.IgnoredScripts, v) + + } + return s +} + +func (s *_cjkBigramTokenFilter) OutputUnigrams(outputunigrams bool) *_cjkBigramTokenFilter { + + s.v.OutputUnigrams = &outputunigrams + + return s +} + +func (s *_cjkBigramTokenFilter) Version(versionstring string) *_cjkBigramTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_cjkBigramTokenFilter) CjkBigramTokenFilterCaster() *types.CjkBigramTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/cjkwidthtokenfilter.go b/typedapi/esdsl/cjkwidthtokenfilter.go new file mode 100644 index 0000000000..7184793675 --- /dev/null +++ b/typedapi/esdsl/cjkwidthtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _cjkWidthTokenFilter struct { + v *types.CjkWidthTokenFilter +} + +func NewCjkWidthTokenFilter() *_cjkWidthTokenFilter { + + return &_cjkWidthTokenFilter{v: types.NewCjkWidthTokenFilter()} + +} + +func (s *_cjkWidthTokenFilter) Version(versionstring string) *_cjkWidthTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_cjkWidthTokenFilter) CjkWidthTokenFilterCaster() *types.CjkWidthTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/classictokenfilter.go b/typedapi/esdsl/classictokenfilter.go new file mode 100644 index 0000000000..34bdfc16f9 --- /dev/null +++ b/typedapi/esdsl/classictokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _classicTokenFilter struct { + v *types.ClassicTokenFilter +} + +func NewClassicTokenFilter() *_classicTokenFilter { + + return &_classicTokenFilter{v: types.NewClassicTokenFilter()} + +} + +func (s *_classicTokenFilter) Version(versionstring string) *_classicTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_classicTokenFilter) ClassicTokenFilterCaster() *types.ClassicTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/classictokenizer.go b/typedapi/esdsl/classictokenizer.go index 15d414ccc5..5890a61f04 100644 --- a/typedapi/esdsl/classictokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/classificationinferenceoptions.go b/typedapi/esdsl/classificationinferenceoptions.go index 01c0f95525..64a16e8338 100644 --- a/typedapi/esdsl/classificationinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cohereservicesettings.go b/typedapi/esdsl/cohereservicesettings.go index 5938dee44b..0026c24967 100644 --- a/typedapi/esdsl/cohereservicesettings.go +++ b/typedapi/esdsl/cohereservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/coheretasksettings.go b/typedapi/esdsl/coheretasksettings.go index 2b8ff5f3b6..c101c31a59 100644 --- a/typedapi/esdsl/coheretasksettings.go +++ b/typedapi/esdsl/coheretasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/combinedfieldsquery.go b/typedapi/esdsl/combinedfieldsquery.go index 943bf8e8d8..d14289af3b 100644 --- a/typedapi/esdsl/combinedfieldsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/command.go b/typedapi/esdsl/command.go index b25714be56..e88cf80fab 100644 --- a/typedapi/esdsl/command.go +++ b/typedapi/esdsl/command.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commandallocateprimaryaction.go b/typedapi/esdsl/commandallocateprimaryaction.go index 38395cbff3..3ce60b36f3 100644 --- a/typedapi/esdsl/commandallocateprimaryaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commandallocatereplicaaction.go b/typedapi/esdsl/commandallocatereplicaaction.go index f7806e0c38..3ce80a5782 100644 --- a/typedapi/esdsl/commandallocatereplicaaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commandcancelaction.go b/typedapi/esdsl/commandcancelaction.go index b4f4f8ef32..d6b9e52fdf 100644 --- a/typedapi/esdsl/commandcancelaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commandmoveaction.go b/typedapi/esdsl/commandmoveaction.go index 52bf5a8b09..cfde980a92 100644 --- a/typedapi/esdsl/commandmoveaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commongramstokenfilter.go b/typedapi/esdsl/commongramstokenfilter.go index 58506754b9..549a6d15a4 100644 --- a/typedapi/esdsl/commongramstokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/commontermsquery.go b/typedapi/esdsl/commontermsquery.go index 7238ce1ced..034c973416 100644 --- a/typedapi/esdsl/commontermsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/communityidprocessor.go b/typedapi/esdsl/communityidprocessor.go index 45e89a786e..bdbe4e8087 100644 --- a/typedapi/esdsl/communityidprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completioncontext.go b/typedapi/esdsl/completioncontext.go index 5dd71ec4e6..cd2fb1a96e 100644 --- a/typedapi/esdsl/completioncontext.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completionproperty.go b/typedapi/esdsl/completionproperty.go index 593e960ef9..583695c067 100644 --- a/typedapi/esdsl/completionproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completionsuggester.go b/typedapi/esdsl/completionsuggester.go index 39459f9f58..1a610aeda0 100644 --- a/typedapi/esdsl/completionsuggester.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completiontool.go b/typedapi/esdsl/completiontool.go index 29247a77a2..3d47f08af2 100644 --- a/typedapi/esdsl/completiontool.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completiontoolchoice.go b/typedapi/esdsl/completiontoolchoice.go index 90d603dbc7..ed332d8f39 100644 --- a/typedapi/esdsl/completiontoolchoice.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completiontoolchoicefunction.go b/typedapi/esdsl/completiontoolchoicefunction.go index b9ca733f41..1d8ec37a32 100644 --- a/typedapi/esdsl/completiontoolchoicefunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completiontoolfunction.go b/typedapi/esdsl/completiontoolfunction.go index 4fc7095c68..bf48deddee 100644 --- a/typedapi/esdsl/completiontoolfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/completiontooltype.go b/typedapi/esdsl/completiontooltype.go index 1c79ca6704..b1fc6a88f3 100644 --- a/typedapi/esdsl/completiontooltype.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_completionToolType) String(string string) *_completionToolType { func (u *_completionToolType) CompletionToolChoice(completiontoolchoice types.CompletionToolChoiceVariant) *_completionToolType { - u.v = &completiontoolchoice + u.v = completiontoolchoice.CompletionToolChoiceCaster() return u } diff --git a/typedapi/esdsl/componenttemplatenode.go b/typedapi/esdsl/componenttemplatenode.go index ba2fcf8043..7aaaa1c376 100644 --- a/typedapi/esdsl/componenttemplatenode.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/componenttemplatesummary.go b/typedapi/esdsl/componenttemplatesummary.go index f62bece9f2..b49dd30f9b 100644 --- a/typedapi/esdsl/componenttemplatesummary.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositeaggregatekey.go b/typedapi/esdsl/compositeaggregatekey.go index ad87471e4a..84766196d9 100644 --- a/typedapi/esdsl/compositeaggregatekey.go +++ b/typedapi/esdsl/compositeaggregatekey.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositeaggregation.go b/typedapi/esdsl/compositeaggregation.go index 34936a33b0..c844974bd0 100644 --- a/typedapi/esdsl/compositeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositeaggregationsource.go b/typedapi/esdsl/compositeaggregationsource.go index 086f9d5116..76762a248b 100644 --- a/typedapi/esdsl/compositeaggregationsource.go +++ b/typedapi/esdsl/compositeaggregationsource.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositedatehistogramaggregation.go b/typedapi/esdsl/compositedatehistogramaggregation.go index 1608ad17eb..56ef20034f 100644 --- a/typedapi/esdsl/compositedatehistogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositegeotilegridaggregation.go b/typedapi/esdsl/compositegeotilegridaggregation.go index 49e8361bce..874fb1f9b8 100644 --- a/typedapi/esdsl/compositegeotilegridaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositehistogramaggregation.go b/typedapi/esdsl/compositehistogramaggregation.go index b266531bbc..abc5e26dbf 100644 --- a/typedapi/esdsl/compositehistogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositesubfield.go b/typedapi/esdsl/compositesubfield.go index 99563f0b2d..6f6cb50c45 100644 --- a/typedapi/esdsl/compositesubfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/compositetermsaggregation.go b/typedapi/esdsl/compositetermsaggregation.go index b7a984efe8..7e2eff4d91 100644 --- a/typedapi/esdsl/compositetermsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/conditiontokenfilter.go b/typedapi/esdsl/conditiontokenfilter.go index eb81ebadd9..7aea27a811 100644 --- a/typedapi/esdsl/conditiontokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/configuration.go b/typedapi/esdsl/configuration.go index f7a23af010..28fdef2dc0 100644 --- a/typedapi/esdsl/configuration.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/connectorconfigproperties.go b/typedapi/esdsl/connectorconfigproperties.go index 21bd232fcb..0f26c56b7f 100644 --- a/typedapi/esdsl/connectorconfigproperties.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/connectorconfiguration.go b/typedapi/esdsl/connectorconfiguration.go index 48de912e2b..831f6e02b4 100644 --- a/typedapi/esdsl/connectorconfiguration.go +++ b/typedapi/esdsl/connectorconfiguration.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/connectorfeatures.go b/typedapi/esdsl/connectorfeatures.go index f0977902f0..84e7457be0 100644 --- a/typedapi/esdsl/connectorfeatures.go +++ b/typedapi/esdsl/connectorfeatures.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/connectorscheduling.go b/typedapi/esdsl/connectorscheduling.go index ffb8a276a0..6f6d10736d 100644 --- a/typedapi/esdsl/connectorscheduling.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/constantkeywordproperty.go b/typedapi/esdsl/constantkeywordproperty.go index 262492dbd3..2236f84cea 100644 --- a/typedapi/esdsl/constantkeywordproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/constantscorequery.go b/typedapi/esdsl/constantscorequery.go index c3c91c59b1..89b8d22ec0 100644 --- a/typedapi/esdsl/constantscorequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/contentobject.go b/typedapi/esdsl/contentobject.go index b29cd92906..342adb8ae2 100644 --- a/typedapi/esdsl/contentobject.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/context.go b/typedapi/esdsl/context.go index d97e5ccce2..bffa3507e7 100644 --- a/typedapi/esdsl/context.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/convertprocessor.go b/typedapi/esdsl/convertprocessor.go index ab7197ab58..d13a1a8b72 100644 --- a/typedapi/esdsl/convertprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/coordsgeobounds.go b/typedapi/esdsl/coordsgeobounds.go index e52c532bab..c19f2f6709 100644 --- a/typedapi/esdsl/coordsgeobounds.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/countedkeywordproperty.go b/typedapi/esdsl/countedkeywordproperty.go index 821c1b2293..0fd5d8a03c 100644 --- a/typedapi/esdsl/countedkeywordproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/createfrom.go b/typedapi/esdsl/createfrom.go index 5fda4d7dfc..e60674cf34 100644 --- a/typedapi/esdsl/createfrom.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/createoperation.go b/typedapi/esdsl/createoperation.go index 2f87eb5573..02ee91f703 100644 --- a/typedapi/esdsl/createoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/csvprocessor.go b/typedapi/esdsl/csvprocessor.go index 985976f1b8..c591676ede 100644 --- a/typedapi/esdsl/csvprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cumulativecardinalityaggregation.go b/typedapi/esdsl/cumulativecardinalityaggregation.go index 645b20fcc2..3f81caf0e8 100644 --- a/typedapi/esdsl/cumulativecardinalityaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/cumulativesumaggregation.go b/typedapi/esdsl/cumulativesumaggregation.go index 734b045a79..cfea9eded8 100644 --- a/typedapi/esdsl/cumulativesumaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/customanalyzer.go b/typedapi/esdsl/customanalyzer.go index 84df9b6a51..828bb4038b 100644 --- a/typedapi/esdsl/customanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/customcategorizetextanalyzer.go b/typedapi/esdsl/customcategorizetextanalyzer.go index 86b580c3fc..4e287ce68c 100644 --- a/typedapi/esdsl/customcategorizetextanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/customnormalizer.go b/typedapi/esdsl/customnormalizer.go index 384b1a8622..705864b021 100644 --- a/typedapi/esdsl/customnormalizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/czechanalyzer.go b/typedapi/esdsl/czechanalyzer.go index 004f598435..0038453914 100644 --- a/typedapi/esdsl/czechanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_czechAnalyzer) StemExclusion(stemexclusions ...string) *_czechAnalyzer return s } -func (s *_czechAnalyzer) Stopwords(stopwords ...string) *_czechAnalyzer { +func (s *_czechAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_czechAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/czechstemtokenfilter.go b/typedapi/esdsl/czechstemtokenfilter.go new file mode 100644 index 0000000000..ad3dce6562 --- /dev/null +++ b/typedapi/esdsl/czechstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _czechStemTokenFilter struct { + v *types.CzechStemTokenFilter +} + +func NewCzechStemTokenFilter() *_czechStemTokenFilter { + + return &_czechStemTokenFilter{v: types.NewCzechStemTokenFilter()} + +} + +func (s *_czechStemTokenFilter) Version(versionstring string) *_czechStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_czechStemTokenFilter) CzechStemTokenFilterCaster() *types.CzechStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/dailyschedule.go b/typedapi/esdsl/dailyschedule.go index 71e2570009..381b224975 100644 --- a/typedapi/esdsl/dailyschedule.go +++ b/typedapi/esdsl/dailyschedule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/danishanalyzer.go b/typedapi/esdsl/danishanalyzer.go index e8002ed959..66c66ec58a 100644 --- a/typedapi/esdsl/danishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewDanishAnalyzer() *_danishAnalyzer { } -func (s *_danishAnalyzer) Stopwords(stopwords ...string) *_danishAnalyzer { +func (s *_danishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_danishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/databaseconfiguration.go b/typedapi/esdsl/databaseconfiguration.go index 4e4b89c4f0..4703d79837 100644 --- a/typedapi/esdsl/databaseconfiguration.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datadescription.go b/typedapi/esdsl/datadescription.go index ec7ff77a5f..27c1710fef 100644 --- a/typedapi/esdsl/datadescription.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataemailattachment.go b/typedapi/esdsl/dataemailattachment.go index 6c2fe29dae..77d8d2deac 100644 --- a/typedapi/esdsl/dataemailattachment.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datafeedconfig.go b/typedapi/esdsl/datafeedconfig.go index 59c61608ff..09adf6d498 100644 --- a/typedapi/esdsl/datafeedconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisanalyzedfields.go b/typedapi/esdsl/dataframeanalysisanalyzedfields.go index 5df79fe5ef..d6aaace64d 100644 --- a/typedapi/esdsl/dataframeanalysisanalyzedfields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisclassification.go b/typedapi/esdsl/dataframeanalysisclassification.go index 78656a6cf7..a99bbd0adb 100644 --- a/typedapi/esdsl/dataframeanalysisclassification.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysiscontainer.go b/typedapi/esdsl/dataframeanalysiscontainer.go index 4e42c9746b..99c9fcca24 100644 --- a/typedapi/esdsl/dataframeanalysiscontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessor.go b/typedapi/esdsl/dataframeanalysisfeatureprocessor.go index aa4fd0ddce..b3dfe4bc76 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go index 2ff793dc3f..d289b1d478 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go index 108d1a28ad..0b96575862 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go index df69c0d797..fed20b8b50 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go index 57f90eb61c..b3fabc402b 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go index 219a88cf52..859275ad56 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisoutlierdetection.go b/typedapi/esdsl/dataframeanalysisoutlierdetection.go index 46dafd37a6..9c41a9c93b 100644 --- a/typedapi/esdsl/dataframeanalysisoutlierdetection.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalysisregression.go b/typedapi/esdsl/dataframeanalysisregression.go index 7f7eb0f4eb..110c1f8c58 100644 --- a/typedapi/esdsl/dataframeanalysisregression.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalyticsdestination.go b/typedapi/esdsl/dataframeanalyticsdestination.go index 475edc6e48..fe25fab02f 100644 --- a/typedapi/esdsl/dataframeanalyticsdestination.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeanalyticssource.go b/typedapi/esdsl/dataframeanalyticssource.go index cb49b09be1..c86eea3152 100644 --- a/typedapi/esdsl/dataframeanalyticssource.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationclassification.go b/typedapi/esdsl/dataframeevaluationclassification.go index 3442f90008..bfce835e62 100644 --- a/typedapi/esdsl/dataframeevaluationclassification.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationclassificationmetrics.go b/typedapi/esdsl/dataframeevaluationclassificationmetrics.go index cdc138b61e..20cf96d049 100644 --- a/typedapi/esdsl/dataframeevaluationclassificationmetrics.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go b/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go index cde2d1a94f..020a948f63 100644 --- a/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationcontainer.go b/typedapi/esdsl/dataframeevaluationcontainer.go index 8cd3786b5d..d3944f31fa 100644 --- a/typedapi/esdsl/dataframeevaluationcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationoutlierdetection.go b/typedapi/esdsl/dataframeevaluationoutlierdetection.go index 8b11f3b136..56b6d5e2b5 100644 --- a/typedapi/esdsl/dataframeevaluationoutlierdetection.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go b/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go index e3a0fcc86d..362ba571ff 100644 --- a/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationregression.go b/typedapi/esdsl/dataframeevaluationregression.go index 7c4c54bfb5..d519c849cc 100644 --- a/typedapi/esdsl/dataframeevaluationregression.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationregressionmetrics.go b/typedapi/esdsl/dataframeevaluationregressionmetrics.go index 0e7bc1584c..6db5fc5ff9 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetrics.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go b/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go index 4e3c814540..973f98778f 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go b/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go index 181585722c..52e959512a 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dataframepreviewconfig.go b/typedapi/esdsl/dataframepreviewconfig.go index e42a1cc0b3..3ea8096c0c 100644 --- a/typedapi/esdsl/dataframepreviewconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamlifecycle.go b/typedapi/esdsl/datastreamlifecycle.go index b84e2e0ff9..27f8b24e3e 100644 --- a/typedapi/esdsl/datastreamlifecycle.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamlifecycledownsampling.go b/typedapi/esdsl/datastreamlifecycledownsampling.go index bfe25b25d8..b21af051e7 100644 --- a/typedapi/esdsl/datastreamlifecycledownsampling.go +++ b/typedapi/esdsl/datastreamlifecycledownsampling.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamlifecyclerolloverconditions.go b/typedapi/esdsl/datastreamlifecyclerolloverconditions.go index 93afb8cd2d..71351e43b9 100644 --- a/typedapi/esdsl/datastreamlifecyclerolloverconditions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamlifecyclewithrollover.go b/typedapi/esdsl/datastreamlifecyclewithrollover.go index 3022bbacfe..d7e0e7f762 100644 --- a/typedapi/esdsl/datastreamlifecyclewithrollover.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamtimestamp.go b/typedapi/esdsl/datastreamtimestamp.go index aef2102b7c..75ae2f3ef5 100644 --- a/typedapi/esdsl/datastreamtimestamp.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datastreamvisibility.go b/typedapi/esdsl/datastreamvisibility.go index 391b097629..4debda28b7 100644 --- a/typedapi/esdsl/datastreamvisibility.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datedecayfunction.go b/typedapi/esdsl/datedecayfunction.go index f04ce021fa..93aed6c3b8 100644 --- a/typedapi/esdsl/datedecayfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datedistancefeaturequery.go b/typedapi/esdsl/datedistancefeaturequery.go index 17f6ad3a8c..2d2a195f9a 100644 --- a/typedapi/esdsl/datedistancefeaturequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datehistogramaggregation.go b/typedapi/esdsl/datehistogramaggregation.go index 178a088b21..f990a14107 100644 --- a/typedapi/esdsl/datehistogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datehistogramgrouping.go b/typedapi/esdsl/datehistogramgrouping.go index 4b145a9204..7b7099d373 100644 --- a/typedapi/esdsl/datehistogramgrouping.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dateindexnameprocessor.go b/typedapi/esdsl/dateindexnameprocessor.go index 2f8ec38aa9..2c9c40bf22 100644 --- a/typedapi/esdsl/dateindexnameprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/datenanosproperty.go b/typedapi/esdsl/datenanosproperty.go index acb0a8a787..83e8670791 100644 --- a/typedapi/esdsl/datenanosproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dateprocessor.go b/typedapi/esdsl/dateprocessor.go index 30e19018a6..676a8b17d3 100644 --- a/typedapi/esdsl/dateprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dateproperty.go b/typedapi/esdsl/dateproperty.go index 1672be09e5..c19589abe5 100644 --- a/typedapi/esdsl/dateproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/daterangeaggregation.go b/typedapi/esdsl/daterangeaggregation.go index 235b957a64..e6d4cbdf9e 100644 --- a/typedapi/esdsl/daterangeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/daterangeexpression.go b/typedapi/esdsl/daterangeexpression.go index f407d7bb04..d90e4a7707 100644 --- a/typedapi/esdsl/daterangeexpression.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/daterangeproperty.go b/typedapi/esdsl/daterangeproperty.go index 7d73ead826..1b4947ab04 100644 --- a/typedapi/esdsl/daterangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/daterangequery.go b/typedapi/esdsl/daterangequery.go index 7cf9e46b41..affdfd839e 100644 --- a/typedapi/esdsl/daterangequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -52,13 +52,6 @@ func (s *_dateRangeQuery) Format(dateformat string) *_dateRangeQuery { return s } -func (s *_dateRangeQuery) From(from string) *_dateRangeQuery { - - s.v.From = &from - - return s -} - func (s *_dateRangeQuery) Gt(datemath string) *_dateRangeQuery { s.v.Gt = &datemath @@ -107,13 +100,6 @@ func (s *_dateRangeQuery) TimeZone(timezone string) *_dateRangeQuery { return s } -func (s *_dateRangeQuery) To(to string) *_dateRangeQuery { - - s.v.To = &to - - return s -} - func (s *_dateRangeQuery) QueryCaster() *types.Query { container := types.NewQuery() container.Range = map[string]types.RangeQuery{ diff --git a/typedapi/esdsl/datetime.go b/typedapi/esdsl/datetime.go index 0ca17c2d7b..e4c0cb0a3f 100644 --- a/typedapi/esdsl/datetime.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/decayfunction.go b/typedapi/esdsl/decayfunction.go index fc4cdfb961..e5500fd8e7 100644 --- a/typedapi/esdsl/decayfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewDecayFunction() *_decayFunction { func (u *_decayFunction) UntypedDecayFunction(untypeddecayfunction types.UntypedDecayFunctionVariant) *_decayFunction { - u.v = &untypeddecayfunction + u.v = untypeddecayfunction.UntypedDecayFunctionCaster() return u } @@ -46,7 +46,7 @@ func (u *_untypedDecayFunction) DecayFunctionCaster() *types.DecayFunction { func (u *_decayFunction) DateDecayFunction(datedecayfunction types.DateDecayFunctionVariant) *_decayFunction { - u.v = &datedecayfunction + u.v = datedecayfunction.DateDecayFunctionCaster() return u } @@ -59,7 +59,7 @@ func (u *_dateDecayFunction) DecayFunctionCaster() *types.DecayFunction { func (u *_decayFunction) NumericDecayFunction(numericdecayfunction types.NumericDecayFunctionVariant) *_decayFunction { - u.v = &numericdecayfunction + u.v = numericdecayfunction.NumericDecayFunctionCaster() return u } @@ -72,7 +72,7 @@ func (u *_numericDecayFunction) DecayFunctionCaster() *types.DecayFunction { func (u *_decayFunction) GeoDecayFunction(geodecayfunction types.GeoDecayFunctionVariant) *_decayFunction { - u.v = &geodecayfunction + u.v = geodecayfunction.GeoDecayFunctionCaster() return u } diff --git a/typedapi/esdsl/decayplacement.go b/typedapi/esdsl/decayplacement.go index 7f501d2959..1a935ff33d 100644 --- a/typedapi/esdsl/decayplacement.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/decayplacementdatemathduration.go b/typedapi/esdsl/decayplacementdatemathduration.go index 4e75cbd950..ac88058fb9 100644 --- a/typedapi/esdsl/decayplacementdatemathduration.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/decayplacementdoubledouble.go b/typedapi/esdsl/decayplacementdoubledouble.go index b3e6e31faf..d670b8c02d 100644 --- a/typedapi/esdsl/decayplacementdoubledouble.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/decayplacementgeolocationdistance.go b/typedapi/esdsl/decayplacementgeolocationdistance.go index 9ffc8ddb4e..1f2d8e0321 100644 --- a/typedapi/esdsl/decayplacementgeolocationdistance.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/decimaldigittokenfilter.go b/typedapi/esdsl/decimaldigittokenfilter.go new file mode 100644 index 0000000000..81d74c659c --- /dev/null +++ b/typedapi/esdsl/decimaldigittokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _decimalDigitTokenFilter struct { + v *types.DecimalDigitTokenFilter +} + +func NewDecimalDigitTokenFilter() *_decimalDigitTokenFilter { + + return &_decimalDigitTokenFilter{v: types.NewDecimalDigitTokenFilter()} + +} + +func (s *_decimalDigitTokenFilter) Version(versionstring string) *_decimalDigitTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_decimalDigitTokenFilter) DecimalDigitTokenFilterCaster() *types.DecimalDigitTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/definition.go b/typedapi/esdsl/definition.go index 18dee8aa28..c672792c4f 100644 --- a/typedapi/esdsl/definition.go +++ b/typedapi/esdsl/definition.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/delayeddatacheckconfig.go b/typedapi/esdsl/delayeddatacheckconfig.go index 903d764d3f..15d1ffa7c2 100644 --- a/typedapi/esdsl/delayeddatacheckconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/deleteaction.go b/typedapi/esdsl/deleteaction.go index a4fea83f78..8578ec49b8 100644 --- a/typedapi/esdsl/deleteaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/deleteoperation.go b/typedapi/esdsl/deleteoperation.go index 4bc9fc02eb..76f1033868 100644 --- a/typedapi/esdsl/deleteoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/delimitedpayloadtokenfilter.go b/typedapi/esdsl/delimitedpayloadtokenfilter.go index 6f234994f1..24fe113041 100644 --- a/typedapi/esdsl/delimitedpayloadtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/densevectorindexoptions.go b/typedapi/esdsl/densevectorindexoptions.go index d96af224e3..7eaaab6eee 100644 --- a/typedapi/esdsl/densevectorindexoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/densevectorproperty.go b/typedapi/esdsl/densevectorproperty.go index ade5b01dc0..b3482def23 100644 --- a/typedapi/esdsl/densevectorproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dependency.go b/typedapi/esdsl/dependency.go index 2f9b03fb7c..4df70d5524 100644 --- a/typedapi/esdsl/dependency.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/derivativeaggregation.go b/typedapi/esdsl/derivativeaggregation.go index db1078ff8e..89f7a22e60 100644 --- a/typedapi/esdsl/derivativeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/detectionrule.go b/typedapi/esdsl/detectionrule.go index 5afff74241..dfa4f2be30 100644 --- a/typedapi/esdsl/detectionrule.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/detector.go b/typedapi/esdsl/detector.go index bfc744b0e9..a03ef64fd9 100644 --- a/typedapi/esdsl/detector.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/detectorupdate.go b/typedapi/esdsl/detectorupdate.go index cbc29697f4..8820a0fe79 100644 --- a/typedapi/esdsl/detectorupdate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dictionarydecompoundertokenfilter.go b/typedapi/esdsl/dictionarydecompoundertokenfilter.go index 02cff367de..b170af3a14 100644 --- a/typedapi/esdsl/dictionarydecompoundertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,13 +32,6 @@ func NewDictionaryDecompounderTokenFilter() *_dictionaryDecompounderTokenFilter } -func (s *_dictionaryDecompounderTokenFilter) HyphenationPatternsPath(hyphenationpatternspath string) *_dictionaryDecompounderTokenFilter { - - s.v.HyphenationPatternsPath = &hyphenationpatternspath - - return s -} - func (s *_dictionaryDecompounderTokenFilter) MaxSubwordSize(maxsubwordsize int) *_dictionaryDecompounderTokenFilter { s.v.MaxSubwordSize = &maxsubwordsize diff --git a/typedapi/esdsl/directgenerator.go b/typedapi/esdsl/directgenerator.go index 24d6507faf..bf78a86588 100644 --- a/typedapi/esdsl/directgenerator.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dismaxquery.go b/typedapi/esdsl/dismaxquery.go index 6b5d9e2b74..1ff6da8d68 100644 --- a/typedapi/esdsl/dismaxquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dissectprocessor.go b/typedapi/esdsl/dissectprocessor.go index 43f036561c..f6d929990f 100644 --- a/typedapi/esdsl/dissectprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/distancefeaturequery.go b/typedapi/esdsl/distancefeaturequery.go index c737645ece..abde1b7b13 100644 --- a/typedapi/esdsl/distancefeaturequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewDistanceFeatureQuery() *_distanceFeatureQuery { func (u *_distanceFeatureQuery) UntypedDistanceFeatureQuery(untypeddistancefeaturequery types.UntypedDistanceFeatureQueryVariant) *_distanceFeatureQuery { - u.v = &untypeddistancefeaturequery + u.v = untypeddistancefeaturequery.UntypedDistanceFeatureQueryCaster() return u } @@ -46,7 +46,7 @@ func (u *_untypedDistanceFeatureQuery) DistanceFeatureQueryCaster() *types.Dista func (u *_distanceFeatureQuery) GeoDistanceFeatureQuery(geodistancefeaturequery types.GeoDistanceFeatureQueryVariant) *_distanceFeatureQuery { - u.v = &geodistancefeaturequery + u.v = geodistancefeaturequery.GeoDistanceFeatureQueryCaster() return u } @@ -59,7 +59,7 @@ func (u *_geoDistanceFeatureQuery) DistanceFeatureQueryCaster() *types.DistanceF func (u *_distanceFeatureQuery) DateDistanceFeatureQuery(datedistancefeaturequery types.DateDistanceFeatureQueryVariant) *_distanceFeatureQuery { - u.v = &datedistancefeaturequery + u.v = datedistancefeaturequery.DateDistanceFeatureQueryCaster() return u } diff --git a/typedapi/esdsl/diversifiedsampleraggregation.go b/typedapi/esdsl/diversifiedsampleraggregation.go index 4c35c22da8..4e9a137f4e 100644 --- a/typedapi/esdsl/diversifiedsampleraggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/document.go b/typedapi/esdsl/document.go index d8108c5501..0b54710180 100644 --- a/typedapi/esdsl/document.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/documentrating.go b/typedapi/esdsl/documentrating.go index c2c2dfbf18..d1512e19a0 100644 --- a/typedapi/esdsl/documentrating.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dotexpanderprocessor.go b/typedapi/esdsl/dotexpanderprocessor.go index a63d7c0981..3c3dab3bd3 100644 --- a/typedapi/esdsl/dotexpanderprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/doublenumberproperty.go b/typedapi/esdsl/doublenumberproperty.go index 5aac801742..d4b2579e10 100644 --- a/typedapi/esdsl/doublenumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/doublerangeproperty.go b/typedapi/esdsl/doublerangeproperty.go index cf0a937617..989d28e089 100644 --- a/typedapi/esdsl/doublerangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/downsampleaction.go b/typedapi/esdsl/downsampleaction.go index ba1a39c9f9..adc057c93f 100644 --- a/typedapi/esdsl/downsampleaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/downsampleconfig.go b/typedapi/esdsl/downsampleconfig.go index 992c79212a..90032f17c4 100644 --- a/typedapi/esdsl/downsampleconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/downsamplinground.go b/typedapi/esdsl/downsamplinground.go index 53ba6d7fd4..147cca30d1 100644 --- a/typedapi/esdsl/downsamplinground.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dropprocessor.go b/typedapi/esdsl/dropprocessor.go index 2ecb3d3c5c..fa13e76c90 100644 --- a/typedapi/esdsl/dropprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/duration.go b/typedapi/esdsl/duration.go index 6eec17a2f3..a6bb1e0906 100644 --- a/typedapi/esdsl/duration.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/durationvalueunitmillis.go b/typedapi/esdsl/durationvalueunitmillis.go index e0f53031f6..4556ab682f 100644 --- a/typedapi/esdsl/durationvalueunitmillis.go +++ b/typedapi/esdsl/durationvalueunitmillis.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dutchanalyzer.go b/typedapi/esdsl/dutchanalyzer.go index 2a57523e4b..711655c93f 100644 --- a/typedapi/esdsl/dutchanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_dutchAnalyzer) StemExclusion(stemexclusions ...string) *_dutchAnalyzer return s } -func (s *_dutchAnalyzer) Stopwords(stopwords ...string) *_dutchAnalyzer { +func (s *_dutchAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_dutchAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/dutchstemtokenfilter.go b/typedapi/esdsl/dutchstemtokenfilter.go new file mode 100644 index 0000000000..7561369cdd --- /dev/null +++ b/typedapi/esdsl/dutchstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _dutchStemTokenFilter struct { + v *types.DutchStemTokenFilter +} + +func NewDutchStemTokenFilter() *_dutchStemTokenFilter { + + return &_dutchStemTokenFilter{v: types.NewDutchStemTokenFilter()} + +} + +func (s *_dutchStemTokenFilter) Version(versionstring string) *_dutchStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_dutchStemTokenFilter) DutchStemTokenFilterCaster() *types.DutchStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/dynamicproperty.go b/typedapi/esdsl/dynamicproperty.go index e8856bc133..0857dac28c 100644 --- a/typedapi/esdsl/dynamicproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/dynamictemplate.go b/typedapi/esdsl/dynamictemplate.go index 610547fb7e..ba73b7ac37 100644 --- a/typedapi/esdsl/dynamictemplate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/edgengramtokenfilter.go b/typedapi/esdsl/edgengramtokenfilter.go index 0cc450ac65..a22266453c 100644 --- a/typedapi/esdsl/edgengramtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/edgengramtokenizer.go b/typedapi/esdsl/edgengramtokenizer.go index 92acbde548..a749340497 100644 --- a/typedapi/esdsl/edgengramtokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/elasticsearchservicesettings.go b/typedapi/esdsl/elasticsearchservicesettings.go index 29b7eabd5c..ab7fe6fe03 100644 --- a/typedapi/esdsl/elasticsearchservicesettings.go +++ b/typedapi/esdsl/elasticsearchservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/elasticsearchtasksettings.go b/typedapi/esdsl/elasticsearchtasksettings.go index 1ea6081876..2c16ccf525 100644 --- a/typedapi/esdsl/elasticsearchtasksettings.go +++ b/typedapi/esdsl/elasticsearchtasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/elisiontokenfilter.go b/typedapi/esdsl/elisiontokenfilter.go index f3df4ef22d..6b7c9cd275 100644 --- a/typedapi/esdsl/elisiontokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/elserservicesettings.go b/typedapi/esdsl/elserservicesettings.go index 9a16464d46..bf8f788482 100644 --- a/typedapi/esdsl/elserservicesettings.go +++ b/typedapi/esdsl/elserservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/emailaction.go b/typedapi/esdsl/emailaction.go index 8c033595d3..ccc8e9bb06 100644 --- a/typedapi/esdsl/emailaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/emailattachmentcontainer.go b/typedapi/esdsl/emailattachmentcontainer.go index 4449af29e3..97b1dba4a7 100644 --- a/typedapi/esdsl/emailattachmentcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/emailbody.go b/typedapi/esdsl/emailbody.go index 040512ebd6..880a446f48 100644 --- a/typedapi/esdsl/emailbody.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/emptyobject.go b/typedapi/esdsl/emptyobject.go index a6f68edf97..1008960422 100644 --- a/typedapi/esdsl/emptyobject.go +++ b/typedapi/esdsl/emptyobject.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/englishanalyzer.go b/typedapi/esdsl/englishanalyzer.go index 32789d17a1..f10588a48f 100644 --- a/typedapi/esdsl/englishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_englishAnalyzer) StemExclusion(stemexclusions ...string) *_englishAnal return s } -func (s *_englishAnalyzer) Stopwords(stopwords ...string) *_englishAnalyzer { +func (s *_englishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_englishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/enrichpolicy.go b/typedapi/esdsl/enrichpolicy.go index 2300151713..2357121b7f 100644 --- a/typedapi/esdsl/enrichpolicy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/enrichprocessor.go b/typedapi/esdsl/enrichprocessor.go index 7d0b2e31bc..fd079f6b1d 100644 --- a/typedapi/esdsl/enrichprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ensemble.go b/typedapi/esdsl/ensemble.go index c7f32b0662..a72baeac88 100644 --- a/typedapi/esdsl/ensemble.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/epochtimeunitmillis.go b/typedapi/esdsl/epochtimeunitmillis.go index 74059deda3..2de216fee5 100644 --- a/typedapi/esdsl/epochtimeunitmillis.go +++ b/typedapi/esdsl/epochtimeunitmillis.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/epochtimeunitseconds.go b/typedapi/esdsl/epochtimeunitseconds.go index 311e7ed1c9..83b89272f9 100644 --- a/typedapi/esdsl/epochtimeunitseconds.go +++ b/typedapi/esdsl/epochtimeunitseconds.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/estoniananalyzer.go b/typedapi/esdsl/estoniananalyzer.go index 6d78f7edd9..834c043ea2 100644 --- a/typedapi/esdsl/estoniananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewEstonianAnalyzer() *_estonianAnalyzer { } -func (s *_estonianAnalyzer) Stopwords(stopwords ...string) *_estonianAnalyzer { +func (s *_estonianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_estonianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/ewmamodelsettings.go b/typedapi/esdsl/ewmamodelsettings.go index 54d5936850..db19b0cc13 100644 --- a/typedapi/esdsl/ewmamodelsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ewmamovingaverageaggregation.go b/typedapi/esdsl/ewmamovingaverageaggregation.go index bb181117ce..061b12b135 100644 --- a/typedapi/esdsl/ewmamovingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/executionstate.go b/typedapi/esdsl/executionstate.go index f79c584038..8b01f2a920 100644 --- a/typedapi/esdsl/executionstate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/existsquery.go b/typedapi/esdsl/existsquery.go index 8decbb0bc4..5b79c01ebb 100644 --- a/typedapi/esdsl/existsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/expandwildcards.go b/typedapi/esdsl/expandwildcards.go index 43e8f78b52..e4d4f9ee44 100644 --- a/typedapi/esdsl/expandwildcards.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/explorecontrols.go b/typedapi/esdsl/explorecontrols.go index 96393fb773..3814c82e00 100644 --- a/typedapi/esdsl/explorecontrols.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/extendedboundsdouble.go b/typedapi/esdsl/extendedboundsdouble.go index f0cb3cb8a5..181adaac80 100644 --- a/typedapi/esdsl/extendedboundsdouble.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/extendedboundsfielddatemath.go b/typedapi/esdsl/extendedboundsfielddatemath.go index 08935af0f4..caa19eff96 100644 --- a/typedapi/esdsl/extendedboundsfielddatemath.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/extendedstatsaggregation.go b/typedapi/esdsl/extendedstatsaggregation.go index 5f07de65ee..0dd07786cc 100644 --- a/typedapi/esdsl/extendedstatsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/extendedstatsbucketaggregation.go b/typedapi/esdsl/extendedstatsbucketaggregation.go index c2377ba4a0..d2842eb282 100644 --- a/typedapi/esdsl/extendedstatsbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/failprocessor.go b/typedapi/esdsl/failprocessor.go index de7b06364a..1e5cd048df 100644 --- a/typedapi/esdsl/failprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/featureenabled.go b/typedapi/esdsl/featureenabled.go index 091c59fc2b..2b1418e2df 100644 --- a/typedapi/esdsl/featureenabled.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/featureextractor.go b/typedapi/esdsl/featureextractor.go index 6cbcbda2a8..314ef1d1df 100644 --- a/typedapi/esdsl/featureextractor.go +++ b/typedapi/esdsl/featureextractor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldaliasproperty.go b/typedapi/esdsl/fieldaliasproperty.go index 2b5f4187fa..06edd09999 100644 --- a/typedapi/esdsl/fieldaliasproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldandformat.go b/typedapi/esdsl/fieldandformat.go index 74cdaeb9a5..96ef4db231 100644 --- a/typedapi/esdsl/fieldandformat.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldcollapse.go b/typedapi/esdsl/fieldcollapse.go index 298fa7029b..fdcefe1a1e 100644 --- a/typedapi/esdsl/fieldcollapse.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fielddatafrequencyfilter.go b/typedapi/esdsl/fielddatafrequencyfilter.go index 2ebe5802ae..77d166a11b 100644 --- a/typedapi/esdsl/fielddatafrequencyfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fielddatemath.go b/typedapi/esdsl/fielddatemath.go index 9229100b1b..4930d3b928 100644 --- a/typedapi/esdsl/fielddatemath.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldlookup.go b/typedapi/esdsl/fieldlookup.go index 06a1b97bca..f96f8ec277 100644 --- a/typedapi/esdsl/fieldlookup.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldmetric.go b/typedapi/esdsl/fieldmetric.go index ba71690690..c99138cafe 100644 --- a/typedapi/esdsl/fieldmetric.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldnamesfield.go b/typedapi/esdsl/fieldnamesfield.go index e4a8072d16..e27988a398 100644 --- a/typedapi/esdsl/fieldnamesfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fields.go b/typedapi/esdsl/fields.go index f8f02d538e..e54b57ece1 100644 --- a/typedapi/esdsl/fields.go +++ b/typedapi/esdsl/fields.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldsecurity.go b/typedapi/esdsl/fieldsecurity.go index a98ae5f028..06f5622789 100644 --- a/typedapi/esdsl/fieldsecurity.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldsort.go b/typedapi/esdsl/fieldsort.go index 00f4048bf8..c637880911 100644 --- a/typedapi/esdsl/fieldsort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldsuggester.go b/typedapi/esdsl/fieldsuggester.go index c2733107a9..53b4dde0bd 100644 --- a/typedapi/esdsl/fieldsuggester.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldvalue.go b/typedapi/esdsl/fieldvalue.go index 8fb06f5682..2d4fb1b545 100644 --- a/typedapi/esdsl/fieldvalue.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fieldvaluefactorscorefunction.go b/typedapi/esdsl/fieldvaluefactorscorefunction.go index 0ce752a362..3b7f0ef31f 100644 --- a/typedapi/esdsl/fieldvaluefactorscorefunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fillmaskinferenceoptions.go b/typedapi/esdsl/fillmaskinferenceoptions.go index 6ef292a888..66eb8193dc 100644 --- a/typedapi/esdsl/fillmaskinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fillmaskinferenceupdateoptions.go b/typedapi/esdsl/fillmaskinferenceupdateoptions.go index f10023840e..75a39a8cab 100644 --- a/typedapi/esdsl/fillmaskinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringadvancedsnippet.go b/typedapi/esdsl/filteringadvancedsnippet.go index 8241909333..3b21b096ea 100644 --- a/typedapi/esdsl/filteringadvancedsnippet.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringconfig.go b/typedapi/esdsl/filteringconfig.go index 53c4a08e80..e644b55436 100644 --- a/typedapi/esdsl/filteringconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringrule.go b/typedapi/esdsl/filteringrule.go index ce0220694a..52a904fb07 100644 --- a/typedapi/esdsl/filteringrule.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringrules.go b/typedapi/esdsl/filteringrules.go index b476afc2bd..322294723a 100644 --- a/typedapi/esdsl/filteringrules.go +++ b/typedapi/esdsl/filteringrules.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringrulesvalidation.go b/typedapi/esdsl/filteringrulesvalidation.go index 0e2267f6aa..30346a4367 100644 --- a/typedapi/esdsl/filteringrulesvalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filteringvalidation.go b/typedapi/esdsl/filteringvalidation.go index 5995520650..edae588743 100644 --- a/typedapi/esdsl/filteringvalidation.go +++ b/typedapi/esdsl/filteringvalidation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filterref.go b/typedapi/esdsl/filterref.go index 291eaecb23..97c54acea1 100644 --- a/typedapi/esdsl/filterref.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/filtersaggregation.go b/typedapi/esdsl/filtersaggregation.go index c623bc059b..0ed2673082 100644 --- a/typedapi/esdsl/filtersaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fingerprintanalyzer.go b/typedapi/esdsl/fingerprintanalyzer.go index 235732e9dc..63f07fa8c5 100644 --- a/typedapi/esdsl/fingerprintanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -46,9 +46,9 @@ func (s *_fingerprintAnalyzer) Separator(separator string) *_fingerprintAnalyzer return s } -func (s *_fingerprintAnalyzer) Stopwords(stopwords ...string) *_fingerprintAnalyzer { +func (s *_fingerprintAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_fingerprintAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/fingerprintprocessor.go b/typedapi/esdsl/fingerprintprocessor.go index 2430268936..ac73c92caa 100644 --- a/typedapi/esdsl/fingerprintprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fingerprinttokenfilter.go b/typedapi/esdsl/fingerprinttokenfilter.go index 3a3a81fca5..7b0b915efb 100644 --- a/typedapi/esdsl/fingerprinttokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/finnishanalyzer.go b/typedapi/esdsl/finnishanalyzer.go index 0e19144882..3be0257074 100644 --- a/typedapi/esdsl/finnishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_finnishAnalyzer) StemExclusion(stemexclusions ...string) *_finnishAnal return s } -func (s *_finnishAnalyzer) Stopwords(stopwords ...string) *_finnishAnalyzer { +func (s *_finnishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_finnishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/flattenedproperty.go b/typedapi/esdsl/flattenedproperty.go index 83eadd7a63..373cac8d87 100644 --- a/typedapi/esdsl/flattenedproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -181,6 +181,16 @@ func (s *_flattenedProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticso return s } +func (s *_flattenedProperty) TimeSeriesDimensions(timeseriesdimensions ...string) *_flattenedProperty { + + for _, v := range timeseriesdimensions { + + s.v.TimeSeriesDimensions = append(s.v.TimeSeriesDimensions, v) + + } + return s +} + func (s *_flattenedProperty) DynamicTemplateCaster() *types.DynamicTemplate { container := types.NewDynamicTemplate() diff --git a/typedapi/esdsl/flattengraphtokenfilter.go b/typedapi/esdsl/flattengraphtokenfilter.go new file mode 100644 index 0000000000..8081e4bfdf --- /dev/null +++ b/typedapi/esdsl/flattengraphtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _flattenGraphTokenFilter struct { + v *types.FlattenGraphTokenFilter +} + +func NewFlattenGraphTokenFilter() *_flattenGraphTokenFilter { + + return &_flattenGraphTokenFilter{v: types.NewFlattenGraphTokenFilter()} + +} + +func (s *_flattenGraphTokenFilter) Version(versionstring string) *_flattenGraphTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_flattenGraphTokenFilter) FlattenGraphTokenFilterCaster() *types.FlattenGraphTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/floatnumberproperty.go b/typedapi/esdsl/floatnumberproperty.go index 1416a083e2..3a82e2d943 100644 --- a/typedapi/esdsl/floatnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/floatrangeproperty.go b/typedapi/esdsl/floatrangeproperty.go index 35a8db9ce0..dc0b6e5093 100644 --- a/typedapi/esdsl/floatrangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/forcemergeaction.go b/typedapi/esdsl/forcemergeaction.go index b0c0547dac..049fa90125 100644 --- a/typedapi/esdsl/forcemergeaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/foreachprocessor.go b/typedapi/esdsl/foreachprocessor.go index 21daa1162e..e9840068d0 100644 --- a/typedapi/esdsl/foreachprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/frenchanalyzer.go b/typedapi/esdsl/frenchanalyzer.go index c76b552e95..f73cf56a63 100644 --- a/typedapi/esdsl/frenchanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_frenchAnalyzer) StemExclusion(stemexclusions ...string) *_frenchAnalyz return s } -func (s *_frenchAnalyzer) Stopwords(stopwords ...string) *_frenchAnalyzer { +func (s *_frenchAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_frenchAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/frenchstemtokenfilter.go b/typedapi/esdsl/frenchstemtokenfilter.go new file mode 100644 index 0000000000..94ac902ff0 --- /dev/null +++ b/typedapi/esdsl/frenchstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _frenchStemTokenFilter struct { + v *types.FrenchStemTokenFilter +} + +func NewFrenchStemTokenFilter() *_frenchStemTokenFilter { + + return &_frenchStemTokenFilter{v: types.NewFrenchStemTokenFilter()} + +} + +func (s *_frenchStemTokenFilter) Version(versionstring string) *_frenchStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_frenchStemTokenFilter) FrenchStemTokenFilterCaster() *types.FrenchStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/frequencyencodingpreprocessor.go b/typedapi/esdsl/frequencyencodingpreprocessor.go index 0a65d85c7d..67a3511983 100644 --- a/typedapi/esdsl/frequencyencodingpreprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/frequentitemsetsaggregation.go b/typedapi/esdsl/frequentitemsetsaggregation.go index 99ecabbb59..f7ac8fa89a 100644 --- a/typedapi/esdsl/frequentitemsetsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/frequentitemsetsfield.go b/typedapi/esdsl/frequentitemsetsfield.go index cc8e7e7ecb..2f5d94a5c2 100644 --- a/typedapi/esdsl/frequentitemsetsfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/functionscore.go b/typedapi/esdsl/functionscore.go index a90fc6fb7f..a102ea1330 100644 --- a/typedapi/esdsl/functionscore.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/functionscorequery.go b/typedapi/esdsl/functionscorequery.go index a99aa525ec..6bfc5d61d3 100644 --- a/typedapi/esdsl/functionscorequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fuzziness.go b/typedapi/esdsl/fuzziness.go index 8872b65932..fcd99decf0 100644 --- a/typedapi/esdsl/fuzziness.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/fuzzyquery.go b/typedapi/esdsl/fuzzyquery.go index 5b7fc94368..e44c6aa022 100644 --- a/typedapi/esdsl/fuzzyquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/galiciananalyzer.go b/typedapi/esdsl/galiciananalyzer.go index cfa54b49cb..bbe7cd12f2 100644 --- a/typedapi/esdsl/galiciananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_galicianAnalyzer) StemExclusion(stemexclusions ...string) *_galicianAn return s } -func (s *_galicianAnalyzer) Stopwords(stopwords ...string) *_galicianAnalyzer { +func (s *_galicianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_galicianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/gcsrepository.go b/typedapi/esdsl/gcsrepository.go index 774d696fa2..ef145cec4d 100644 --- a/typedapi/esdsl/gcsrepository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/gcsrepositorysettings.go b/typedapi/esdsl/gcsrepositorysettings.go index 240c28ccd3..400f712dce 100644 --- a/typedapi/esdsl/gcsrepositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geoboundingboxquery.go b/typedapi/esdsl/geoboundingboxquery.go index 9b09cf5f1b..c94d31335e 100644 --- a/typedapi/esdsl/geoboundingboxquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geobounds.go b/typedapi/esdsl/geobounds.go index ff610e2cf6..eca60c0708 100644 --- a/typedapi/esdsl/geobounds.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewGeoBounds() *_geoBounds { func (u *_geoBounds) CoordsGeoBounds(coordsgeobounds types.CoordsGeoBoundsVariant) *_geoBounds { - u.v = &coordsgeobounds + u.v = coordsgeobounds.CoordsGeoBoundsCaster() return u } @@ -46,7 +46,7 @@ func (u *_coordsGeoBounds) GeoBoundsCaster() *types.GeoBounds { func (u *_geoBounds) TopLeftBottomRightGeoBounds(topleftbottomrightgeobounds types.TopLeftBottomRightGeoBoundsVariant) *_geoBounds { - u.v = &topleftbottomrightgeobounds + u.v = topleftbottomrightgeobounds.TopLeftBottomRightGeoBoundsCaster() return u } @@ -59,7 +59,7 @@ func (u *_topLeftBottomRightGeoBounds) GeoBoundsCaster() *types.GeoBounds { func (u *_geoBounds) TopRightBottomLeftGeoBounds(toprightbottomleftgeobounds types.TopRightBottomLeftGeoBoundsVariant) *_geoBounds { - u.v = &toprightbottomleftgeobounds + u.v = toprightbottomleftgeobounds.TopRightBottomLeftGeoBoundsCaster() return u } @@ -72,7 +72,7 @@ func (u *_topRightBottomLeftGeoBounds) GeoBoundsCaster() *types.GeoBounds { func (u *_geoBounds) WktGeoBounds(wktgeobounds types.WktGeoBoundsVariant) *_geoBounds { - u.v = &wktgeobounds + u.v = wktgeobounds.WktGeoBoundsCaster() return u } diff --git a/typedapi/esdsl/geoboundsaggregation.go b/typedapi/esdsl/geoboundsaggregation.go index be3a350ff4..827449cb7b 100644 --- a/typedapi/esdsl/geoboundsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geocentroidaggregation.go b/typedapi/esdsl/geocentroidaggregation.go index 1b1ee8a290..cf63612e32 100644 --- a/typedapi/esdsl/geocentroidaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geodecayfunction.go b/typedapi/esdsl/geodecayfunction.go index d8d4caaeff..3e8555736c 100644 --- a/typedapi/esdsl/geodecayfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geodistanceaggregation.go b/typedapi/esdsl/geodistanceaggregation.go index 1c9f3f0f07..b8e084af8b 100644 --- a/typedapi/esdsl/geodistanceaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geodistancefeaturequery.go b/typedapi/esdsl/geodistancefeaturequery.go index a45c6ddc6d..ae7ac346d2 100644 --- a/typedapi/esdsl/geodistancefeaturequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geodistancequery.go b/typedapi/esdsl/geodistancequery.go index 0306b69f33..4b199d5b68 100644 --- a/typedapi/esdsl/geodistancequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geodistancesort.go b/typedapi/esdsl/geodistancesort.go index 342edfc77d..41663b0abd 100644 --- a/typedapi/esdsl/geodistancesort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geogridprocessor.go b/typedapi/esdsl/geogridprocessor.go index 8c1615fd0f..cbf936dd7c 100644 --- a/typedapi/esdsl/geogridprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geogridquery.go b/typedapi/esdsl/geogridquery.go index da8342c9f1..dd411ea123 100644 --- a/typedapi/esdsl/geogridquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -53,23 +53,23 @@ func (s *_geoGridQuery) Boost(boost float32) *_geoGridQuery { return s } -func (s *_geoGridQuery) Geogrid(geotile string) *_geoGridQuery { +func (s *_geoGridQuery) Geohash(geohash string) *_geoGridQuery { - s.v.Geogrid = &geotile + s.v.Geohash = &geohash return s } -func (s *_geoGridQuery) Geohash(geohash string) *_geoGridQuery { +func (s *_geoGridQuery) Geohex(geohexcell string) *_geoGridQuery { - s.v.Geohash = &geohash + s.v.Geohex = &geohexcell return s } -func (s *_geoGridQuery) Geohex(geohexcell string) *_geoGridQuery { +func (s *_geoGridQuery) Geotile(geotile string) *_geoGridQuery { - s.v.Geohex = &geohexcell + s.v.Geotile = &geotile return s } diff --git a/typedapi/esdsl/geohashgridaggregation.go b/typedapi/esdsl/geohashgridaggregation.go index e86ea8ea4e..683a3bec90 100644 --- a/typedapi/esdsl/geohashgridaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geohashlocation.go b/typedapi/esdsl/geohashlocation.go index 5f8a228296..d5b65b8155 100644 --- a/typedapi/esdsl/geohashlocation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geohashprecision.go b/typedapi/esdsl/geohashprecision.go index a6f7c1651c..9efcadccf7 100644 --- a/typedapi/esdsl/geohashprecision.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geohexgridaggregation.go b/typedapi/esdsl/geohexgridaggregation.go index 4bc5151047..521cdad1f3 100644 --- a/typedapi/esdsl/geohexgridaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geoipprocessor.go b/typedapi/esdsl/geoipprocessor.go index aab1ea1c75..f97dba0bf8 100644 --- a/typedapi/esdsl/geoipprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geolineaggregation.go b/typedapi/esdsl/geolineaggregation.go index a45f3bea6a..ec6d88412a 100644 --- a/typedapi/esdsl/geolineaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geolinepoint.go b/typedapi/esdsl/geolinepoint.go index 6d90fa972e..d0429bfc67 100644 --- a/typedapi/esdsl/geolinepoint.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geolinesort.go b/typedapi/esdsl/geolinesort.go index 861177d3d5..75ae1f376a 100644 --- a/typedapi/esdsl/geolinesort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geolocation.go b/typedapi/esdsl/geolocation.go index d09a313f2a..1ff51f0a6c 100644 --- a/typedapi/esdsl/geolocation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewGeoLocation() *_geoLocation { func (u *_geoLocation) LatLonGeoLocation(latlongeolocation types.LatLonGeoLocationVariant) *_geoLocation { - u.v = &latlongeolocation + u.v = latlongeolocation.LatLonGeoLocationCaster() return u } @@ -46,7 +46,7 @@ func (u *_latLonGeoLocation) GeoLocationCaster() *types.GeoLocation { func (u *_geoLocation) GeoHashLocation(geohashlocation types.GeoHashLocationVariant) *_geoLocation { - u.v = &geohashlocation + u.v = geohashlocation.GeoHashLocationCaster() return u } diff --git a/typedapi/esdsl/geopointproperty.go b/typedapi/esdsl/geopointproperty.go index e559d6e0dd..f31f5f5c13 100644 --- a/typedapi/esdsl/geopointproperty.go +++ b/typedapi/esdsl/geopointproperty.go @@ -16,13 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl import ( "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geopointmetrictype" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) @@ -181,6 +182,12 @@ func (s *_geoPointProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsou return s } +func (s *_geoPointProperty) TimeSeriesMetric(timeseriesmetric geopointmetrictype.GeoPointMetricType) *_geoPointProperty { + + s.v.TimeSeriesMetric = ×eriesmetric + return s +} + func (s *_geoPointProperty) DynamicTemplateCaster() *types.DynamicTemplate { container := types.NewDynamicTemplate() diff --git a/typedapi/esdsl/geopolygonpoints.go b/typedapi/esdsl/geopolygonpoints.go index 2961f4b0bb..7619d594d0 100644 --- a/typedapi/esdsl/geopolygonpoints.go +++ b/typedapi/esdsl/geopolygonpoints.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geopolygonquery.go b/typedapi/esdsl/geopolygonquery.go index db30361849..bb7e85bd20 100644 --- a/typedapi/esdsl/geopolygonquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geoshapefieldquery.go b/typedapi/esdsl/geoshapefieldquery.go index 08fe0b43ec..242d31183d 100644 --- a/typedapi/esdsl/geoshapefieldquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geoshapeproperty.go b/typedapi/esdsl/geoshapeproperty.go index 25a8035763..680a1c59de 100644 --- a/typedapi/esdsl/geoshapeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geoshapequery.go b/typedapi/esdsl/geoshapequery.go index 31ceb7bec0..d2f5811a3b 100644 --- a/typedapi/esdsl/geoshapequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/geotilegridaggregation.go b/typedapi/esdsl/geotilegridaggregation.go index b2d5535e1d..a220e67481 100644 --- a/typedapi/esdsl/geotilegridaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/germananalyzer.go b/typedapi/esdsl/germananalyzer.go index 952da1ea15..40ddc5d01b 100644 --- a/typedapi/esdsl/germananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_germanAnalyzer) StemExclusion(stemexclusions ...string) *_germanAnalyz return s } -func (s *_germanAnalyzer) Stopwords(stopwords ...string) *_germanAnalyzer { +func (s *_germanAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_germanAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/germannormalizationtokenfilter.go b/typedapi/esdsl/germannormalizationtokenfilter.go new file mode 100644 index 0000000000..8386022b80 --- /dev/null +++ b/typedapi/esdsl/germannormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _germanNormalizationTokenFilter struct { + v *types.GermanNormalizationTokenFilter +} + +func NewGermanNormalizationTokenFilter() *_germanNormalizationTokenFilter { + + return &_germanNormalizationTokenFilter{v: types.NewGermanNormalizationTokenFilter()} + +} + +func (s *_germanNormalizationTokenFilter) Version(versionstring string) *_germanNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_germanNormalizationTokenFilter) GermanNormalizationTokenFilterCaster() *types.GermanNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/germanstemtokenfilter.go b/typedapi/esdsl/germanstemtokenfilter.go new file mode 100644 index 0000000000..91e1225500 --- /dev/null +++ b/typedapi/esdsl/germanstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _germanStemTokenFilter struct { + v *types.GermanStemTokenFilter +} + +func NewGermanStemTokenFilter() *_germanStemTokenFilter { + + return &_germanStemTokenFilter{v: types.NewGermanStemTokenFilter()} + +} + +func (s *_germanStemTokenFilter) Version(versionstring string) *_germanStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_germanStemTokenFilter) GermanStemTokenFilterCaster() *types.GermanStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/globalaggregation.go b/typedapi/esdsl/globalaggregation.go index bab60cda93..f3944b9897 100644 --- a/typedapi/esdsl/globalaggregation.go +++ b/typedapi/esdsl/globalaggregation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/globalprivilege.go b/typedapi/esdsl/globalprivilege.go index 899764fd3f..7a525b9d14 100644 --- a/typedapi/esdsl/globalprivilege.go +++ b/typedapi/esdsl/globalprivilege.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/googleaistudioservicesettings.go b/typedapi/esdsl/googleaistudioservicesettings.go index aedb3dedbf..8877f50f4d 100644 --- a/typedapi/esdsl/googleaistudioservicesettings.go +++ b/typedapi/esdsl/googleaistudioservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/googlenormalizeddistanceheuristic.go b/typedapi/esdsl/googlenormalizeddistanceheuristic.go index 7d6b129cee..23e34ddeae 100644 --- a/typedapi/esdsl/googlenormalizeddistanceheuristic.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/googlevertexaiservicesettings.go b/typedapi/esdsl/googlevertexaiservicesettings.go index 16b4d49e56..bfcbf2d696 100644 --- a/typedapi/esdsl/googlevertexaiservicesettings.go +++ b/typedapi/esdsl/googlevertexaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/googlevertexaitasksettings.go b/typedapi/esdsl/googlevertexaitasksettings.go index 8b971b4726..bdea8135c3 100644 --- a/typedapi/esdsl/googlevertexaitasksettings.go +++ b/typedapi/esdsl/googlevertexaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/grantapikey.go b/typedapi/esdsl/grantapikey.go index a97e73f08e..f62f09f0e0 100644 --- a/typedapi/esdsl/grantapikey.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/greaterthanvalidation.go b/typedapi/esdsl/greaterthanvalidation.go index 81cabd658d..928efe0619 100644 --- a/typedapi/esdsl/greaterthanvalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/greekanalyzer.go b/typedapi/esdsl/greekanalyzer.go index 140696c9ef..d71923ebb7 100644 --- a/typedapi/esdsl/greekanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewGreekAnalyzer() *_greekAnalyzer { } -func (s *_greekAnalyzer) Stopwords(stopwords ...string) *_greekAnalyzer { +func (s *_greekAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_greekAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/grokprocessor.go b/typedapi/esdsl/grokprocessor.go index d330bf62ea..16c6e627fa 100644 --- a/typedapi/esdsl/grokprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/groupings.go b/typedapi/esdsl/groupings.go index f81f477457..949bd28fea 100644 --- a/typedapi/esdsl/groupings.go +++ b/typedapi/esdsl/groupings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/gsubprocessor.go b/typedapi/esdsl/gsubprocessor.go index 2aa5d48c3c..84c80b2421 100644 --- a/typedapi/esdsl/gsubprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/halffloatnumberproperty.go b/typedapi/esdsl/halffloatnumberproperty.go index 08d0e61610..a2b24f0da0 100644 --- a/typedapi/esdsl/halffloatnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/haschildquery.go b/typedapi/esdsl/haschildquery.go index 1ebbfcb59f..cd8beca038 100644 --- a/typedapi/esdsl/haschildquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hasparentquery.go b/typedapi/esdsl/hasparentquery.go index 635cc7f493..b9feac65a5 100644 --- a/typedapi/esdsl/hasparentquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hdrmethod.go b/typedapi/esdsl/hdrmethod.go index c7f1b281a8..74e969ecad 100644 --- a/typedapi/esdsl/hdrmethod.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/highlight.go b/typedapi/esdsl/highlight.go index c20af5959e..0e949fa29d 100644 --- a/typedapi/esdsl/highlight.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/highlightfield.go b/typedapi/esdsl/highlightfield.go index e8e1e8f5b6..a5cc06ddc5 100644 --- a/typedapi/esdsl/highlightfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hindianalyzer.go b/typedapi/esdsl/hindianalyzer.go index 59032976d5..294e8e541b 100644 --- a/typedapi/esdsl/hindianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_hindiAnalyzer) StemExclusion(stemexclusions ...string) *_hindiAnalyzer return s } -func (s *_hindiAnalyzer) Stopwords(stopwords ...string) *_hindiAnalyzer { +func (s *_hindiAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_hindiAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/hindinormalizationtokenfilter.go b/typedapi/esdsl/hindinormalizationtokenfilter.go new file mode 100644 index 0000000000..08fbd20a27 --- /dev/null +++ b/typedapi/esdsl/hindinormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _hindiNormalizationTokenFilter struct { + v *types.HindiNormalizationTokenFilter +} + +func NewHindiNormalizationTokenFilter() *_hindiNormalizationTokenFilter { + + return &_hindiNormalizationTokenFilter{v: types.NewHindiNormalizationTokenFilter()} + +} + +func (s *_hindiNormalizationTokenFilter) Version(versionstring string) *_hindiNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_hindiNormalizationTokenFilter) HindiNormalizationTokenFilterCaster() *types.HindiNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/hint.go b/typedapi/esdsl/hint.go index a489a39eef..a726ecff03 100644 --- a/typedapi/esdsl/hint.go +++ b/typedapi/esdsl/hint.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/histogramaggregation.go b/typedapi/esdsl/histogramaggregation.go index eee1e9b1d0..f3a7f8595b 100644 --- a/typedapi/esdsl/histogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/histogramgrouping.go b/typedapi/esdsl/histogramgrouping.go index 6c33116661..c37815db8a 100644 --- a/typedapi/esdsl/histogramgrouping.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/histogramproperty.go b/typedapi/esdsl/histogramproperty.go index 871c0c7bdf..95bc236f3f 100644 --- a/typedapi/esdsl/histogramproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/holtlinearmodelsettings.go b/typedapi/esdsl/holtlinearmodelsettings.go index 1a8f717cb9..1fe22abd7a 100644 --- a/typedapi/esdsl/holtlinearmodelsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/holtmovingaverageaggregation.go b/typedapi/esdsl/holtmovingaverageaggregation.go index ab5c858ce3..6ccb1287e7 100644 --- a/typedapi/esdsl/holtmovingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/holtwintersmodelsettings.go b/typedapi/esdsl/holtwintersmodelsettings.go index 1375426f74..8e5b33bb83 100644 --- a/typedapi/esdsl/holtwintersmodelsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/holtwintersmovingaverageaggregation.go b/typedapi/esdsl/holtwintersmovingaverageaggregation.go index 11dc2c864e..93827dc823 100644 --- a/typedapi/esdsl/holtwintersmovingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hop.go b/typedapi/esdsl/hop.go index 0bc67afb39..1e073f6e92 100644 --- a/typedapi/esdsl/hop.go +++ b/typedapi/esdsl/hop.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hourandminute.go b/typedapi/esdsl/hourandminute.go index d471b964d0..e3f0d3f9c8 100644 --- a/typedapi/esdsl/hourandminute.go +++ b/typedapi/esdsl/hourandminute.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hourlyschedule.go b/typedapi/esdsl/hourlyschedule.go index 2076c7a795..7f668fbdf7 100644 --- a/typedapi/esdsl/hourlyschedule.go +++ b/typedapi/esdsl/hourlyschedule.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/htmlstripcharfilter.go b/typedapi/esdsl/htmlstripcharfilter.go index c3dce0974b..d7f8cc24a0 100644 --- a/typedapi/esdsl/htmlstripcharfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/htmlstripprocessor.go b/typedapi/esdsl/htmlstripprocessor.go index fab046dd00..ba68fc50f0 100644 --- a/typedapi/esdsl/htmlstripprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpemailattachment.go b/typedapi/esdsl/httpemailattachment.go index f6374b7ded..7aa0ea41fa 100644 --- a/typedapi/esdsl/httpemailattachment.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpheaders.go b/typedapi/esdsl/httpheaders.go index d6fb818cf7..03b13c7636 100644 --- a/typedapi/esdsl/httpheaders.go +++ b/typedapi/esdsl/httpheaders.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpinput.go b/typedapi/esdsl/httpinput.go index 7978073d0d..f587075a3a 100644 --- a/typedapi/esdsl/httpinput.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpinputauthentication.go b/typedapi/esdsl/httpinputauthentication.go index faa814bfc2..cf9a0de9ce 100644 --- a/typedapi/esdsl/httpinputauthentication.go +++ b/typedapi/esdsl/httpinputauthentication.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpinputbasicauthentication.go b/typedapi/esdsl/httpinputbasicauthentication.go index e25b89f227..3a31a3ec3b 100644 --- a/typedapi/esdsl/httpinputbasicauthentication.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpinputproxy.go b/typedapi/esdsl/httpinputproxy.go index feef2e14c2..ceebf1d47b 100644 --- a/typedapi/esdsl/httpinputproxy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/httpinputrequestdefinition.go b/typedapi/esdsl/httpinputrequestdefinition.go index 5297e838c3..b7b9e549c7 100644 --- a/typedapi/esdsl/httpinputrequestdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/huggingfaceservicesettings.go b/typedapi/esdsl/huggingfaceservicesettings.go index 9cdaa02606..a260b7a3a4 100644 --- a/typedapi/esdsl/huggingfaceservicesettings.go +++ b/typedapi/esdsl/huggingfaceservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hungariananalyzer.go b/typedapi/esdsl/hungariananalyzer.go index f7d9133084..ee40a67e6d 100644 --- a/typedapi/esdsl/hungariananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_hungarianAnalyzer) StemExclusion(stemexclusions ...string) *_hungarian return s } -func (s *_hungarianAnalyzer) Stopwords(stopwords ...string) *_hungarianAnalyzer { +func (s *_hungarianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_hungarianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/hunspelltokenfilter.go b/typedapi/esdsl/hunspelltokenfilter.go index d3b71d3a5a..d270b1bf26 100644 --- a/typedapi/esdsl/hunspelltokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/hyphenationdecompoundertokenfilter.go b/typedapi/esdsl/hyphenationdecompoundertokenfilter.go index be3a602a1e..1cffd2703d 100644 --- a/typedapi/esdsl/hyphenationdecompoundertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -26,15 +26,19 @@ type _hyphenationDecompounderTokenFilter struct { v *types.HyphenationDecompounderTokenFilter } -func NewHyphenationDecompounderTokenFilter() *_hyphenationDecompounderTokenFilter { +func NewHyphenationDecompounderTokenFilter(hyphenationpatternspath string) *_hyphenationDecompounderTokenFilter { - return &_hyphenationDecompounderTokenFilter{v: types.NewHyphenationDecompounderTokenFilter()} + tmp := &_hyphenationDecompounderTokenFilter{v: types.NewHyphenationDecompounderTokenFilter()} + + tmp.HyphenationPatternsPath(hyphenationpatternspath) + + return tmp } func (s *_hyphenationDecompounderTokenFilter) HyphenationPatternsPath(hyphenationpatternspath string) *_hyphenationDecompounderTokenFilter { - s.v.HyphenationPatternsPath = &hyphenationpatternspath + s.v.HyphenationPatternsPath = hyphenationpatternspath return s } @@ -60,6 +64,20 @@ func (s *_hyphenationDecompounderTokenFilter) MinWordSize(minwordsize int) *_hyp return s } +func (s *_hyphenationDecompounderTokenFilter) NoOverlappingMatches(nooverlappingmatches bool) *_hyphenationDecompounderTokenFilter { + + s.v.NoOverlappingMatches = &nooverlappingmatches + + return s +} + +func (s *_hyphenationDecompounderTokenFilter) NoSubMatches(nosubmatches bool) *_hyphenationDecompounderTokenFilter { + + s.v.NoSubMatches = &nosubmatches + + return s +} + func (s *_hyphenationDecompounderTokenFilter) OnlyLongestMatch(onlylongestmatch bool) *_hyphenationDecompounderTokenFilter { s.v.OnlyLongestMatch = &onlylongestmatch diff --git a/typedapi/esdsl/icuanalyzer.go b/typedapi/esdsl/icuanalyzer.go index 5f00a6d2f6..f3e3f347f4 100644 --- a/typedapi/esdsl/icuanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icucollationproperty.go b/typedapi/esdsl/icucollationproperty.go index c7f309e9d6..43d10b29ce 100644 --- a/typedapi/esdsl/icucollationproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icucollationtokenfilter.go b/typedapi/esdsl/icucollationtokenfilter.go index 68008212c0..0bcd771bbc 100644 --- a/typedapi/esdsl/icucollationtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icufoldingtokenfilter.go b/typedapi/esdsl/icufoldingtokenfilter.go index 65724ed085..68b9259c6e 100644 --- a/typedapi/esdsl/icufoldingtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icunormalizationcharfilter.go b/typedapi/esdsl/icunormalizationcharfilter.go index c6eb61759c..4ececb6b26 100644 --- a/typedapi/esdsl/icunormalizationcharfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -48,6 +48,13 @@ func (s *_icuNormalizationCharFilter) Name(name icunormalizationtype.IcuNormaliz return s } +func (s *_icuNormalizationCharFilter) UnicodeSetFilter(unicodesetfilter string) *_icuNormalizationCharFilter { + + s.v.UnicodeSetFilter = &unicodesetfilter + + return s +} + func (s *_icuNormalizationCharFilter) Version(versionstring string) *_icuNormalizationCharFilter { s.v.Version = &versionstring diff --git a/typedapi/esdsl/icunormalizationtokenfilter.go b/typedapi/esdsl/icunormalizationtokenfilter.go index fdbc74e4a9..5355dc069f 100644 --- a/typedapi/esdsl/icunormalizationtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icutokenizer.go b/typedapi/esdsl/icutokenizer.go index baeb72789a..7aebb68673 100644 --- a/typedapi/esdsl/icutokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/icutransformtokenfilter.go b/typedapi/esdsl/icutransformtokenfilter.go index eee2da9e46..b0726e9a10 100644 --- a/typedapi/esdsl/icutransformtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ids.go b/typedapi/esdsl/ids.go index af6040e7d2..d51efb0659 100644 --- a/typedapi/esdsl/ids.go +++ b/typedapi/esdsl/ids.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/idsquery.go b/typedapi/esdsl/idsquery.go index 5d09f143bb..3168acac06 100644 --- a/typedapi/esdsl/idsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -26,8 +26,8 @@ type _idsQuery struct { v *types.IdsQuery } -// Returns users based on their IDs. -// This query uses the user document IDs stored in the `_id` field. +// Returns documents based on their IDs. +// This query uses document IDs stored in the `_id` field. func NewIdsQuery() *_idsQuery { return &_idsQuery{v: types.NewIdsQuery()} diff --git a/typedapi/esdsl/ilmactions.go b/typedapi/esdsl/ilmactions.go index e78c80c0f1..1ad5d0c892 100644 --- a/typedapi/esdsl/ilmactions.go +++ b/typedapi/esdsl/ilmactions.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ilmpolicy.go b/typedapi/esdsl/ilmpolicy.go index e1e70ef177..ba49f2d86b 100644 --- a/typedapi/esdsl/ilmpolicy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/includedinvalidation.go b/typedapi/esdsl/includedinvalidation.go index f5f801d1f8..075de9a823 100644 --- a/typedapi/esdsl/includedinvalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexaction.go b/typedapi/esdsl/indexaction.go index 4485088766..15ddc2be7c 100644 --- a/typedapi/esdsl/indexaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexanddatastreamaction.go b/typedapi/esdsl/indexanddatastreamaction.go index f92680e703..633709b5ac 100644 --- a/typedapi/esdsl/indexanddatastreamaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexfield.go b/typedapi/esdsl/indexfield.go index 32a667e7fd..19d8307434 100644 --- a/typedapi/esdsl/indexfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexingslowlogsettings.go b/typedapi/esdsl/indexingslowlogsettings.go index dc24157b5c..ae2503b4a0 100644 --- a/typedapi/esdsl/indexingslowlogsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexingslowlogtresholds.go b/typedapi/esdsl/indexingslowlogtresholds.go index eb2310a552..8439479299 100644 --- a/typedapi/esdsl/indexingslowlogtresholds.go +++ b/typedapi/esdsl/indexingslowlogtresholds.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexoperation.go b/typedapi/esdsl/indexoperation.go index 1f6d54cc71..2bd36817a4 100644 --- a/typedapi/esdsl/indexoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexprivilegescheck.go b/typedapi/esdsl/indexprivilegescheck.go index d57bd562ef..e7e4a161c3 100644 --- a/typedapi/esdsl/indexprivilegescheck.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexrouting.go b/typedapi/esdsl/indexrouting.go index 2b46b91cfb..1af2375873 100644 --- a/typedapi/esdsl/indexrouting.go +++ b/typedapi/esdsl/indexrouting.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexroutingallocation.go b/typedapi/esdsl/indexroutingallocation.go index 61bcc2847b..62420162f0 100644 --- a/typedapi/esdsl/indexroutingallocation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexroutingallocationdisk.go b/typedapi/esdsl/indexroutingallocationdisk.go index cc9da79880..136e67e290 100644 --- a/typedapi/esdsl/indexroutingallocationdisk.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -34,7 +34,7 @@ func NewIndexRoutingAllocationDisk() *_indexRoutingAllocationDisk { func (s *_indexRoutingAllocationDisk) ThresholdEnabled(thresholdenabled string) *_indexRoutingAllocationDisk { - s.v.ThresholdEnabled = thresholdenabled + s.v.ThresholdEnabled = &thresholdenabled return s } diff --git a/typedapi/esdsl/indexroutingallocationinclude.go b/typedapi/esdsl/indexroutingallocationinclude.go index 1fd612f95f..c602afa7a9 100644 --- a/typedapi/esdsl/indexroutingallocationinclude.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexroutingallocationinitialrecovery.go b/typedapi/esdsl/indexroutingallocationinitialrecovery.go index a3df029ca2..ba77388150 100644 --- a/typedapi/esdsl/indexroutingallocationinitialrecovery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexroutingrebalance.go b/typedapi/esdsl/indexroutingrebalance.go index fd4a424b9b..2cda9bcf17 100644 --- a/typedapi/esdsl/indexroutingrebalance.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexsegmentsort.go b/typedapi/esdsl/indexsegmentsort.go index 363c31fa01..cd4a52e42b 100644 --- a/typedapi/esdsl/indexsegmentsort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexsettingblocks.go b/typedapi/esdsl/indexsettingblocks.go index 38e2c4b823..db1b8b17e3 100644 --- a/typedapi/esdsl/indexsettingblocks.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexsettings.go b/typedapi/esdsl/indexsettings.go index 0bd275f8fa..09f754b519 100644 --- a/typedapi/esdsl/indexsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -108,7 +108,7 @@ func (s *_indexSettings) FinalPipeline(pipelinename string) *_indexSettings { func (s *_indexSettings) Format(format string) *_indexSettings { - s.v.Format = format + s.v.Format = &format return s } @@ -122,7 +122,7 @@ func (s *_indexSettings) GcDeletes(duration types.DurationVariant) *_indexSettin func (s *_indexSettings) Hidden(hidden string) *_indexSettings { - s.v.Hidden = hidden + s.v.Hidden = &hidden return s } @@ -290,7 +290,7 @@ func (s *_indexSettings) Mode(mode string) *_indexSettings { func (s *_indexSettings) NumberOfReplicas(numberofreplicas string) *_indexSettings { - s.v.NumberOfReplicas = numberofreplicas + s.v.NumberOfReplicas = &numberofreplicas return s } @@ -304,14 +304,14 @@ func (s *_indexSettings) NumberOfRoutingShards(numberofroutingshards int) *_inde func (s *_indexSettings) NumberOfShards(numberofshards string) *_indexSettings { - s.v.NumberOfShards = numberofshards + s.v.NumberOfShards = &numberofshards return s } func (s *_indexSettings) Priority(priority string) *_indexSettings { - s.v.Priority = priority + s.v.Priority = &priority return s } @@ -452,7 +452,7 @@ func (s *_indexSettings) Uuid(uuid string) *_indexSettings { func (s *_indexSettings) VerifiedBeforeClose(verifiedbeforeclose string) *_indexSettings { - s.v.VerifiedBeforeClose = verifiedbeforeclose + s.v.VerifiedBeforeClose = &verifiedbeforeclose return s } diff --git a/typedapi/esdsl/indexsettingsanalysis.go b/typedapi/esdsl/indexsettingsanalysis.go index 49a621696c..4eaac70c22 100644 --- a/typedapi/esdsl/indexsettingsanalysis.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexsettingslifecycle.go b/typedapi/esdsl/indexsettingslifecycle.go index 85f50d7ac8..7ec6a9e118 100644 --- a/typedapi/esdsl/indexsettingslifecycle.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -62,7 +62,7 @@ func (s *_indexSettingsLifecycle) ParseOriginationDate(parseoriginationdate bool func (s *_indexSettingsLifecycle) PreferIlm(preferilm string) *_indexSettingsLifecycle { - s.v.PreferIlm = preferilm + s.v.PreferIlm = &preferilm return s } diff --git a/typedapi/esdsl/indexsettingslifecyclestep.go b/typedapi/esdsl/indexsettingslifecyclestep.go index 0588dcf99d..d434b403d0 100644 --- a/typedapi/esdsl/indexsettingslifecyclestep.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexsettingstimeseries.go b/typedapi/esdsl/indexsettingstimeseries.go index ec074dcce9..bdf7060906 100644 --- a/typedapi/esdsl/indexsettingstimeseries.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexstate.go b/typedapi/esdsl/indexstate.go index 7df483dc31..3c523f66f9 100644 --- a/typedapi/esdsl/indexstate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indextemplate.go b/typedapi/esdsl/indextemplate.go index 26148fe088..bcc9ffb009 100644 --- a/typedapi/esdsl/indextemplate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indextemplatedatastreamconfiguration.go b/typedapi/esdsl/indextemplatedatastreamconfiguration.go index 308622ac0d..0460797bd6 100644 --- a/typedapi/esdsl/indextemplatedatastreamconfiguration.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indextemplatemapping.go b/typedapi/esdsl/indextemplatemapping.go index 3dfe5b5a52..176a406dba 100644 --- a/typedapi/esdsl/indextemplatemapping.go +++ b/typedapi/esdsl/indextemplatemapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indextemplatesummary.go b/typedapi/esdsl/indextemplatesummary.go index f7824b048f..502c75217e 100644 --- a/typedapi/esdsl/indextemplatesummary.go +++ b/typedapi/esdsl/indextemplatesummary.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indexversioning.go b/typedapi/esdsl/indexversioning.go index 8aa045e42d..2f1923012c 100644 --- a/typedapi/esdsl/indexversioning.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indices.go b/typedapi/esdsl/indices.go index 7e3e8b3b8c..0983337889 100644 --- a/typedapi/esdsl/indices.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesaction.go b/typedapi/esdsl/indicesaction.go index 96fef262a7..c79bec35f1 100644 --- a/typedapi/esdsl/indicesaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesindexingpressure.go b/typedapi/esdsl/indicesindexingpressure.go index c1a8e510cf..f7f9807d52 100644 --- a/typedapi/esdsl/indicesindexingpressure.go +++ b/typedapi/esdsl/indicesindexingpressure.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesindexingpressurememory.go b/typedapi/esdsl/indicesindexingpressurememory.go index 0d61e44228..1437c9e44f 100644 --- a/typedapi/esdsl/indicesindexingpressurememory.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesmodifyaction.go b/typedapi/esdsl/indicesmodifyaction.go index 34f9012e45..0f8ef9b178 100644 --- a/typedapi/esdsl/indicesmodifyaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesoptions.go b/typedapi/esdsl/indicesoptions.go index bec69ae855..961e68ba36 100644 --- a/typedapi/esdsl/indicesoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesprivileges.go b/typedapi/esdsl/indicesprivileges.go index 6e3154a15f..4ef36aef62 100644 --- a/typedapi/esdsl/indicesprivileges.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/indicesprivilegesquery.go b/typedapi/esdsl/indicesprivilegesquery.go index 386f524789..ac75241714 100644 --- a/typedapi/esdsl/indicesprivilegesquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_indicesPrivilegesQuery) String(string string) *_indicesPrivilegesQuery func (u *_indicesPrivilegesQuery) Query(query types.QueryVariant) *_indicesPrivilegesQuery { - u.v = &query + u.v = query.QueryCaster() return u } @@ -53,7 +53,7 @@ func (u *_query) IndicesPrivilegesQueryCaster() *types.IndicesPrivilegesQuery { func (u *_indicesPrivilegesQuery) RoleTemplateQuery(roletemplatequery types.RoleTemplateQueryVariant) *_indicesPrivilegesQuery { - u.v = &roletemplatequery + u.v = roletemplatequery.RoleTemplateQueryCaster() return u } diff --git a/typedapi/esdsl/indicnormalizationtokenfilter.go b/typedapi/esdsl/indicnormalizationtokenfilter.go new file mode 100644 index 0000000000..2ea47be3da --- /dev/null +++ b/typedapi/esdsl/indicnormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _indicNormalizationTokenFilter struct { + v *types.IndicNormalizationTokenFilter +} + +func NewIndicNormalizationTokenFilter() *_indicNormalizationTokenFilter { + + return &_indicNormalizationTokenFilter{v: types.NewIndicNormalizationTokenFilter()} + +} + +func (s *_indicNormalizationTokenFilter) Version(versionstring string) *_indicNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_indicNormalizationTokenFilter) IndicNormalizationTokenFilterCaster() *types.IndicNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/indonesiananalyzer.go b/typedapi/esdsl/indonesiananalyzer.go index d67ff72db8..eba90bdf1a 100644 --- a/typedapi/esdsl/indonesiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_indonesianAnalyzer) StemExclusion(stemexclusions ...string) *_indonesi return s } -func (s *_indonesianAnalyzer) Stopwords(stopwords ...string) *_indonesianAnalyzer { +func (s *_indonesianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_indonesianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/inferenceaggregation.go b/typedapi/esdsl/inferenceaggregation.go index d41a750a3d..47964640e4 100644 --- a/typedapi/esdsl/inferenceaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferencechunkingsettings.go b/typedapi/esdsl/inferencechunkingsettings.go index 62ced93ea9..1217ea01ca 100644 --- a/typedapi/esdsl/inferencechunkingsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfig.go b/typedapi/esdsl/inferenceconfig.go index e00c783473..a92a7bf5c7 100644 --- a/typedapi/esdsl/inferenceconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfigclassification.go b/typedapi/esdsl/inferenceconfigclassification.go index dc0b33dcc0..306a4088d2 100644 --- a/typedapi/esdsl/inferenceconfigclassification.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfigcontainer.go b/typedapi/esdsl/inferenceconfigcontainer.go index 2e21715ad7..1252f4913f 100644 --- a/typedapi/esdsl/inferenceconfigcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfigcreatecontainer.go b/typedapi/esdsl/inferenceconfigcreatecontainer.go index 7fd5681ed0..74e21cf844 100644 --- a/typedapi/esdsl/inferenceconfigcreatecontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfigregression.go b/typedapi/esdsl/inferenceconfigregression.go index f412e69cb9..27311abcf4 100644 --- a/typedapi/esdsl/inferenceconfigregression.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceconfigupdatecontainer.go b/typedapi/esdsl/inferenceconfigupdatecontainer.go index 9846403c50..e792d8e74b 100644 --- a/typedapi/esdsl/inferenceconfigupdatecontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceendpoint.go b/typedapi/esdsl/inferenceendpoint.go index ec4fa4c15d..b3280e3727 100644 --- a/typedapi/esdsl/inferenceendpoint.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inferenceprocessor.go b/typedapi/esdsl/inferenceprocessor.go index be8edb2136..a5f1e4e761 100644 --- a/typedapi/esdsl/inferenceprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ingestpipeline.go b/typedapi/esdsl/ingestpipeline.go index 755730d51b..d5615a5c73 100644 --- a/typedapi/esdsl/ingestpipeline.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ingestpipelineparams.go b/typedapi/esdsl/ingestpipelineparams.go index 0bd5fe660c..7e6fb6cb16 100644 --- a/typedapi/esdsl/ingestpipelineparams.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/innerhits.go b/typedapi/esdsl/innerhits.go index 16ee2adcb2..76c6d91211 100644 --- a/typedapi/esdsl/innerhits.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -58,8 +58,11 @@ func (s *_innerHits) Explain(explain bool) *_innerHits { func (s *_innerHits) Fields(fields ...string) *_innerHits { - s.v.Fields = fields + for _, v := range fields { + s.v.Fields = append(s.v.Fields, v) + + } return s } diff --git a/typedapi/esdsl/innerretriever.go b/typedapi/esdsl/innerretriever.go new file mode 100644 index 0000000000..4acef67894 --- /dev/null +++ b/typedapi/esdsl/innerretriever.go @@ -0,0 +1,68 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scorenormalizer" +) + +type _innerRetriever struct { + v *types.InnerRetriever +} + +func NewInnerRetriever(normalizer scorenormalizer.ScoreNormalizer, retriever types.RetrieverContainerVariant, weight float32) *_innerRetriever { + + tmp := &_innerRetriever{v: types.NewInnerRetriever()} + + tmp.Normalizer(normalizer) + + tmp.Retriever(retriever) + + tmp.Weight(weight) + + return tmp + +} + +func (s *_innerRetriever) Normalizer(normalizer scorenormalizer.ScoreNormalizer) *_innerRetriever { + + s.v.Normalizer = normalizer + return s +} + +func (s *_innerRetriever) Retriever(retriever types.RetrieverContainerVariant) *_innerRetriever { + + s.v.Retriever = *retriever.RetrieverContainerCaster() + + return s +} + +func (s *_innerRetriever) Weight(weight float32) *_innerRetriever { + + s.v.Weight = weight + + return s +} + +func (s *_innerRetriever) InnerRetrieverCaster() *types.InnerRetriever { + return s.v +} diff --git a/typedapi/esdsl/input.go b/typedapi/esdsl/input.go index e94348aae1..7c8e12222f 100644 --- a/typedapi/esdsl/input.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/inputconfig.go b/typedapi/esdsl/inputconfig.go index 09940a7085..b9a026b4d5 100644 --- a/typedapi/esdsl/inputconfig.go +++ b/typedapi/esdsl/inputconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/integernumberproperty.go b/typedapi/esdsl/integernumberproperty.go index 18d1fc9fb4..87ffe2fb97 100644 --- a/typedapi/esdsl/integernumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/integerrangeproperty.go b/typedapi/esdsl/integerrangeproperty.go index b838cead27..a5e4be4583 100644 --- a/typedapi/esdsl/integerrangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervals.go b/typedapi/esdsl/intervals.go index 76a766b306..b6ee00442b 100644 --- a/typedapi/esdsl/intervals.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -81,6 +81,20 @@ func (s *_intervals) Prefix(prefix types.IntervalsPrefixVariant) *_intervals { return s } +func (s *_intervals) Range(range_ types.IntervalsRangeVariant) *_intervals { + + s.v.Range = range_.IntervalsRangeCaster() + + return s +} + +func (s *_intervals) Regexp(regexp types.IntervalsRegexpVariant) *_intervals { + + s.v.Regexp = regexp.IntervalsRegexpCaster() + + return s +} + func (s *_intervals) Wildcard(wildcard types.IntervalsWildcardVariant) *_intervals { s.v.Wildcard = wildcard.IntervalsWildcardCaster() diff --git a/typedapi/esdsl/intervalsallof.go b/typedapi/esdsl/intervalsallof.go index e2f2b7047d..b109d09e81 100644 --- a/typedapi/esdsl/intervalsallof.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsanyof.go b/typedapi/esdsl/intervalsanyof.go index cda6897dba..a8e70609e4 100644 --- a/typedapi/esdsl/intervalsanyof.go +++ b/typedapi/esdsl/intervalsanyof.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsfilter.go b/typedapi/esdsl/intervalsfilter.go index d88a2a2f18..b856cfa0a5 100644 --- a/typedapi/esdsl/intervalsfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsfuzzy.go b/typedapi/esdsl/intervalsfuzzy.go index 7b1038be66..91bec20f5b 100644 --- a/typedapi/esdsl/intervalsfuzzy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsmatch.go b/typedapi/esdsl/intervalsmatch.go index 2df248d5a5..960b26db31 100644 --- a/typedapi/esdsl/intervalsmatch.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsprefix.go b/typedapi/esdsl/intervalsprefix.go index 41ccd00260..6dc9998c79 100644 --- a/typedapi/esdsl/intervalsprefix.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/intervalsquery.go b/typedapi/esdsl/intervalsquery.go index 296f27bab9..4ea4476cdc 100644 --- a/typedapi/esdsl/intervalsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -95,6 +95,20 @@ func (s *_intervalsQuery) QueryName_(queryname_ string) *_intervalsQuery { return s } +func (s *_intervalsQuery) Range(range_ types.IntervalsRangeVariant) *_intervalsQuery { + + s.v.Range = range_.IntervalsRangeCaster() + + return s +} + +func (s *_intervalsQuery) Regexp(regexp types.IntervalsRegexpVariant) *_intervalsQuery { + + s.v.Regexp = regexp.IntervalsRegexpCaster() + + return s +} + func (s *_intervalsQuery) Wildcard(wildcard types.IntervalsWildcardVariant) *_intervalsQuery { s.v.Wildcard = wildcard.IntervalsWildcardCaster() diff --git a/typedapi/esdsl/intervalsrange.go b/typedapi/esdsl/intervalsrange.go new file mode 100644 index 0000000000..e548d735ca --- /dev/null +++ b/typedapi/esdsl/intervalsrange.go @@ -0,0 +1,95 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _intervalsRange struct { + v *types.IntervalsRange +} + +func NewIntervalsRange() *_intervalsRange { + + return &_intervalsRange{v: types.NewIntervalsRange()} + +} + +func (s *_intervalsRange) Analyzer(analyzer string) *_intervalsRange { + + s.v.Analyzer = &analyzer + + return s +} + +func (s *_intervalsRange) Gt(gt string) *_intervalsRange { + + s.v.Gt = > + + return s +} + +func (s *_intervalsRange) Gte(gte string) *_intervalsRange { + + s.v.Gte = >e + + return s +} + +func (s *_intervalsRange) Lt(lt string) *_intervalsRange { + + s.v.Lt = < + + return s +} + +func (s *_intervalsRange) Lte(lte string) *_intervalsRange { + + s.v.Lte = <e + + return s +} + +func (s *_intervalsRange) UseField(field string) *_intervalsRange { + + s.v.UseField = &field + + return s +} + +func (s *_intervalsRange) IntervalsCaster() *types.Intervals { + container := types.NewIntervals() + + container.Range = s.v + + return container +} + +func (s *_intervalsRange) IntervalsQueryCaster() *types.IntervalsQuery { + container := types.NewIntervalsQuery() + + container.Range = s.v + + return container +} + +func (s *_intervalsRange) IntervalsRangeCaster() *types.IntervalsRange { + return s.v +} diff --git a/typedapi/esdsl/intervalsregexp.go b/typedapi/esdsl/intervalsregexp.go new file mode 100644 index 0000000000..98eeb69835 --- /dev/null +++ b/typedapi/esdsl/intervalsregexp.go @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _intervalsRegexp struct { + v *types.IntervalsRegexp +} + +func NewIntervalsRegexp(pattern string) *_intervalsRegexp { + + tmp := &_intervalsRegexp{v: types.NewIntervalsRegexp()} + + tmp.Pattern(pattern) + + return tmp + +} + +func (s *_intervalsRegexp) Analyzer(analyzer string) *_intervalsRegexp { + + s.v.Analyzer = &analyzer + + return s +} + +func (s *_intervalsRegexp) Pattern(pattern string) *_intervalsRegexp { + + s.v.Pattern = pattern + + return s +} + +func (s *_intervalsRegexp) UseField(field string) *_intervalsRegexp { + + s.v.UseField = &field + + return s +} + +func (s *_intervalsRegexp) IntervalsCaster() *types.Intervals { + container := types.NewIntervals() + + container.Regexp = s.v + + return container +} + +func (s *_intervalsRegexp) IntervalsQueryCaster() *types.IntervalsQuery { + container := types.NewIntervalsQuery() + + container.Regexp = s.v + + return container +} + +func (s *_intervalsRegexp) IntervalsRegexpCaster() *types.IntervalsRegexp { + return s.v +} diff --git a/typedapi/esdsl/intervalswildcard.go b/typedapi/esdsl/intervalswildcard.go index fba4e25a52..97cb9a131d 100644 --- a/typedapi/esdsl/intervalswildcard.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ipinfo.go b/typedapi/esdsl/ipinfo.go index 4bb3450f4e..678d384634 100644 --- a/typedapi/esdsl/ipinfo.go +++ b/typedapi/esdsl/ipinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/iplocationprocessor.go b/typedapi/esdsl/iplocationprocessor.go index f868504b98..f956ceb528 100644 --- a/typedapi/esdsl/iplocationprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ipprefixaggregation.go b/typedapi/esdsl/ipprefixaggregation.go index db9d6bbce6..def27b75e5 100644 --- a/typedapi/esdsl/ipprefixaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ipproperty.go b/typedapi/esdsl/ipproperty.go index da92cbc352..604100f51b 100644 --- a/typedapi/esdsl/ipproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/iprangeaggregation.go b/typedapi/esdsl/iprangeaggregation.go index ddcf00b0da..70b05cdf40 100644 --- a/typedapi/esdsl/iprangeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/iprangeaggregationrange.go b/typedapi/esdsl/iprangeaggregationrange.go index 1254f6195b..efc1e9ff11 100644 --- a/typedapi/esdsl/iprangeaggregationrange.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/iprangeproperty.go b/typedapi/esdsl/iprangeproperty.go index 2cd9f2eeac..a9e0b85e92 100644 --- a/typedapi/esdsl/iprangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/irishanalyzer.go b/typedapi/esdsl/irishanalyzer.go index 5d5c6bda62..b6f92b984b 100644 --- a/typedapi/esdsl/irishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_irishAnalyzer) StemExclusion(stemexclusions ...string) *_irishAnalyzer return s } -func (s *_irishAnalyzer) Stopwords(stopwords ...string) *_irishAnalyzer { +func (s *_irishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_irishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/italiananalyzer.go b/typedapi/esdsl/italiananalyzer.go index 1fb9787ec4..e87daff684 100644 --- a/typedapi/esdsl/italiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_italianAnalyzer) StemExclusion(stemexclusions ...string) *_italianAnal return s } -func (s *_italianAnalyzer) Stopwords(stopwords ...string) *_italianAnalyzer { +func (s *_italianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_italianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/jastoptokenfilter.go b/typedapi/esdsl/jastoptokenfilter.go new file mode 100644 index 0000000000..20431aa178 --- /dev/null +++ b/typedapi/esdsl/jastoptokenfilter.go @@ -0,0 +1,51 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _jaStopTokenFilter struct { + v *types.JaStopTokenFilter +} + +func NewJaStopTokenFilter() *_jaStopTokenFilter { + + return &_jaStopTokenFilter{v: types.NewJaStopTokenFilter()} + +} + +func (s *_jaStopTokenFilter) Stopwords(stopwords types.StopWordsVariant) *_jaStopTokenFilter { + + s.v.Stopwords = *stopwords.StopWordsCaster() + + return s +} + +func (s *_jaStopTokenFilter) Version(versionstring string) *_jaStopTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_jaStopTokenFilter) JaStopTokenFilterCaster() *types.JaStopTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/jinaaiservicesettings.go b/typedapi/esdsl/jinaaiservicesettings.go index 86d59e7b88..2957c5efc0 100644 --- a/typedapi/esdsl/jinaaiservicesettings.go +++ b/typedapi/esdsl/jinaaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/jinaaitasksettings.go b/typedapi/esdsl/jinaaitasksettings.go index e9a0042648..453c4086c1 100644 --- a/typedapi/esdsl/jinaaitasksettings.go +++ b/typedapi/esdsl/jinaaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/jobconfig.go b/typedapi/esdsl/jobconfig.go index 76c2c59a88..95fb7a2255 100644 --- a/typedapi/esdsl/jobconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/joinprocessor.go b/typedapi/esdsl/joinprocessor.go index 8be2aab8b5..610ef0c8a4 100644 --- a/typedapi/esdsl/joinprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/joinproperty.go b/typedapi/esdsl/joinproperty.go index d80bd9a151..0c508732ae 100644 --- a/typedapi/esdsl/joinproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/jsonprocessor.go b/typedapi/esdsl/jsonprocessor.go index a23349e802..844a576536 100644 --- a/typedapi/esdsl/jsonprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keeptypestokenfilter.go b/typedapi/esdsl/keeptypestokenfilter.go index 49ab839177..f07b154094 100644 --- a/typedapi/esdsl/keeptypestokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keepwordstokenfilter.go b/typedapi/esdsl/keepwordstokenfilter.go index c941deead9..de5f0e8596 100644 --- a/typedapi/esdsl/keepwordstokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keyvalueprocessor.go b/typedapi/esdsl/keyvalueprocessor.go index cbbaeca7d5..08cd6704eb 100644 --- a/typedapi/esdsl/keyvalueprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keywordanalyzer.go b/typedapi/esdsl/keywordanalyzer.go index 33ec161584..cdc644b79d 100644 --- a/typedapi/esdsl/keywordanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keywordmarkertokenfilter.go b/typedapi/esdsl/keywordmarkertokenfilter.go index 9c33be4869..de5e36ca46 100644 --- a/typedapi/esdsl/keywordmarkertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keywordproperty.go b/typedapi/esdsl/keywordproperty.go index abbe5d812c..3586cda85f 100644 --- a/typedapi/esdsl/keywordproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/keywordrepeattokenfilter.go b/typedapi/esdsl/keywordrepeattokenfilter.go new file mode 100644 index 0000000000..3f9af3b00b --- /dev/null +++ b/typedapi/esdsl/keywordrepeattokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _keywordRepeatTokenFilter struct { + v *types.KeywordRepeatTokenFilter +} + +func NewKeywordRepeatTokenFilter() *_keywordRepeatTokenFilter { + + return &_keywordRepeatTokenFilter{v: types.NewKeywordRepeatTokenFilter()} + +} + +func (s *_keywordRepeatTokenFilter) Version(versionstring string) *_keywordRepeatTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_keywordRepeatTokenFilter) KeywordRepeatTokenFilterCaster() *types.KeywordRepeatTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/keywordtokenizer.go b/typedapi/esdsl/keywordtokenizer.go index bc8b20c75a..27afae2560 100644 --- a/typedapi/esdsl/keywordtokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/knnquery.go b/typedapi/esdsl/knnquery.go index 55ccb785cd..34ad6776e5 100644 --- a/typedapi/esdsl/knnquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/knnretriever.go b/typedapi/esdsl/knnretriever.go index 6627d3bbf5..61c1ec2216 100644 --- a/typedapi/esdsl/knnretriever.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -72,6 +72,13 @@ func (s *_knnRetriever) MinScore(minscore float32) *_knnRetriever { return s } +func (s *_knnRetriever) Name_(name_ string) *_knnRetriever { + + s.v.Name_ = &name_ + + return s +} + func (s *_knnRetriever) NumCandidates(numcandidates int) *_knnRetriever { s.v.NumCandidates = numcandidates diff --git a/typedapi/esdsl/knnsearch.go b/typedapi/esdsl/knnsearch.go index f6eebe480d..01894d2d9d 100644 --- a/typedapi/esdsl/knnsearch.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kstemtokenfilter.go b/typedapi/esdsl/kstemtokenfilter.go index 8b0ea96238..8f17d6c835 100644 --- a/typedapi/esdsl/kstemtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojianalyzer.go b/typedapi/esdsl/kuromojianalyzer.go index cce1624139..2605662b5d 100644 --- a/typedapi/esdsl/kuromojianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojiiterationmarkcharfilter.go b/typedapi/esdsl/kuromojiiterationmarkcharfilter.go index 578c79293f..f19f0ec7c7 100644 --- a/typedapi/esdsl/kuromojiiterationmarkcharfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojipartofspeechtokenfilter.go b/typedapi/esdsl/kuromojipartofspeechtokenfilter.go index 69df3e96d9..8368dac394 100644 --- a/typedapi/esdsl/kuromojipartofspeechtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojireadingformtokenfilter.go b/typedapi/esdsl/kuromojireadingformtokenfilter.go index 7cba9d4227..9df95ece80 100644 --- a/typedapi/esdsl/kuromojireadingformtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojistemmertokenfilter.go b/typedapi/esdsl/kuromojistemmertokenfilter.go index 7a3ef11923..89a46ac235 100644 --- a/typedapi/esdsl/kuromojistemmertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/kuromojitokenizer.go b/typedapi/esdsl/kuromojitokenizer.go index 713358d761..d95fdd266c 100644 --- a/typedapi/esdsl/kuromojitokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/laplacesmoothingmodel.go b/typedapi/esdsl/laplacesmoothingmodel.go index a287eda011..81038bad06 100644 --- a/typedapi/esdsl/laplacesmoothingmodel.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/latest.go b/typedapi/esdsl/latest.go index 2b19c793fc..9294f37354 100644 --- a/typedapi/esdsl/latest.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/latlongeolocation.go b/typedapi/esdsl/latlongeolocation.go index 845b124b27..644ec5f6a4 100644 --- a/typedapi/esdsl/latlongeolocation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/latviananalyzer.go b/typedapi/esdsl/latviananalyzer.go index 25e8c16760..962e68e264 100644 --- a/typedapi/esdsl/latviananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_latvianAnalyzer) StemExclusion(stemexclusions ...string) *_latvianAnal return s } -func (s *_latvianAnalyzer) Stopwords(stopwords ...string) *_latvianAnalyzer { +func (s *_latvianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_latvianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/learningtorank.go b/typedapi/esdsl/learningtorank.go index c6f3f9e0c1..978b69c7cc 100644 --- a/typedapi/esdsl/learningtorank.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/learningtorankconfig.go b/typedapi/esdsl/learningtorankconfig.go index fbdd41550e..04d3b3bf76 100644 --- a/typedapi/esdsl/learningtorankconfig.go +++ b/typedapi/esdsl/learningtorankconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lengthtokenfilter.go b/typedapi/esdsl/lengthtokenfilter.go index 25bb102f8d..6ef233df6f 100644 --- a/typedapi/esdsl/lengthtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lessthanvalidation.go b/typedapi/esdsl/lessthanvalidation.go index cd5869dd2f..c8ca12938f 100644 --- a/typedapi/esdsl/lessthanvalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lettertokenizer.go b/typedapi/esdsl/lettertokenizer.go index 3cf3e518a0..14781001f2 100644 --- a/typedapi/esdsl/lettertokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/license.go b/typedapi/esdsl/license.go index a4a77374d1..1c4c3a14bf 100644 --- a/typedapi/esdsl/license.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/like.go b/typedapi/esdsl/like.go index 005d09ae44..5e600553a0 100644 --- a/typedapi/esdsl/like.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_like) String(string string) *_like { func (u *_like) LikeDocument(likedocument types.LikeDocumentVariant) *_like { - u.v = &likedocument + u.v = likedocument.LikeDocumentCaster() return u } diff --git a/typedapi/esdsl/likedocument.go b/typedapi/esdsl/likedocument.go index 6df9d8f803..7df176d648 100644 --- a/typedapi/esdsl/likedocument.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/limittokencounttokenfilter.go b/typedapi/esdsl/limittokencounttokenfilter.go index a760735bd3..cb4b6f1332 100644 --- a/typedapi/esdsl/limittokencounttokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/linearinterpolationsmoothingmodel.go b/typedapi/esdsl/linearinterpolationsmoothingmodel.go index a400d2bb3c..e90031d3a0 100644 --- a/typedapi/esdsl/linearinterpolationsmoothingmodel.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/linearmovingaverageaggregation.go b/typedapi/esdsl/linearmovingaverageaggregation.go index a2c88c6a97..b9f2870f75 100644 --- a/typedapi/esdsl/linearmovingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/linearretriever.go b/typedapi/esdsl/linearretriever.go new file mode 100644 index 0000000000..8215181e0b --- /dev/null +++ b/typedapi/esdsl/linearretriever.go @@ -0,0 +1,88 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _linearRetriever struct { + v *types.LinearRetriever +} + +// A retriever that supports the combination of different retrievers through a +// weighted linear combination. +func NewLinearRetriever() *_linearRetriever { + + return &_linearRetriever{v: types.NewLinearRetriever()} + +} + +func (s *_linearRetriever) Filter(filters ...types.QueryVariant) *_linearRetriever { + + s.v.Filter = make([]types.Query, len(filters)) + for i, v := range filters { + s.v.Filter[i] = *v.QueryCaster() + } + + return s +} + +func (s *_linearRetriever) MinScore(minscore float32) *_linearRetriever { + + s.v.MinScore = &minscore + + return s +} + +func (s *_linearRetriever) Name_(name_ string) *_linearRetriever { + + s.v.Name_ = &name_ + + return s +} + +func (s *_linearRetriever) RankWindowSize(rankwindowsize int) *_linearRetriever { + + s.v.RankWindowSize = &rankwindowsize + + return s +} + +func (s *_linearRetriever) Retrievers(retrievers ...types.InnerRetrieverVariant) *_linearRetriever { + + for _, v := range retrievers { + + s.v.Retrievers = append(s.v.Retrievers, *v.InnerRetrieverCaster()) + + } + return s +} + +func (s *_linearRetriever) RetrieverContainerCaster() *types.RetrieverContainer { + container := types.NewRetrieverContainer() + + container.Linear = s.v + + return container +} + +func (s *_linearRetriever) LinearRetrieverCaster() *types.LinearRetriever { + return s.v +} diff --git a/typedapi/esdsl/listtypevalidation.go b/typedapi/esdsl/listtypevalidation.go index 784c8ed547..ccec00a8dc 100644 --- a/typedapi/esdsl/listtypevalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lithuaniananalyzer.go b/typedapi/esdsl/lithuaniananalyzer.go index 5c00421c35..91128f1adc 100644 --- a/typedapi/esdsl/lithuaniananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_lithuanianAnalyzer) StemExclusion(stemexclusions ...string) *_lithuani return s } -func (s *_lithuanianAnalyzer) Stopwords(stopwords ...string) *_lithuanianAnalyzer { +func (s *_lithuanianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_lithuanianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/loggingaction.go b/typedapi/esdsl/loggingaction.go index 8dbcf6e4c4..ef26374735 100644 --- a/typedapi/esdsl/loggingaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/logstashpipeline.go b/typedapi/esdsl/logstashpipeline.go index e06316e097..5381bc4152 100644 --- a/typedapi/esdsl/logstashpipeline.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/longnumberproperty.go b/typedapi/esdsl/longnumberproperty.go index e89bb45a3e..b1aa01a871 100644 --- a/typedapi/esdsl/longnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/longrangeproperty.go b/typedapi/esdsl/longrangeproperty.go index 406757a6ef..be15126457 100644 --- a/typedapi/esdsl/longrangeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lowercasenormalizer.go b/typedapi/esdsl/lowercasenormalizer.go index 19492b023d..1e982b7532 100644 --- a/typedapi/esdsl/lowercasenormalizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lowercaseprocessor.go b/typedapi/esdsl/lowercaseprocessor.go index 2ae4848957..44dd8b0c66 100644 --- a/typedapi/esdsl/lowercaseprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/lowercasetokenfilter.go b/typedapi/esdsl/lowercasetokenfilter.go index 7b955360dc..d1ccc75c30 100644 --- a/typedapi/esdsl/lowercasetokenfilter.go +++ b/typedapi/esdsl/lowercasetokenfilter.go @@ -16,11 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl -import "github.com/elastic/go-elasticsearch/v9/typedapi/types" +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lowercasetokenfilterlanguages" +) type _lowercaseTokenFilter struct { v *types.LowercaseTokenFilter @@ -32,10 +35,9 @@ func NewLowercaseTokenFilter() *_lowercaseTokenFilter { } -func (s *_lowercaseTokenFilter) Language(language string) *_lowercaseTokenFilter { +func (s *_lowercaseTokenFilter) Language(language lowercasetokenfilterlanguages.LowercaseTokenFilterLanguages) *_lowercaseTokenFilter { s.v.Language = &language - return s } diff --git a/typedapi/esdsl/lowercasetokenizer.go b/typedapi/esdsl/lowercasetokenizer.go index 18e161efee..3201e42b5d 100644 --- a/typedapi/esdsl/lowercasetokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/manageuserprivileges.go b/typedapi/esdsl/manageuserprivileges.go index 31206621ff..ff806c48a4 100644 --- a/typedapi/esdsl/manageuserprivileges.go +++ b/typedapi/esdsl/manageuserprivileges.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappingcharfilter.go b/typedapi/esdsl/mappingcharfilter.go index 885ad62d04..fb7e639830 100644 --- a/typedapi/esdsl/mappingcharfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettings.go b/typedapi/esdsl/mappinglimitsettings.go index 50f86fdf09..0af1e8f614 100644 --- a/typedapi/esdsl/mappinglimitsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -62,7 +62,7 @@ func (s *_mappingLimitSettings) FieldNameLength(fieldnamelength types.MappingLim func (s *_mappingLimitSettings) IgnoreMalformed(ignoremalformed string) *_mappingLimitSettings { - s.v.IgnoreMalformed = ignoremalformed + s.v.IgnoreMalformed = &ignoremalformed return s } diff --git a/typedapi/esdsl/mappinglimitsettingsdepth.go b/typedapi/esdsl/mappinglimitsettingsdepth.go index 0b2ef9b4a2..cc6e2d2ded 100644 --- a/typedapi/esdsl/mappinglimitsettingsdepth.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingsdimensionfields.go b/typedapi/esdsl/mappinglimitsettingsdimensionfields.go index d54d46c036..35f8a2a458 100644 --- a/typedapi/esdsl/mappinglimitsettingsdimensionfields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go b/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go index 942bf017f7..348738ba8d 100644 --- a/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingsnestedfields.go b/typedapi/esdsl/mappinglimitsettingsnestedfields.go index d8b7670498..56d4e30c2b 100644 --- a/typedapi/esdsl/mappinglimitsettingsnestedfields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingsnestedobjects.go b/typedapi/esdsl/mappinglimitsettingsnestedobjects.go index 1de98aec0a..61df467888 100644 --- a/typedapi/esdsl/mappinglimitsettingsnestedobjects.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingssourcefields.go b/typedapi/esdsl/mappinglimitsettingssourcefields.go index a7c89b2dd2..ac20eed0b2 100644 --- a/typedapi/esdsl/mappinglimitsettingssourcefields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mappinglimitsettingstotalfields.go b/typedapi/esdsl/mappinglimitsettingstotalfields.go index a5afe7847e..aaa30bec4f 100644 --- a/typedapi/esdsl/mappinglimitsettingstotalfields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -34,14 +34,14 @@ func NewMappingLimitSettingsTotalFields() *_mappingLimitSettingsTotalFields { func (s *_mappingLimitSettingsTotalFields) IgnoreDynamicBeyondLimit(ignoredynamicbeyondlimit string) *_mappingLimitSettingsTotalFields { - s.v.IgnoreDynamicBeyondLimit = ignoredynamicbeyondlimit + s.v.IgnoreDynamicBeyondLimit = &ignoredynamicbeyondlimit return s } func (s *_mappingLimitSettingsTotalFields) Limit(limit string) *_mappingLimitSettingsTotalFields { - s.v.Limit = limit + s.v.Limit = &limit return s } diff --git a/typedapi/esdsl/matchallquery.go b/typedapi/esdsl/matchallquery.go index 0c16bbd09a..04281c3e5a 100644 --- a/typedapi/esdsl/matchallquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchboolprefixquery.go b/typedapi/esdsl/matchboolprefixquery.go index 8a51505918..60b15dc26b 100644 --- a/typedapi/esdsl/matchboolprefixquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchnonequery.go b/typedapi/esdsl/matchnonequery.go index e4eae5de88..e418038042 100644 --- a/typedapi/esdsl/matchnonequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchonlytextproperty.go b/typedapi/esdsl/matchonlytextproperty.go index 85081fcc8e..ab1e487459 100644 --- a/typedapi/esdsl/matchonlytextproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchphraseprefixquery.go b/typedapi/esdsl/matchphraseprefixquery.go index 6c7889b73f..192751c832 100644 --- a/typedapi/esdsl/matchphraseprefixquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchphrasequery.go b/typedapi/esdsl/matchphrasequery.go index ce297762c4..352a20d3b6 100644 --- a/typedapi/esdsl/matchphrasequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/matchquery.go b/typedapi/esdsl/matchquery.go index 49df9fb738..d059fd3074 100644 --- a/typedapi/esdsl/matchquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -31,7 +31,7 @@ type _matchQuery struct { v *types.MatchQuery } -// Returns documents that match a provided text, number, date or boolean value. +// Returns roles that match a provided text, number, date or boolean value. // The provided text is analyzed before matching. func NewMatchQuery(field string, query string) *_matchQuery { tmp := &_matchQuery{ diff --git a/typedapi/esdsl/matrixstatsaggregation.go b/typedapi/esdsl/matrixstatsaggregation.go index b3216eadda..f46439f07f 100644 --- a/typedapi/esdsl/matrixstatsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/maxaggregation.go b/typedapi/esdsl/maxaggregation.go index d6ef1a3982..8bb02a671f 100644 --- a/typedapi/esdsl/maxaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/maxbucketaggregation.go b/typedapi/esdsl/maxbucketaggregation.go index 7e3cc2d191..fdf1aa0930 100644 --- a/typedapi/esdsl/maxbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/maxmind.go b/typedapi/esdsl/maxmind.go index 2a4ef1683f..08ccfb9724 100644 --- a/typedapi/esdsl/maxmind.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/medianabsolutedeviationaggregation.go b/typedapi/esdsl/medianabsolutedeviationaggregation.go index 493cba57cb..7671e564ff 100644 --- a/typedapi/esdsl/medianabsolutedeviationaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/merge.go b/typedapi/esdsl/merge.go index ffbf784a35..0aa6013b01 100644 --- a/typedapi/esdsl/merge.go +++ b/typedapi/esdsl/merge.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mergescheduler.go b/typedapi/esdsl/mergescheduler.go index 2de55a6bd3..900dd4a5d7 100644 --- a/typedapi/esdsl/mergescheduler.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/message.go b/typedapi/esdsl/message.go index 95e1947534..30f54e4c2f 100644 --- a/typedapi/esdsl/message.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/messagecontent.go b/typedapi/esdsl/messagecontent.go index 7677664410..3d6aae8ebb 100644 --- a/typedapi/esdsl/messagecontent.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/metadata.go b/typedapi/esdsl/metadata.go index c84ce09dc4..3dd7a6711d 100644 --- a/typedapi/esdsl/metadata.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mgetoperation.go b/typedapi/esdsl/mgetoperation.go index 65030f2a47..1db2ad2a69 100644 --- a/typedapi/esdsl/mgetoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/migrateaction.go b/typedapi/esdsl/migrateaction.go index 4592586899..86989e1bbd 100644 --- a/typedapi/esdsl/migrateaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/migratereindex.go b/typedapi/esdsl/migratereindex.go index e01926f826..45f4e89deb 100644 --- a/typedapi/esdsl/migratereindex.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/minaggregation.go b/typedapi/esdsl/minaggregation.go index f1fb690a6c..d5a583905f 100644 --- a/typedapi/esdsl/minaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/minbucketaggregation.go b/typedapi/esdsl/minbucketaggregation.go index 150fd74828..9c1ae90590 100644 --- a/typedapi/esdsl/minbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/minhashtokenfilter.go b/typedapi/esdsl/minhashtokenfilter.go new file mode 100644 index 0000000000..72c1ac31e1 --- /dev/null +++ b/typedapi/esdsl/minhashtokenfilter.go @@ -0,0 +1,72 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _minHashTokenFilter struct { + v *types.MinHashTokenFilter +} + +func NewMinHashTokenFilter() *_minHashTokenFilter { + + return &_minHashTokenFilter{v: types.NewMinHashTokenFilter()} + +} + +func (s *_minHashTokenFilter) BucketCount(bucketcount int) *_minHashTokenFilter { + + s.v.BucketCount = &bucketcount + + return s +} + +func (s *_minHashTokenFilter) HashCount(hashcount int) *_minHashTokenFilter { + + s.v.HashCount = &hashcount + + return s +} + +func (s *_minHashTokenFilter) HashSetSize(hashsetsize int) *_minHashTokenFilter { + + s.v.HashSetSize = &hashsetsize + + return s +} + +func (s *_minHashTokenFilter) Version(versionstring string) *_minHashTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_minHashTokenFilter) WithRotation(withrotation bool) *_minHashTokenFilter { + + s.v.WithRotation = &withrotation + + return s +} + +func (s *_minHashTokenFilter) MinHashTokenFilterCaster() *types.MinHashTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/minimumshouldmatch.go b/typedapi/esdsl/minimumshouldmatch.go index 1d71a24dfe..bf27cde620 100644 --- a/typedapi/esdsl/minimumshouldmatch.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/missing.go b/typedapi/esdsl/missing.go index b3e006c879..76a3094db8 100644 --- a/typedapi/esdsl/missing.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/missingaggregation.go b/typedapi/esdsl/missingaggregation.go index c890f7a046..bfb6d35e69 100644 --- a/typedapi/esdsl/missingaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mistralservicesettings.go b/typedapi/esdsl/mistralservicesettings.go index c0618602c9..281ea44dd8 100644 --- a/typedapi/esdsl/mistralservicesettings.go +++ b/typedapi/esdsl/mistralservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/modelplotconfig.go b/typedapi/esdsl/modelplotconfig.go index 16a35c7a88..04d7f027b7 100644 --- a/typedapi/esdsl/modelplotconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/morelikethisquery.go b/typedapi/esdsl/morelikethisquery.go index 0c779f113d..ac871cdd80 100644 --- a/typedapi/esdsl/morelikethisquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -154,9 +154,9 @@ func (s *_moreLikeThisQuery) Routing(routing string) *_moreLikeThisQuery { return s } -func (s *_moreLikeThisQuery) StopWords(stopwords ...string) *_moreLikeThisQuery { +func (s *_moreLikeThisQuery) StopWords(stopwords types.StopWordsVariant) *_moreLikeThisQuery { - s.v.StopWords = stopwords + s.v.StopWords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/movingaverageaggregation.go b/typedapi/esdsl/movingaverageaggregation.go index 249564dbe6..63a7f6db53 100644 --- a/typedapi/esdsl/movingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewMovingAverageAggregation() *_movingAverageAggregation { func (u *_movingAverageAggregation) LinearMovingAverageAggregation(linearmovingaverageaggregation types.LinearMovingAverageAggregationVariant) *_movingAverageAggregation { - u.v = &linearmovingaverageaggregation + u.v = linearmovingaverageaggregation.LinearMovingAverageAggregationCaster() return u } @@ -46,7 +46,7 @@ func (u *_linearMovingAverageAggregation) MovingAverageAggregationCaster() *type func (u *_movingAverageAggregation) SimpleMovingAverageAggregation(simplemovingaverageaggregation types.SimpleMovingAverageAggregationVariant) *_movingAverageAggregation { - u.v = &simplemovingaverageaggregation + u.v = simplemovingaverageaggregation.SimpleMovingAverageAggregationCaster() return u } @@ -59,7 +59,7 @@ func (u *_simpleMovingAverageAggregation) MovingAverageAggregationCaster() *type func (u *_movingAverageAggregation) EwmaMovingAverageAggregation(ewmamovingaverageaggregation types.EwmaMovingAverageAggregationVariant) *_movingAverageAggregation { - u.v = &ewmamovingaverageaggregation + u.v = ewmamovingaverageaggregation.EwmaMovingAverageAggregationCaster() return u } @@ -72,7 +72,7 @@ func (u *_ewmaMovingAverageAggregation) MovingAverageAggregationCaster() *types. func (u *_movingAverageAggregation) HoltMovingAverageAggregation(holtmovingaverageaggregation types.HoltMovingAverageAggregationVariant) *_movingAverageAggregation { - u.v = &holtmovingaverageaggregation + u.v = holtmovingaverageaggregation.HoltMovingAverageAggregationCaster() return u } @@ -85,7 +85,7 @@ func (u *_holtMovingAverageAggregation) MovingAverageAggregationCaster() *types. func (u *_movingAverageAggregation) HoltWintersMovingAverageAggregation(holtwintersmovingaverageaggregation types.HoltWintersMovingAverageAggregationVariant) *_movingAverageAggregation { - u.v = &holtwintersmovingaverageaggregation + u.v = holtwintersmovingaverageaggregation.HoltWintersMovingAverageAggregationCaster() return u } diff --git a/typedapi/esdsl/movingfunctionaggregation.go b/typedapi/esdsl/movingfunctionaggregation.go index 8fe9989edc..74544cbd6e 100644 --- a/typedapi/esdsl/movingfunctionaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/movingpercentilesaggregation.go b/typedapi/esdsl/movingpercentilesaggregation.go index 1b2e068b4b..2293b5d6d6 100644 --- a/typedapi/esdsl/movingpercentilesaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/msearchrequestitem.go b/typedapi/esdsl/msearchrequestitem.go index b3d2113ae5..63d5e2f16a 100644 --- a/typedapi/esdsl/msearchrequestitem.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewMsearchRequestItem() *_msearchRequestItem { func (u *_msearchRequestItem) MultisearchHeader(multisearchheader types.MultisearchHeaderVariant) *_msearchRequestItem { - u.v = &multisearchheader + u.v = multisearchheader.MultisearchHeaderCaster() return u } @@ -46,7 +46,7 @@ func (u *_multisearchHeader) MsearchRequestItemCaster() *types.MsearchRequestIte func (u *_msearchRequestItem) SearchRequestBody(searchrequestbody types.SearchRequestBodyVariant) *_msearchRequestItem { - u.v = &searchrequestbody + u.v = searchrequestbody.SearchRequestBodyCaster() return u } diff --git a/typedapi/esdsl/mtermvectorsoperation.go b/typedapi/esdsl/mtermvectorsoperation.go index 0a25dde059..26d2b486ad 100644 --- a/typedapi/esdsl/mtermvectorsoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/multimatchquery.go b/typedapi/esdsl/multimatchquery.go index e43020c68d..1d11add4e5 100644 --- a/typedapi/esdsl/multimatchquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/multiplexertokenfilter.go b/typedapi/esdsl/multiplexertokenfilter.go index 2d3dc4952f..9315579ae0 100644 --- a/typedapi/esdsl/multiplexertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/multisearchheader.go b/typedapi/esdsl/multisearchheader.go index 4187fa7052..8347357a39 100644 --- a/typedapi/esdsl/multisearchheader.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/multitermlookup.go b/typedapi/esdsl/multitermlookup.go index f41e2b8f3e..155e45472c 100644 --- a/typedapi/esdsl/multitermlookup.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/multitermsaggregation.go b/typedapi/esdsl/multitermsaggregation.go index ef762c8de8..998c391b14 100644 --- a/typedapi/esdsl/multitermsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/murmur3hashproperty.go b/typedapi/esdsl/murmur3hashproperty.go index 251725378b..2acc2bcbf5 100644 --- a/typedapi/esdsl/murmur3hashproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/mutualinformationheuristic.go b/typedapi/esdsl/mutualinformationheuristic.go index 8b25d94700..b7ebe9e7fc 100644 --- a/typedapi/esdsl/mutualinformationheuristic.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/names.go b/typedapi/esdsl/names.go index 666f8cf9da..a553314145 100644 --- a/typedapi/esdsl/names.go +++ b/typedapi/esdsl/names.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nerinferenceoptions.go b/typedapi/esdsl/nerinferenceoptions.go index 20fae43774..916bedd9a8 100644 --- a/typedapi/esdsl/nerinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nerinferenceupdateoptions.go b/typedapi/esdsl/nerinferenceupdateoptions.go index b0f5e15f74..8a2230bda9 100644 --- a/typedapi/esdsl/nerinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nestedaggregation.go b/typedapi/esdsl/nestedaggregation.go index 46a208bba2..d455a1d7a0 100644 --- a/typedapi/esdsl/nestedaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nestedproperty.go b/typedapi/esdsl/nestedproperty.go index 83a27482b2..a2728c0ed6 100644 --- a/typedapi/esdsl/nestedproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nestedquery.go b/typedapi/esdsl/nestedquery.go index 20033a7fbe..d535626347 100644 --- a/typedapi/esdsl/nestedquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nestedsortvalue.go b/typedapi/esdsl/nestedsortvalue.go index 4a76d3a207..976b0cb90d 100644 --- a/typedapi/esdsl/nestedsortvalue.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/networkdirectionprocessor.go b/typedapi/esdsl/networkdirectionprocessor.go index 9900543004..492cf66aa5 100644 --- a/typedapi/esdsl/networkdirectionprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nevercondition.go b/typedapi/esdsl/nevercondition.go index 9949ed96e1..f162a1a9d3 100644 --- a/typedapi/esdsl/nevercondition.go +++ b/typedapi/esdsl/nevercondition.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ngramtokenfilter.go b/typedapi/esdsl/ngramtokenfilter.go index f208788b2b..402c289860 100644 --- a/typedapi/esdsl/ngramtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ngramtokenizer.go b/typedapi/esdsl/ngramtokenizer.go index 47e01ca04a..a71fe0c55b 100644 --- a/typedapi/esdsl/ngramtokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nlpberttokenizationconfig.go b/typedapi/esdsl/nlpberttokenizationconfig.go index 9332425b7e..281366f7bb 100644 --- a/typedapi/esdsl/nlpberttokenizationconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nlprobertatokenizationconfig.go b/typedapi/esdsl/nlprobertatokenizationconfig.go index 98b8a30630..cea37d2352 100644 --- a/typedapi/esdsl/nlprobertatokenizationconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/nlptokenizationupdateoptions.go b/typedapi/esdsl/nlptokenizationupdateoptions.go index 4aa1d9e5d7..4afd372a95 100644 --- a/typedapi/esdsl/nlptokenizationupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/norianalyzer.go b/typedapi/esdsl/norianalyzer.go index d505bd8992..e8c886755d 100644 --- a/typedapi/esdsl/norianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/noripartofspeechtokenfilter.go b/typedapi/esdsl/noripartofspeechtokenfilter.go index 62633c95ec..5be0d9962b 100644 --- a/typedapi/esdsl/noripartofspeechtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/noritokenizer.go b/typedapi/esdsl/noritokenizer.go index 97378b7f49..56d46debda 100644 --- a/typedapi/esdsl/noritokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/normalizeaggregation.go b/typedapi/esdsl/normalizeaggregation.go index 36bc1d1173..aa9d6bb367 100644 --- a/typedapi/esdsl/normalizeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/normalizer.go b/typedapi/esdsl/normalizer.go index 43b4c0e3dd..dfdd876a7b 100644 --- a/typedapi/esdsl/normalizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewNormalizer() *_normalizer { func (u *_normalizer) LowercaseNormalizer(lowercasenormalizer types.LowercaseNormalizerVariant) *_normalizer { - u.v = &lowercasenormalizer + u.v = lowercasenormalizer.LowercaseNormalizerCaster() return u } @@ -46,7 +46,7 @@ func (u *_lowercaseNormalizer) NormalizerCaster() *types.Normalizer { func (u *_normalizer) CustomNormalizer(customnormalizer types.CustomNormalizerVariant) *_normalizer { - u.v = &customnormalizer + u.v = customnormalizer.CustomNormalizerCaster() return u } diff --git a/typedapi/esdsl/norwegiananalyzer.go b/typedapi/esdsl/norwegiananalyzer.go index f5c5f05c26..560457fedb 100644 --- a/typedapi/esdsl/norwegiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_norwegianAnalyzer) StemExclusion(stemexclusions ...string) *_norwegian return s } -func (s *_norwegianAnalyzer) Stopwords(stopwords ...string) *_norwegianAnalyzer { +func (s *_norwegianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_norwegianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/numberrangequery.go b/typedapi/esdsl/numberrangequery.go index 020d075506..69eb0ea643 100644 --- a/typedapi/esdsl/numberrangequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -45,13 +45,6 @@ func (s *_numberRangeQuery) Boost(boost float32) *_numberRangeQuery { return s } -func (s *_numberRangeQuery) From(from types.Float64) *_numberRangeQuery { - - s.v.From = &from - - return s -} - func (s *_numberRangeQuery) Gt(gt types.Float64) *_numberRangeQuery { s.v.Gt = > @@ -93,13 +86,6 @@ func (s *_numberRangeQuery) Relation(relation rangerelation.RangeRelation) *_num return s } -func (s *_numberRangeQuery) To(to types.Float64) *_numberRangeQuery { - - s.v.To = &to - - return s -} - func (s *_numberRangeQuery) QueryCaster() *types.Query { container := types.NewQuery() container.Range = map[string]types.RangeQuery{ diff --git a/typedapi/esdsl/numericdecayfunction.go b/typedapi/esdsl/numericdecayfunction.go index b88a576120..1207a14ed0 100644 --- a/typedapi/esdsl/numericdecayfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/numericfielddata.go b/typedapi/esdsl/numericfielddata.go index a61d6d8424..7439de5ecb 100644 --- a/typedapi/esdsl/numericfielddata.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/objectproperty.go b/typedapi/esdsl/objectproperty.go index 52d49fec7f..c0906d0acb 100644 --- a/typedapi/esdsl/objectproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/onehotencodingpreprocessor.go b/typedapi/esdsl/onehotencodingpreprocessor.go index 6558cd41b7..f9793fdf13 100644 --- a/typedapi/esdsl/onehotencodingpreprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/openaiservicesettings.go b/typedapi/esdsl/openaiservicesettings.go index 7d8acb24dd..82f9b33901 100644 --- a/typedapi/esdsl/openaiservicesettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/openaitasksettings.go b/typedapi/esdsl/openaitasksettings.go index 5a21ee348f..4ed1c70118 100644 --- a/typedapi/esdsl/openaitasksettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/operationcontainer.go b/typedapi/esdsl/operationcontainer.go index 26e2d15798..77f71fb33e 100644 --- a/typedapi/esdsl/operationcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/page.go b/typedapi/esdsl/page.go index 91521c4fb9..7b87ccfa70 100644 --- a/typedapi/esdsl/page.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pagerdutyaction.go b/typedapi/esdsl/pagerdutyaction.go index 1b09c15642..22e7ccad7e 100644 --- a/typedapi/esdsl/pagerdutyaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pagerdutycontext.go b/typedapi/esdsl/pagerdutycontext.go index 99fc95d40d..99e2ffa72d 100644 --- a/typedapi/esdsl/pagerdutycontext.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pagerdutyeventproxy.go b/typedapi/esdsl/pagerdutyeventproxy.go index 7f7107348d..0aa315c9b6 100644 --- a/typedapi/esdsl/pagerdutyeventproxy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/painlesscontextsetup.go b/typedapi/esdsl/painlesscontextsetup.go index e2d562e6e3..84b5e54ffb 100644 --- a/typedapi/esdsl/painlesscontextsetup.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/parentaggregation.go b/typedapi/esdsl/parentaggregation.go index c81d4b2199..69f4335496 100644 --- a/typedapi/esdsl/parentaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/parentidquery.go b/typedapi/esdsl/parentidquery.go index fa14add8ce..23377f798f 100644 --- a/typedapi/esdsl/parentidquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/passthroughinferenceoptions.go b/typedapi/esdsl/passthroughinferenceoptions.go index 40384f552d..e892252704 100644 --- a/typedapi/esdsl/passthroughinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/passthroughinferenceupdateoptions.go b/typedapi/esdsl/passthroughinferenceupdateoptions.go index 799083ee4c..cfb96f2fb0 100644 --- a/typedapi/esdsl/passthroughinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/passthroughobjectproperty.go b/typedapi/esdsl/passthroughobjectproperty.go index cb156aa697..2cf5489833 100644 --- a/typedapi/esdsl/passthroughobjectproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pathhierarchytokenizer.go b/typedapi/esdsl/pathhierarchytokenizer.go index a68f752783..95bfdf4322 100644 --- a/typedapi/esdsl/pathhierarchytokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/patternanalyzer.go b/typedapi/esdsl/patternanalyzer.go index 007aa77feb..0b5aa6bcfa 100644 --- a/typedapi/esdsl/patternanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -53,9 +53,9 @@ func (s *_patternAnalyzer) Pattern(pattern string) *_patternAnalyzer { return s } -func (s *_patternAnalyzer) Stopwords(stopwords ...string) *_patternAnalyzer { +func (s *_patternAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_patternAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/patterncapturetokenfilter.go b/typedapi/esdsl/patterncapturetokenfilter.go index 5c8736f662..8b838599b6 100644 --- a/typedapi/esdsl/patterncapturetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/patternreplacecharfilter.go b/typedapi/esdsl/patternreplacecharfilter.go index 7b999a53fb..0104ddb1be 100644 --- a/typedapi/esdsl/patternreplacecharfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/patternreplacetokenfilter.go b/typedapi/esdsl/patternreplacetokenfilter.go index 1ee966bb0d..55e4445e2e 100644 --- a/typedapi/esdsl/patternreplacetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/patterntokenizer.go b/typedapi/esdsl/patterntokenizer.go index f78edf3855..c7a0d4e58c 100644 --- a/typedapi/esdsl/patterntokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percentage.go b/typedapi/esdsl/percentage.go index 00291fd98d..83a8324776 100644 --- a/typedapi/esdsl/percentage.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percentagescoreheuristic.go b/typedapi/esdsl/percentagescoreheuristic.go index b427ee5a4f..dfde9116ec 100644 --- a/typedapi/esdsl/percentagescoreheuristic.go +++ b/typedapi/esdsl/percentagescoreheuristic.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percentileranksaggregation.go b/typedapi/esdsl/percentileranksaggregation.go index 96503a754d..d242d54717 100644 --- a/typedapi/esdsl/percentileranksaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percentilesaggregation.go b/typedapi/esdsl/percentilesaggregation.go index a4a099f006..df7f2887ff 100644 --- a/typedapi/esdsl/percentilesaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percentilesbucketaggregation.go b/typedapi/esdsl/percentilesbucketaggregation.go index a182c75510..180929cfec 100644 --- a/typedapi/esdsl/percentilesbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percolatequery.go b/typedapi/esdsl/percolatequery.go index 05803fd3f9..66943db95e 100644 --- a/typedapi/esdsl/percolatequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/percolatorproperty.go b/typedapi/esdsl/percolatorproperty.go index da8da35ea6..8bf02a2224 100644 --- a/typedapi/esdsl/percolatorproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/perpartitioncategorization.go b/typedapi/esdsl/perpartitioncategorization.go index 04f9f7da14..b41ff78e4e 100644 --- a/typedapi/esdsl/perpartitioncategorization.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/persiananalyzer.go b/typedapi/esdsl/persiananalyzer.go index 36187ab5aa..c7ae4d1041 100644 --- a/typedapi/esdsl/persiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewPersianAnalyzer() *_persianAnalyzer { } -func (s *_persianAnalyzer) Stopwords(stopwords ...string) *_persianAnalyzer { +func (s *_persianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_persianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/persiannormalizationtokenfilter.go b/typedapi/esdsl/persiannormalizationtokenfilter.go new file mode 100644 index 0000000000..298e864ba0 --- /dev/null +++ b/typedapi/esdsl/persiannormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _persianNormalizationTokenFilter struct { + v *types.PersianNormalizationTokenFilter +} + +func NewPersianNormalizationTokenFilter() *_persianNormalizationTokenFilter { + + return &_persianNormalizationTokenFilter{v: types.NewPersianNormalizationTokenFilter()} + +} + +func (s *_persianNormalizationTokenFilter) Version(versionstring string) *_persianNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_persianNormalizationTokenFilter) PersianNormalizationTokenFilterCaster() *types.PersianNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/persianstemtokenfilter.go b/typedapi/esdsl/persianstemtokenfilter.go new file mode 100644 index 0000000000..cd2d7ac993 --- /dev/null +++ b/typedapi/esdsl/persianstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _persianStemTokenFilter struct { + v *types.PersianStemTokenFilter +} + +func NewPersianStemTokenFilter() *_persianStemTokenFilter { + + return &_persianStemTokenFilter{v: types.NewPersianStemTokenFilter()} + +} + +func (s *_persianStemTokenFilter) Version(versionstring string) *_persianStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_persianStemTokenFilter) PersianStemTokenFilterCaster() *types.PersianStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/phase.go b/typedapi/esdsl/phase.go index eab48ba345..51e4e9d9e5 100644 --- a/typedapi/esdsl/phase.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phases.go b/typedapi/esdsl/phases.go index 584ffbc428..56db01cf27 100644 --- a/typedapi/esdsl/phases.go +++ b/typedapi/esdsl/phases.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phonetictokenfilter.go b/typedapi/esdsl/phonetictokenfilter.go index 44b9be7922..6443b7a499 100644 --- a/typedapi/esdsl/phonetictokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phrasesuggestcollate.go b/typedapi/esdsl/phrasesuggestcollate.go index 6d5e7977ef..25a40f4e39 100644 --- a/typedapi/esdsl/phrasesuggestcollate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phrasesuggestcollatequery.go b/typedapi/esdsl/phrasesuggestcollatequery.go index 0729228ba4..3b2dbd81d0 100644 --- a/typedapi/esdsl/phrasesuggestcollatequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phrasesuggester.go b/typedapi/esdsl/phrasesuggester.go index 8e4d7cf222..0b100fa3dc 100644 --- a/typedapi/esdsl/phrasesuggester.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/phrasesuggesthighlight.go b/typedapi/esdsl/phrasesuggesthighlight.go index 3e584ad681..cb6cc6a777 100644 --- a/typedapi/esdsl/phrasesuggesthighlight.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pinneddoc.go b/typedapi/esdsl/pinneddoc.go index 87cacdbc16..a667559b31 100644 --- a/typedapi/esdsl/pinneddoc.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pinnedquery.go b/typedapi/esdsl/pinnedquery.go index da4144c834..45c31afff2 100644 --- a/typedapi/esdsl/pinnedquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pinnedretriever.go b/typedapi/esdsl/pinnedretriever.go new file mode 100644 index 0000000000..f83dc63335 --- /dev/null +++ b/typedapi/esdsl/pinnedretriever.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _pinnedRetriever struct { + v *types.PinnedRetriever +} + +// A pinned retriever applies pinned documents to the underlying retriever. +// This retriever will rewrite to a PinnedQueryBuilder. +func NewPinnedRetriever(retriever types.RetrieverContainerVariant) *_pinnedRetriever { + + tmp := &_pinnedRetriever{v: types.NewPinnedRetriever()} + + tmp.Retriever(retriever) + + return tmp + +} + +func (s *_pinnedRetriever) Docs(docs ...types.SpecifiedDocumentVariant) *_pinnedRetriever { + + for _, v := range docs { + + s.v.Docs = append(s.v.Docs, *v.SpecifiedDocumentCaster()) + + } + return s +} + +func (s *_pinnedRetriever) Filter(filters ...types.QueryVariant) *_pinnedRetriever { + + s.v.Filter = make([]types.Query, len(filters)) + for i, v := range filters { + s.v.Filter[i] = *v.QueryCaster() + } + + return s +} + +func (s *_pinnedRetriever) Ids(ids ...string) *_pinnedRetriever { + + for _, v := range ids { + + s.v.Ids = append(s.v.Ids, v) + + } + return s +} + +func (s *_pinnedRetriever) MinScore(minscore float32) *_pinnedRetriever { + + s.v.MinScore = &minscore + + return s +} + +func (s *_pinnedRetriever) Name_(name_ string) *_pinnedRetriever { + + s.v.Name_ = &name_ + + return s +} + +func (s *_pinnedRetriever) RankWindowSize(rankwindowsize int) *_pinnedRetriever { + + s.v.RankWindowSize = &rankwindowsize + + return s +} + +func (s *_pinnedRetriever) Retriever(retriever types.RetrieverContainerVariant) *_pinnedRetriever { + + s.v.Retriever = *retriever.RetrieverContainerCaster() + + return s +} + +func (s *_pinnedRetriever) RetrieverContainerCaster() *types.RetrieverContainer { + container := types.NewRetrieverContainer() + + container.Pinned = s.v + + return container +} + +func (s *_pinnedRetriever) PinnedRetrieverCaster() *types.PinnedRetriever { + return s.v +} diff --git a/typedapi/esdsl/pipelinemetadata.go b/typedapi/esdsl/pipelinemetadata.go index 5104c594cd..8e0150a601 100644 --- a/typedapi/esdsl/pipelinemetadata.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pipelineprocessor.go b/typedapi/esdsl/pipelineprocessor.go index 422b28cb28..fd8a9db592 100644 --- a/typedapi/esdsl/pipelineprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pipelinesettings.go b/typedapi/esdsl/pipelinesettings.go index 9f274d8ffd..f2c86d6aff 100644 --- a/typedapi/esdsl/pipelinesettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go b/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go index 4d4658967f..1051e7a03d 100644 --- a/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pivot.go b/typedapi/esdsl/pivot.go index 5d3ec30500..6b94c52136 100644 --- a/typedapi/esdsl/pivot.go +++ b/typedapi/esdsl/pivot.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pivotgroupbycontainer.go b/typedapi/esdsl/pivotgroupbycontainer.go index c0274d663f..fabcd1cf5a 100644 --- a/typedapi/esdsl/pivotgroupbycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pointintimereference.go b/typedapi/esdsl/pointintimereference.go index 710688a3f2..e1bc6fc892 100644 --- a/typedapi/esdsl/pointintimereference.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/pointproperty.go b/typedapi/esdsl/pointproperty.go index f1bf575dca..d0444526eb 100644 --- a/typedapi/esdsl/pointproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/porterstemtokenfilter.go b/typedapi/esdsl/porterstemtokenfilter.go index 8a4c4dd896..65ef6e5179 100644 --- a/typedapi/esdsl/porterstemtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/portugueseanalyzer.go b/typedapi/esdsl/portugueseanalyzer.go index fee602d0e5..630c5cb562 100644 --- a/typedapi/esdsl/portugueseanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_portugueseAnalyzer) StemExclusion(stemexclusions ...string) *_portugue return s } -func (s *_portugueseAnalyzer) Stopwords(stopwords ...string) *_portugueseAnalyzer { +func (s *_portugueseAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_portugueseAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/predicatetokenfilter.go b/typedapi/esdsl/predicatetokenfilter.go index e3febd0821..0e845098e7 100644 --- a/typedapi/esdsl/predicatetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/prefixquery.go b/typedapi/esdsl/prefixquery.go index c408d2cf0c..f1c9572407 100644 --- a/typedapi/esdsl/prefixquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/preprocessor.go b/typedapi/esdsl/preprocessor.go index d4e4a42912..fbdb3bdfc4 100644 --- a/typedapi/esdsl/preprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/privilegesactions.go b/typedapi/esdsl/privilegesactions.go index 58110c709f..4d37edb621 100644 --- a/typedapi/esdsl/privilegesactions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/privilegescheck.go b/typedapi/esdsl/privilegescheck.go index 59b58b15cc..381b7457a9 100644 --- a/typedapi/esdsl/privilegescheck.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/processorcontainer.go b/typedapi/esdsl/processorcontainer.go index a411bac111..87ed68cf28 100644 --- a/typedapi/esdsl/processorcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/property.go b/typedapi/esdsl/property.go index 7200641d35..64bbbcaa90 100644 --- a/typedapi/esdsl/property.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_property) UnknownProperty(unknown json.RawMessage) *_property { func (u *_property) BinaryProperty(binaryproperty types.BinaryPropertyVariant) *_property { - u.v = &binaryproperty + u.v = binaryproperty.BinaryPropertyCaster() return u } @@ -57,7 +57,7 @@ func (u *_binaryProperty) PropertyCaster() *types.Property { func (u *_property) BooleanProperty(booleanproperty types.BooleanPropertyVariant) *_property { - u.v = &booleanproperty + u.v = booleanproperty.BooleanPropertyCaster() return u } @@ -70,7 +70,7 @@ func (u *_booleanProperty) PropertyCaster() *types.Property { func (u *_property) DynamicProperty(dynamicproperty types.DynamicPropertyVariant) *_property { - u.v = &dynamicproperty + u.v = dynamicproperty.DynamicPropertyCaster() return u } @@ -83,7 +83,7 @@ func (u *_dynamicProperty) PropertyCaster() *types.Property { func (u *_property) JoinProperty(joinproperty types.JoinPropertyVariant) *_property { - u.v = &joinproperty + u.v = joinproperty.JoinPropertyCaster() return u } @@ -96,7 +96,7 @@ func (u *_joinProperty) PropertyCaster() *types.Property { func (u *_property) KeywordProperty(keywordproperty types.KeywordPropertyVariant) *_property { - u.v = &keywordproperty + u.v = keywordproperty.KeywordPropertyCaster() return u } @@ -109,7 +109,7 @@ func (u *_keywordProperty) PropertyCaster() *types.Property { func (u *_property) MatchOnlyTextProperty(matchonlytextproperty types.MatchOnlyTextPropertyVariant) *_property { - u.v = &matchonlytextproperty + u.v = matchonlytextproperty.MatchOnlyTextPropertyCaster() return u } @@ -122,7 +122,7 @@ func (u *_matchOnlyTextProperty) PropertyCaster() *types.Property { func (u *_property) PercolatorProperty(percolatorproperty types.PercolatorPropertyVariant) *_property { - u.v = &percolatorproperty + u.v = percolatorproperty.PercolatorPropertyCaster() return u } @@ -135,7 +135,7 @@ func (u *_percolatorProperty) PropertyCaster() *types.Property { func (u *_property) RankFeatureProperty(rankfeatureproperty types.RankFeaturePropertyVariant) *_property { - u.v = &rankfeatureproperty + u.v = rankfeatureproperty.RankFeaturePropertyCaster() return u } @@ -148,7 +148,7 @@ func (u *_rankFeatureProperty) PropertyCaster() *types.Property { func (u *_property) RankFeaturesProperty(rankfeaturesproperty types.RankFeaturesPropertyVariant) *_property { - u.v = &rankfeaturesproperty + u.v = rankfeaturesproperty.RankFeaturesPropertyCaster() return u } @@ -161,7 +161,7 @@ func (u *_rankFeaturesProperty) PropertyCaster() *types.Property { func (u *_property) SearchAsYouTypeProperty(searchasyoutypeproperty types.SearchAsYouTypePropertyVariant) *_property { - u.v = &searchasyoutypeproperty + u.v = searchasyoutypeproperty.SearchAsYouTypePropertyCaster() return u } @@ -174,7 +174,7 @@ func (u *_searchAsYouTypeProperty) PropertyCaster() *types.Property { func (u *_property) TextProperty(textproperty types.TextPropertyVariant) *_property { - u.v = &textproperty + u.v = textproperty.TextPropertyCaster() return u } @@ -187,7 +187,7 @@ func (u *_textProperty) PropertyCaster() *types.Property { func (u *_property) VersionProperty(versionproperty types.VersionPropertyVariant) *_property { - u.v = &versionproperty + u.v = versionproperty.VersionPropertyCaster() return u } @@ -200,7 +200,7 @@ func (u *_versionProperty) PropertyCaster() *types.Property { func (u *_property) WildcardProperty(wildcardproperty types.WildcardPropertyVariant) *_property { - u.v = &wildcardproperty + u.v = wildcardproperty.WildcardPropertyCaster() return u } @@ -213,7 +213,7 @@ func (u *_wildcardProperty) PropertyCaster() *types.Property { func (u *_property) DateNanosProperty(datenanosproperty types.DateNanosPropertyVariant) *_property { - u.v = &datenanosproperty + u.v = datenanosproperty.DateNanosPropertyCaster() return u } @@ -226,7 +226,7 @@ func (u *_dateNanosProperty) PropertyCaster() *types.Property { func (u *_property) DateProperty(dateproperty types.DatePropertyVariant) *_property { - u.v = &dateproperty + u.v = dateproperty.DatePropertyCaster() return u } @@ -239,7 +239,7 @@ func (u *_dateProperty) PropertyCaster() *types.Property { func (u *_property) AggregateMetricDoubleProperty(aggregatemetricdoubleproperty types.AggregateMetricDoublePropertyVariant) *_property { - u.v = &aggregatemetricdoubleproperty + u.v = aggregatemetricdoubleproperty.AggregateMetricDoublePropertyCaster() return u } @@ -252,7 +252,7 @@ func (u *_aggregateMetricDoubleProperty) PropertyCaster() *types.Property { func (u *_property) DenseVectorProperty(densevectorproperty types.DenseVectorPropertyVariant) *_property { - u.v = &densevectorproperty + u.v = densevectorproperty.DenseVectorPropertyCaster() return u } @@ -265,7 +265,7 @@ func (u *_denseVectorProperty) PropertyCaster() *types.Property { func (u *_property) FlattenedProperty(flattenedproperty types.FlattenedPropertyVariant) *_property { - u.v = &flattenedproperty + u.v = flattenedproperty.FlattenedPropertyCaster() return u } @@ -278,7 +278,7 @@ func (u *_flattenedProperty) PropertyCaster() *types.Property { func (u *_property) NestedProperty(nestedproperty types.NestedPropertyVariant) *_property { - u.v = &nestedproperty + u.v = nestedproperty.NestedPropertyCaster() return u } @@ -291,7 +291,7 @@ func (u *_nestedProperty) PropertyCaster() *types.Property { func (u *_property) ObjectProperty(objectproperty types.ObjectPropertyVariant) *_property { - u.v = &objectproperty + u.v = objectproperty.ObjectPropertyCaster() return u } @@ -304,7 +304,7 @@ func (u *_objectProperty) PropertyCaster() *types.Property { func (u *_property) PassthroughObjectProperty(passthroughobjectproperty types.PassthroughObjectPropertyVariant) *_property { - u.v = &passthroughobjectproperty + u.v = passthroughobjectproperty.PassthroughObjectPropertyCaster() return u } @@ -315,9 +315,22 @@ func (u *_passthroughObjectProperty) PropertyCaster() *types.Property { return &t } +func (u *_property) RankVectorProperty(rankvectorproperty types.RankVectorPropertyVariant) *_property { + + u.v = rankvectorproperty.RankVectorPropertyCaster() + + return u +} + +// Interface implementation for RankVectorProperty in Property union +func (u *_rankVectorProperty) PropertyCaster() *types.Property { + t := types.Property(u.v) + return &t +} + func (u *_property) SemanticTextProperty(semantictextproperty types.SemanticTextPropertyVariant) *_property { - u.v = &semantictextproperty + u.v = semantictextproperty.SemanticTextPropertyCaster() return u } @@ -330,7 +343,7 @@ func (u *_semanticTextProperty) PropertyCaster() *types.Property { func (u *_property) SparseVectorProperty(sparsevectorproperty types.SparseVectorPropertyVariant) *_property { - u.v = &sparsevectorproperty + u.v = sparsevectorproperty.SparseVectorPropertyCaster() return u } @@ -343,7 +356,7 @@ func (u *_sparseVectorProperty) PropertyCaster() *types.Property { func (u *_property) CompletionProperty(completionproperty types.CompletionPropertyVariant) *_property { - u.v = &completionproperty + u.v = completionproperty.CompletionPropertyCaster() return u } @@ -356,7 +369,7 @@ func (u *_completionProperty) PropertyCaster() *types.Property { func (u *_property) ConstantKeywordProperty(constantkeywordproperty types.ConstantKeywordPropertyVariant) *_property { - u.v = &constantkeywordproperty + u.v = constantkeywordproperty.ConstantKeywordPropertyCaster() return u } @@ -369,7 +382,7 @@ func (u *_constantKeywordProperty) PropertyCaster() *types.Property { func (u *_property) CountedKeywordProperty(countedkeywordproperty types.CountedKeywordPropertyVariant) *_property { - u.v = &countedkeywordproperty + u.v = countedkeywordproperty.CountedKeywordPropertyCaster() return u } @@ -382,7 +395,7 @@ func (u *_countedKeywordProperty) PropertyCaster() *types.Property { func (u *_property) FieldAliasProperty(fieldaliasproperty types.FieldAliasPropertyVariant) *_property { - u.v = &fieldaliasproperty + u.v = fieldaliasproperty.FieldAliasPropertyCaster() return u } @@ -395,7 +408,7 @@ func (u *_fieldAliasProperty) PropertyCaster() *types.Property { func (u *_property) HistogramProperty(histogramproperty types.HistogramPropertyVariant) *_property { - u.v = &histogramproperty + u.v = histogramproperty.HistogramPropertyCaster() return u } @@ -408,7 +421,7 @@ func (u *_histogramProperty) PropertyCaster() *types.Property { func (u *_property) IpProperty(ipproperty types.IpPropertyVariant) *_property { - u.v = &ipproperty + u.v = ipproperty.IpPropertyCaster() return u } @@ -421,7 +434,7 @@ func (u *_ipProperty) PropertyCaster() *types.Property { func (u *_property) Murmur3HashProperty(murmur3hashproperty types.Murmur3HashPropertyVariant) *_property { - u.v = &murmur3hashproperty + u.v = murmur3hashproperty.Murmur3HashPropertyCaster() return u } @@ -434,7 +447,7 @@ func (u *_murmur3HashProperty) PropertyCaster() *types.Property { func (u *_property) TokenCountProperty(tokencountproperty types.TokenCountPropertyVariant) *_property { - u.v = &tokencountproperty + u.v = tokencountproperty.TokenCountPropertyCaster() return u } @@ -447,7 +460,7 @@ func (u *_tokenCountProperty) PropertyCaster() *types.Property { func (u *_property) GeoPointProperty(geopointproperty types.GeoPointPropertyVariant) *_property { - u.v = &geopointproperty + u.v = geopointproperty.GeoPointPropertyCaster() return u } @@ -460,7 +473,7 @@ func (u *_geoPointProperty) PropertyCaster() *types.Property { func (u *_property) GeoShapeProperty(geoshapeproperty types.GeoShapePropertyVariant) *_property { - u.v = &geoshapeproperty + u.v = geoshapeproperty.GeoShapePropertyCaster() return u } @@ -473,7 +486,7 @@ func (u *_geoShapeProperty) PropertyCaster() *types.Property { func (u *_property) PointProperty(pointproperty types.PointPropertyVariant) *_property { - u.v = &pointproperty + u.v = pointproperty.PointPropertyCaster() return u } @@ -486,7 +499,7 @@ func (u *_pointProperty) PropertyCaster() *types.Property { func (u *_property) ShapeProperty(shapeproperty types.ShapePropertyVariant) *_property { - u.v = &shapeproperty + u.v = shapeproperty.ShapePropertyCaster() return u } @@ -499,7 +512,7 @@ func (u *_shapeProperty) PropertyCaster() *types.Property { func (u *_property) ByteNumberProperty(bytenumberproperty types.ByteNumberPropertyVariant) *_property { - u.v = &bytenumberproperty + u.v = bytenumberproperty.ByteNumberPropertyCaster() return u } @@ -512,7 +525,7 @@ func (u *_byteNumberProperty) PropertyCaster() *types.Property { func (u *_property) DoubleNumberProperty(doublenumberproperty types.DoubleNumberPropertyVariant) *_property { - u.v = &doublenumberproperty + u.v = doublenumberproperty.DoubleNumberPropertyCaster() return u } @@ -525,7 +538,7 @@ func (u *_doubleNumberProperty) PropertyCaster() *types.Property { func (u *_property) FloatNumberProperty(floatnumberproperty types.FloatNumberPropertyVariant) *_property { - u.v = &floatnumberproperty + u.v = floatnumberproperty.FloatNumberPropertyCaster() return u } @@ -538,7 +551,7 @@ func (u *_floatNumberProperty) PropertyCaster() *types.Property { func (u *_property) HalfFloatNumberProperty(halffloatnumberproperty types.HalfFloatNumberPropertyVariant) *_property { - u.v = &halffloatnumberproperty + u.v = halffloatnumberproperty.HalfFloatNumberPropertyCaster() return u } @@ -551,7 +564,7 @@ func (u *_halfFloatNumberProperty) PropertyCaster() *types.Property { func (u *_property) IntegerNumberProperty(integernumberproperty types.IntegerNumberPropertyVariant) *_property { - u.v = &integernumberproperty + u.v = integernumberproperty.IntegerNumberPropertyCaster() return u } @@ -564,7 +577,7 @@ func (u *_integerNumberProperty) PropertyCaster() *types.Property { func (u *_property) LongNumberProperty(longnumberproperty types.LongNumberPropertyVariant) *_property { - u.v = &longnumberproperty + u.v = longnumberproperty.LongNumberPropertyCaster() return u } @@ -577,7 +590,7 @@ func (u *_longNumberProperty) PropertyCaster() *types.Property { func (u *_property) ScaledFloatNumberProperty(scaledfloatnumberproperty types.ScaledFloatNumberPropertyVariant) *_property { - u.v = &scaledfloatnumberproperty + u.v = scaledfloatnumberproperty.ScaledFloatNumberPropertyCaster() return u } @@ -590,7 +603,7 @@ func (u *_scaledFloatNumberProperty) PropertyCaster() *types.Property { func (u *_property) ShortNumberProperty(shortnumberproperty types.ShortNumberPropertyVariant) *_property { - u.v = &shortnumberproperty + u.v = shortnumberproperty.ShortNumberPropertyCaster() return u } @@ -603,7 +616,7 @@ func (u *_shortNumberProperty) PropertyCaster() *types.Property { func (u *_property) UnsignedLongNumberProperty(unsignedlongnumberproperty types.UnsignedLongNumberPropertyVariant) *_property { - u.v = &unsignedlongnumberproperty + u.v = unsignedlongnumberproperty.UnsignedLongNumberPropertyCaster() return u } @@ -616,7 +629,7 @@ func (u *_unsignedLongNumberProperty) PropertyCaster() *types.Property { func (u *_property) DateRangeProperty(daterangeproperty types.DateRangePropertyVariant) *_property { - u.v = &daterangeproperty + u.v = daterangeproperty.DateRangePropertyCaster() return u } @@ -629,7 +642,7 @@ func (u *_dateRangeProperty) PropertyCaster() *types.Property { func (u *_property) DoubleRangeProperty(doublerangeproperty types.DoubleRangePropertyVariant) *_property { - u.v = &doublerangeproperty + u.v = doublerangeproperty.DoubleRangePropertyCaster() return u } @@ -642,7 +655,7 @@ func (u *_doubleRangeProperty) PropertyCaster() *types.Property { func (u *_property) FloatRangeProperty(floatrangeproperty types.FloatRangePropertyVariant) *_property { - u.v = &floatrangeproperty + u.v = floatrangeproperty.FloatRangePropertyCaster() return u } @@ -655,7 +668,7 @@ func (u *_floatRangeProperty) PropertyCaster() *types.Property { func (u *_property) IntegerRangeProperty(integerrangeproperty types.IntegerRangePropertyVariant) *_property { - u.v = &integerrangeproperty + u.v = integerrangeproperty.IntegerRangePropertyCaster() return u } @@ -668,7 +681,7 @@ func (u *_integerRangeProperty) PropertyCaster() *types.Property { func (u *_property) IpRangeProperty(iprangeproperty types.IpRangePropertyVariant) *_property { - u.v = &iprangeproperty + u.v = iprangeproperty.IpRangePropertyCaster() return u } @@ -681,7 +694,7 @@ func (u *_ipRangeProperty) PropertyCaster() *types.Property { func (u *_property) LongRangeProperty(longrangeproperty types.LongRangePropertyVariant) *_property { - u.v = &longrangeproperty + u.v = longrangeproperty.LongRangePropertyCaster() return u } @@ -694,7 +707,7 @@ func (u *_longRangeProperty) PropertyCaster() *types.Property { func (u *_property) IcuCollationProperty(icucollationproperty types.IcuCollationPropertyVariant) *_property { - u.v = &icucollationproperty + u.v = icucollationproperty.IcuCollationPropertyCaster() return u } diff --git a/typedapi/esdsl/queries.go b/typedapi/esdsl/queries.go index ee58a4d579..1f7f67e06c 100644 --- a/typedapi/esdsl/queries.go +++ b/typedapi/esdsl/queries.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/query.go b/typedapi/esdsl/query.go index 0a1d186758..122b2360b0 100644 --- a/typedapi/esdsl/query.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/queryfeatureextractor.go b/typedapi/esdsl/queryfeatureextractor.go index deae540456..d67a8d9fb6 100644 --- a/typedapi/esdsl/queryfeatureextractor.go +++ b/typedapi/esdsl/queryfeatureextractor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/queryrule.go b/typedapi/esdsl/queryrule.go index 11aaf55d77..204bf02987 100644 --- a/typedapi/esdsl/queryrule.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/queryruleactions.go b/typedapi/esdsl/queryruleactions.go index 9581d35095..f8bb816b9e 100644 --- a/typedapi/esdsl/queryruleactions.go +++ b/typedapi/esdsl/queryruleactions.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/queryrulecriteria.go b/typedapi/esdsl/queryrulecriteria.go index 37f36e0937..3cbc4fa7db 100644 --- a/typedapi/esdsl/queryrulecriteria.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/querystringquery.go b/typedapi/esdsl/querystringquery.go index ccbc5c6b20..86217c734b 100644 --- a/typedapi/esdsl/querystringquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/queryvectorbuilder.go b/typedapi/esdsl/queryvectorbuilder.go index e926b0c6f7..f22d84d972 100644 --- a/typedapi/esdsl/queryvectorbuilder.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/questionansweringinferenceoptions.go b/typedapi/esdsl/questionansweringinferenceoptions.go index 42869fd5c0..5b7cfc6fd6 100644 --- a/typedapi/esdsl/questionansweringinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/questionansweringinferenceupdateoptions.go b/typedapi/esdsl/questionansweringinferenceupdateoptions.go index e5ac759d66..a543701eea 100644 --- a/typedapi/esdsl/questionansweringinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/randomsampleraggregation.go b/typedapi/esdsl/randomsampleraggregation.go index ce7e49fc52..faba5e8ff1 100644 --- a/typedapi/esdsl/randomsampleraggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/randomscorefunction.go b/typedapi/esdsl/randomscorefunction.go index 4bfd82b595..4057c77d83 100644 --- a/typedapi/esdsl/randomscorefunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -45,7 +45,7 @@ func (s *_randomScoreFunction) Field(field string) *_randomScoreFunction { func (s *_randomScoreFunction) Seed(seed string) *_randomScoreFunction { - s.v.Seed = seed + s.v.Seed = &seed return s } diff --git a/typedapi/esdsl/rangeaggregation.go b/typedapi/esdsl/rangeaggregation.go index 92154319c7..7027d577f5 100644 --- a/typedapi/esdsl/rangeaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rangequery.go b/typedapi/esdsl/rangequery.go index 42df05bd66..c7b3e2befc 100644 --- a/typedapi/esdsl/rangequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewRangeQuery() *_rangeQuery { func (u *_rangeQuery) UntypedRangeQuery(untypedrangequery types.UntypedRangeQueryVariant) *_rangeQuery { - u.v = &untypedrangequery + u.v = untypedrangequery.UntypedRangeQueryCaster() return u } @@ -46,7 +46,7 @@ func (u *_untypedRangeQuery) RangeQueryCaster() *types.RangeQuery { func (u *_rangeQuery) DateRangeQuery(daterangequery types.DateRangeQueryVariant) *_rangeQuery { - u.v = &daterangequery + u.v = daterangequery.DateRangeQueryCaster() return u } @@ -59,7 +59,7 @@ func (u *_dateRangeQuery) RangeQueryCaster() *types.RangeQuery { func (u *_rangeQuery) NumberRangeQuery(numberrangequery types.NumberRangeQueryVariant) *_rangeQuery { - u.v = &numberrangequery + u.v = numberrangequery.NumberRangeQueryCaster() return u } @@ -72,7 +72,7 @@ func (u *_numberRangeQuery) RangeQueryCaster() *types.RangeQuery { func (u *_rangeQuery) TermRangeQuery(termrangequery types.TermRangeQueryVariant) *_rangeQuery { - u.v = &termrangequery + u.v = termrangequery.TermRangeQueryCaster() return u } diff --git a/typedapi/esdsl/rankcontainer.go b/typedapi/esdsl/rankcontainer.go index b7aa68944e..6bcc632b7f 100644 --- a/typedapi/esdsl/rankcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetric.go b/typedapi/esdsl/rankevalmetric.go index d3b91c7d6d..9814d10760 100644 --- a/typedapi/esdsl/rankevalmetric.go +++ b/typedapi/esdsl/rankevalmetric.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go b/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go index b23ced8a5a..c0d654e805 100644 --- a/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go b/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go index 2a54406aed..057d3e5b33 100644 --- a/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go b/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go index e550e3773c..a44923884a 100644 --- a/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetricprecision.go b/typedapi/esdsl/rankevalmetricprecision.go index 5053b8c59e..c9e3ba1335 100644 --- a/typedapi/esdsl/rankevalmetricprecision.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalmetricrecall.go b/typedapi/esdsl/rankevalmetricrecall.go index e3a0cfa029..6d9e212212 100644 --- a/typedapi/esdsl/rankevalmetricrecall.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalquery.go b/typedapi/esdsl/rankevalquery.go index 934ccb1820..163504c5bf 100644 --- a/typedapi/esdsl/rankevalquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankevalrequestitem.go b/typedapi/esdsl/rankevalrequestitem.go index a8f33060fa..de77041bb3 100644 --- a/typedapi/esdsl/rankevalrequestitem.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturefunctionlinear.go b/typedapi/esdsl/rankfeaturefunctionlinear.go index de9805478e..42b89b9143 100644 --- a/typedapi/esdsl/rankfeaturefunctionlinear.go +++ b/typedapi/esdsl/rankfeaturefunctionlinear.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturefunctionlogarithm.go b/typedapi/esdsl/rankfeaturefunctionlogarithm.go index bf93dd19c4..978e92f763 100644 --- a/typedapi/esdsl/rankfeaturefunctionlogarithm.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturefunctionsaturation.go b/typedapi/esdsl/rankfeaturefunctionsaturation.go index 82e709c062..eb74fc73fe 100644 --- a/typedapi/esdsl/rankfeaturefunctionsaturation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturefunctionsigmoid.go b/typedapi/esdsl/rankfeaturefunctionsigmoid.go index 7118f65243..a9f83c5137 100644 --- a/typedapi/esdsl/rankfeaturefunctionsigmoid.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeatureproperty.go b/typedapi/esdsl/rankfeatureproperty.go index 404fdd44b1..0c46e7ab85 100644 --- a/typedapi/esdsl/rankfeatureproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturequery.go b/typedapi/esdsl/rankfeaturequery.go index 3d45a71edd..0fe35dfaf3 100644 --- a/typedapi/esdsl/rankfeaturequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankfeaturesproperty.go b/typedapi/esdsl/rankfeaturesproperty.go index ba3b7341bb..f38a5a7afe 100644 --- a/typedapi/esdsl/rankfeaturesproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rankvectorproperty.go b/typedapi/esdsl/rankvectorproperty.go new file mode 100644 index 0000000000..ba606f4b18 --- /dev/null +++ b/typedapi/esdsl/rankvectorproperty.go @@ -0,0 +1,145 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rankvectorelementtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" +) + +type _rankVectorProperty struct { + v *types.RankVectorProperty +} + +func NewRankVectorProperty() *_rankVectorProperty { + + return &_rankVectorProperty{v: types.NewRankVectorProperty()} + +} + +func (s *_rankVectorProperty) Dims(dims int) *_rankVectorProperty { + + s.v.Dims = &dims + + return s +} + +func (s *_rankVectorProperty) Dynamic(dynamic dynamicmapping.DynamicMapping) *_rankVectorProperty { + + s.v.Dynamic = &dynamic + return s +} + +func (s *_rankVectorProperty) ElementType(elementtype rankvectorelementtype.RankVectorElementType) *_rankVectorProperty { + + s.v.ElementType = &elementtype + return s +} + +func (s *_rankVectorProperty) Fields(fields map[string]types.Property) *_rankVectorProperty { + + s.v.Fields = fields + return s +} + +func (s *_rankVectorProperty) AddField(key string, value types.PropertyVariant) *_rankVectorProperty { + + var tmp map[string]types.Property + if s.v.Fields == nil { + s.v.Fields = make(map[string]types.Property) + } else { + tmp = s.v.Fields + } + + tmp[key] = *value.PropertyCaster() + + s.v.Fields = tmp + return s +} + +func (s *_rankVectorProperty) IgnoreAbove(ignoreabove int) *_rankVectorProperty { + + s.v.IgnoreAbove = &ignoreabove + + return s +} + +func (s *_rankVectorProperty) Meta(meta map[string]string) *_rankVectorProperty { + + s.v.Meta = meta + return s +} + +func (s *_rankVectorProperty) AddMeta(key string, value string) *_rankVectorProperty { + + var tmp map[string]string + if s.v.Meta == nil { + s.v.Meta = make(map[string]string) + } else { + tmp = s.v.Meta + } + + tmp[key] = value + + s.v.Meta = tmp + return s +} + +func (s *_rankVectorProperty) Properties(properties map[string]types.Property) *_rankVectorProperty { + + s.v.Properties = properties + return s +} + +func (s *_rankVectorProperty) AddProperty(key string, value types.PropertyVariant) *_rankVectorProperty { + + var tmp map[string]types.Property + if s.v.Properties == nil { + s.v.Properties = make(map[string]types.Property) + } else { + tmp = s.v.Properties + } + + tmp[key] = *value.PropertyCaster() + + s.v.Properties = tmp + return s +} + +func (s *_rankVectorProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsourcekeepenum.SyntheticSourceKeepEnum) *_rankVectorProperty { + + s.v.SyntheticSourceKeep = &syntheticsourcekeep + return s +} + +func (s *_rankVectorProperty) DynamicTemplateCaster() *types.DynamicTemplate { + container := types.NewDynamicTemplate() + + container.Mapping = s.v + + return container +} + +func (s *_rankVectorProperty) RankVectorPropertyCaster() *types.RankVectorProperty { + return s.v +} diff --git a/typedapi/esdsl/raretermsaggregation.go b/typedapi/esdsl/raretermsaggregation.go index 40f9c77425..81896aeecf 100644 --- a/typedapi/esdsl/raretermsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rateaggregation.go b/typedapi/esdsl/rateaggregation.go index 6f0feba8b9..bfb25b5949 100644 --- a/typedapi/esdsl/rateaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ratelimitsetting.go b/typedapi/esdsl/ratelimitsetting.go index aa806b80e7..f265b33195 100644 --- a/typedapi/esdsl/ratelimitsetting.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/readonlyurlrepository.go b/typedapi/esdsl/readonlyurlrepository.go index 58010ddb4b..163e5ef91f 100644 --- a/typedapi/esdsl/readonlyurlrepository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/readonlyurlrepositorysettings.go b/typedapi/esdsl/readonlyurlrepositorysettings.go index e9f5312959..a518f673ae 100644 --- a/typedapi/esdsl/readonlyurlrepositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/redactprocessor.go b/typedapi/esdsl/redactprocessor.go index 0051304a65..a99cc089c8 100644 --- a/typedapi/esdsl/redactprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/regexoptions.go b/typedapi/esdsl/regexoptions.go index 28f2e5844c..720646bf30 100644 --- a/typedapi/esdsl/regexoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -34,7 +34,7 @@ func NewRegexOptions() *_regexOptions { func (s *_regexOptions) Flags(flags string) *_regexOptions { - s.v.Flags = flags + s.v.Flags = &flags return s } diff --git a/typedapi/esdsl/regexpquery.go b/typedapi/esdsl/regexpquery.go index 4e06f04078..fea90672e7 100644 --- a/typedapi/esdsl/regexpquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/regexvalidation.go b/typedapi/esdsl/regexvalidation.go index b250aeae85..9f3661c343 100644 --- a/typedapi/esdsl/regexvalidation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/registereddomainprocessor.go b/typedapi/esdsl/registereddomainprocessor.go index 2c9507761b..f1e4fca1d6 100644 --- a/typedapi/esdsl/registereddomainprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/regressioninferenceoptions.go b/typedapi/esdsl/regressioninferenceoptions.go index 61c66cb5d5..a575f20e2a 100644 --- a/typedapi/esdsl/regressioninferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/reindexdestination.go b/typedapi/esdsl/reindexdestination.go index bd5423cbbf..d2e63001f4 100644 --- a/typedapi/esdsl/reindexdestination.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/reindexsource.go b/typedapi/esdsl/reindexsource.go index a6554fadf6..78cbe9ab9e 100644 --- a/typedapi/esdsl/reindexsource.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/remoteclusterprivileges.go b/typedapi/esdsl/remoteclusterprivileges.go index c090e49c5d..80f9e51a99 100644 --- a/typedapi/esdsl/remoteclusterprivileges.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/remoteindicesprivileges.go b/typedapi/esdsl/remoteindicesprivileges.go index 43ec95f615..952bdf18e4 100644 --- a/typedapi/esdsl/remoteindicesprivileges.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/remotesource.go b/typedapi/esdsl/remotesource.go index 60cc67d438..fa0927f3eb 100644 --- a/typedapi/esdsl/remotesource.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/removeaction.go b/typedapi/esdsl/removeaction.go index 135b426a74..d2d371a432 100644 --- a/typedapi/esdsl/removeaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/removeduplicatestokenfilter.go b/typedapi/esdsl/removeduplicatestokenfilter.go index 40901d8427..0014958a4d 100644 --- a/typedapi/esdsl/removeduplicatestokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/removeindexaction.go b/typedapi/esdsl/removeindexaction.go index e2f13130e2..8df16b615e 100644 --- a/typedapi/esdsl/removeindexaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/removeprocessor.go b/typedapi/esdsl/removeprocessor.go index 43a770b3ec..7896e287da 100644 --- a/typedapi/esdsl/removeprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/renameprocessor.go b/typedapi/esdsl/renameprocessor.go index e4c2dc7bb0..13463082f6 100644 --- a/typedapi/esdsl/renameprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/replicationaccess.go b/typedapi/esdsl/replicationaccess.go index da325feb57..ff6c424093 100644 --- a/typedapi/esdsl/replicationaccess.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/reportingemailattachment.go b/typedapi/esdsl/reportingemailattachment.go index 2428483c65..b1a1710412 100644 --- a/typedapi/esdsl/reportingemailattachment.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/repository.go b/typedapi/esdsl/repository.go index 65b2fa54e1..899efc14ce 100644 --- a/typedapi/esdsl/repository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_repository) UnknownRepository(unknown json.RawMessage) *_repository { func (u *_repository) AzureRepository(azurerepository types.AzureRepositoryVariant) *_repository { - u.v = &azurerepository + u.v = azurerepository.AzureRepositoryCaster() return u } @@ -57,7 +57,7 @@ func (u *_azureRepository) RepositoryCaster() *types.Repository { func (u *_repository) GcsRepository(gcsrepository types.GcsRepositoryVariant) *_repository { - u.v = &gcsrepository + u.v = gcsrepository.GcsRepositoryCaster() return u } @@ -70,7 +70,7 @@ func (u *_gcsRepository) RepositoryCaster() *types.Repository { func (u *_repository) S3Repository(s3repository types.S3RepositoryVariant) *_repository { - u.v = &s3repository + u.v = s3repository.S3RepositoryCaster() return u } @@ -83,7 +83,7 @@ func (u *_s3Repository) RepositoryCaster() *types.Repository { func (u *_repository) SharedFileSystemRepository(sharedfilesystemrepository types.SharedFileSystemRepositoryVariant) *_repository { - u.v = &sharedfilesystemrepository + u.v = sharedfilesystemrepository.SharedFileSystemRepositoryCaster() return u } @@ -96,7 +96,7 @@ func (u *_sharedFileSystemRepository) RepositoryCaster() *types.Repository { func (u *_repository) ReadOnlyUrlRepository(readonlyurlrepository types.ReadOnlyUrlRepositoryVariant) *_repository { - u.v = &readonlyurlrepository + u.v = readonlyurlrepository.ReadOnlyUrlRepositoryCaster() return u } @@ -109,7 +109,7 @@ func (u *_readOnlyUrlRepository) RepositoryCaster() *types.Repository { func (u *_repository) SourceOnlyRepository(sourceonlyrepository types.SourceOnlyRepositoryVariant) *_repository { - u.v = &sourceonlyrepository + u.v = sourceonlyrepository.SourceOnlyRepositoryCaster() return u } diff --git a/typedapi/esdsl/requestchatcompletion.go b/typedapi/esdsl/requestchatcompletion.go index 7060679028..33f18f47ed 100644 --- a/typedapi/esdsl/requestchatcompletion.go +++ b/typedapi/esdsl/requestchatcompletion.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/requestitem.go b/typedapi/esdsl/requestitem.go index d31fbb4009..0779240ecd 100644 --- a/typedapi/esdsl/requestitem.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewRequestItem() *_requestItem { func (u *_requestItem) MultisearchHeader(multisearchheader types.MultisearchHeaderVariant) *_requestItem { - u.v = &multisearchheader + u.v = multisearchheader.MultisearchHeaderCaster() return u } @@ -46,7 +46,7 @@ func (u *_multisearchHeader) RequestItemCaster() *types.RequestItem { func (u *_requestItem) TemplateConfig(templateconfig types.TemplateConfigVariant) *_requestItem { - u.v = &templateconfig + u.v = templateconfig.TemplateConfigCaster() return u } diff --git a/typedapi/esdsl/rerouteprocessor.go b/typedapi/esdsl/rerouteprocessor.go index bb46916877..f61296e123 100644 --- a/typedapi/esdsl/rerouteprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rescore.go b/typedapi/esdsl/rescore.go index 8334bf0d7b..2fe595dcaf 100644 --- a/typedapi/esdsl/rescore.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rescorequery.go b/typedapi/esdsl/rescorequery.go index fa5e003150..48dc2f317b 100644 --- a/typedapi/esdsl/rescorequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rescorerretriever.go b/typedapi/esdsl/rescorerretriever.go new file mode 100644 index 0000000000..9d155ef3aa --- /dev/null +++ b/typedapi/esdsl/rescorerretriever.go @@ -0,0 +1,91 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _rescorerRetriever struct { + v *types.RescorerRetriever +} + +// A retriever that re-scores only the results produced by its child retriever. +func NewRescorerRetriever(retriever types.RetrieverContainerVariant) *_rescorerRetriever { + + tmp := &_rescorerRetriever{v: types.NewRescorerRetriever()} + + tmp.Retriever(retriever) + + return tmp + +} + +func (s *_rescorerRetriever) Filter(filters ...types.QueryVariant) *_rescorerRetriever { + + s.v.Filter = make([]types.Query, len(filters)) + for i, v := range filters { + s.v.Filter[i] = *v.QueryCaster() + } + + return s +} + +func (s *_rescorerRetriever) MinScore(minscore float32) *_rescorerRetriever { + + s.v.MinScore = &minscore + + return s +} + +func (s *_rescorerRetriever) Name_(name_ string) *_rescorerRetriever { + + s.v.Name_ = &name_ + + return s +} + +func (s *_rescorerRetriever) Rescore(rescores ...types.RescoreVariant) *_rescorerRetriever { + + s.v.Rescore = make([]types.Rescore, len(rescores)) + for i, v := range rescores { + s.v.Rescore[i] = *v.RescoreCaster() + } + + return s +} + +func (s *_rescorerRetriever) Retriever(retriever types.RetrieverContainerVariant) *_rescorerRetriever { + + s.v.Retriever = *retriever.RetrieverContainerCaster() + + return s +} + +func (s *_rescorerRetriever) RetrieverContainerCaster() *types.RetrieverContainer { + container := types.NewRetrieverContainer() + + container.Rescorer = s.v + + return container +} + +func (s *_rescorerRetriever) RescorerRetrieverCaster() *types.RescorerRetriever { + return s.v +} diff --git a/typedapi/esdsl/rescorevector.go b/typedapi/esdsl/rescorevector.go index effb620ed7..c913cc2fe3 100644 --- a/typedapi/esdsl/rescorevector.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/restriction.go b/typedapi/esdsl/restriction.go index 90e157064f..9ac9f0031f 100644 --- a/typedapi/esdsl/restriction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/retention.go b/typedapi/esdsl/retention.go index b082bc1299..86ea19ddab 100644 --- a/typedapi/esdsl/retention.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/retentionlease.go b/typedapi/esdsl/retentionlease.go index 5f9c93ac39..297482e0bc 100644 --- a/typedapi/esdsl/retentionlease.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/retentionpolicy.go b/typedapi/esdsl/retentionpolicy.go index f0bcfd5cb6..4d89d26b49 100644 --- a/typedapi/esdsl/retentionpolicy.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/retentionpolicycontainer.go b/typedapi/esdsl/retentionpolicycontainer.go index 1540698af4..7f9e8c79da 100644 --- a/typedapi/esdsl/retentionpolicycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/retrievercontainer.go b/typedapi/esdsl/retrievercontainer.go index db8fd2a0a1..9ae4f1f0da 100644 --- a/typedapi/esdsl/retrievercontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -53,6 +53,27 @@ func (s *_retrieverContainer) Knn(knn types.KnnRetrieverVariant) *_retrieverCont return s } +func (s *_retrieverContainer) Linear(linear types.LinearRetrieverVariant) *_retrieverContainer { + + s.v.Linear = linear.LinearRetrieverCaster() + + return s +} + +func (s *_retrieverContainer) Pinned(pinned types.PinnedRetrieverVariant) *_retrieverContainer { + + s.v.Pinned = pinned.PinnedRetrieverCaster() + + return s +} + +func (s *_retrieverContainer) Rescorer(rescorer types.RescorerRetrieverVariant) *_retrieverContainer { + + s.v.Rescorer = rescorer.RescorerRetrieverCaster() + + return s +} + func (s *_retrieverContainer) Rrf(rrf types.RRFRetrieverVariant) *_retrieverContainer { s.v.Rrf = rrf.RRFRetrieverCaster() diff --git a/typedapi/esdsl/reversenestedaggregation.go b/typedapi/esdsl/reversenestedaggregation.go index 8fe58d1f81..43da13def9 100644 --- a/typedapi/esdsl/reversenestedaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/reversetokenfilter.go b/typedapi/esdsl/reversetokenfilter.go index 9b8e235458..e09cd1c466 100644 --- a/typedapi/esdsl/reversetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/roledescriptor.go b/typedapi/esdsl/roledescriptor.go index d656247184..957bf5ec96 100644 --- a/typedapi/esdsl/roledescriptor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rolemappingrule.go b/typedapi/esdsl/rolemappingrule.go index f94c27be02..ad03323068 100644 --- a/typedapi/esdsl/rolemappingrule.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rolequerycontainer.go b/typedapi/esdsl/rolequerycontainer.go index 5ab3314946..085f0294e0 100644 --- a/typedapi/esdsl/rolequerycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/roletemplate.go b/typedapi/esdsl/roletemplate.go index b0a06b595a..cabcda104b 100644 --- a/typedapi/esdsl/roletemplate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/roletemplateinlinequery.go b/typedapi/esdsl/roletemplateinlinequery.go index ad2b8669af..15a66a2f6e 100644 --- a/typedapi/esdsl/roletemplateinlinequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_roleTemplateInlineQuery) String(string string) *_roleTemplateInlineQue func (u *_roleTemplateInlineQuery) Query(query types.QueryVariant) *_roleTemplateInlineQuery { - u.v = &query + u.v = query.QueryCaster() return u } diff --git a/typedapi/esdsl/roletemplatequery.go b/typedapi/esdsl/roletemplatequery.go index cf1193e7fc..5a877c720e 100644 --- a/typedapi/esdsl/roletemplatequery.go +++ b/typedapi/esdsl/roletemplatequery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/roletemplatescript.go b/typedapi/esdsl/roletemplatescript.go index 3ac42a419f..72c88d36dc 100644 --- a/typedapi/esdsl/roletemplatescript.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rolloveraction.go b/typedapi/esdsl/rolloveraction.go index 1072b8c669..754def0b29 100644 --- a/typedapi/esdsl/rolloveraction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rolloverconditions.go b/typedapi/esdsl/rolloverconditions.go index 41d01f83e3..f6614c7719 100644 --- a/typedapi/esdsl/rolloverconditions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/romaniananalyzer.go b/typedapi/esdsl/romaniananalyzer.go index d80577cc2e..cce0cf4ec6 100644 --- a/typedapi/esdsl/romaniananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_romanianAnalyzer) StemExclusion(stemexclusions ...string) *_romanianAn return s } -func (s *_romanianAnalyzer) Stopwords(stopwords ...string) *_romanianAnalyzer { +func (s *_romanianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_romanianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/routingfield.go b/typedapi/esdsl/routingfield.go index 12b2202766..0e1c87e311 100644 --- a/typedapi/esdsl/routingfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rrfrank.go b/typedapi/esdsl/rrfrank.go index 44f1c22eff..9647a8bf55 100644 --- a/typedapi/esdsl/rrfrank.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rrfretriever.go b/typedapi/esdsl/rrfretriever.go index 289c58cf26..6309e0b1bc 100644 --- a/typedapi/esdsl/rrfretriever.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -50,6 +50,13 @@ func (s *_rRFRetriever) MinScore(minscore float32) *_rRFRetriever { return s } +func (s *_rRFRetriever) Name_(name_ string) *_rRFRetriever { + + s.v.Name_ = &name_ + + return s +} + func (s *_rRFRetriever) RankConstant(rankconstant int) *_rRFRetriever { s.v.RankConstant = &rankconstant diff --git a/typedapi/esdsl/rulecondition.go b/typedapi/esdsl/rulecondition.go index 139b703bae..1b1fae8747 100644 --- a/typedapi/esdsl/rulecondition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/rulequery.go b/typedapi/esdsl/rulequery.go index 52196f0054..fd20fc3713 100644 --- a/typedapi/esdsl/rulequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -70,13 +70,18 @@ func (s *_ruleQuery) QueryName_(queryname_ string) *_ruleQuery { return s } -func (s *_ruleQuery) RulesetIds(rulesetids ...string) *_ruleQuery { +func (s *_ruleQuery) RulesetId(rulesetid string) *_ruleQuery { + + s.v.RulesetId = &rulesetid + + return s +} - for _, v := range rulesetids { +func (s *_ruleQuery) RulesetIds(rulesetids ...string) *_ruleQuery { - s.v.RulesetIds = append(s.v.RulesetIds, v) + s.v.RulesetIds = make([]string, len(rulesetids)) + s.v.RulesetIds = rulesetids - } return s } diff --git a/typedapi/esdsl/ruleretriever.go b/typedapi/esdsl/ruleretriever.go index d733d48c4d..501b14f06b 100644 --- a/typedapi/esdsl/ruleretriever.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -67,6 +67,13 @@ func (s *_ruleRetriever) MinScore(minscore float32) *_ruleRetriever { return s } +func (s *_ruleRetriever) Name_(name_ string) *_ruleRetriever { + + s.v.Name_ = &name_ + + return s +} + func (s *_ruleRetriever) RankWindowSize(rankwindowsize int) *_ruleRetriever { s.v.RankWindowSize = &rankwindowsize @@ -83,11 +90,9 @@ func (s *_ruleRetriever) Retriever(retriever types.RetrieverContainerVariant) *_ func (s *_ruleRetriever) RulesetIds(rulesetids ...string) *_ruleRetriever { - for _, v := range rulesetids { - - s.v.RulesetIds = append(s.v.RulesetIds, v) + s.v.RulesetIds = make([]string, len(rulesetids)) + s.v.RulesetIds = rulesetids - } return s } diff --git a/typedapi/esdsl/runtimefield.go b/typedapi/esdsl/runtimefield.go index c889497c8c..dfeb7c0aee 100644 --- a/typedapi/esdsl/runtimefield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/runtimefieldfetchfields.go b/typedapi/esdsl/runtimefieldfetchfields.go index a595c1256a..f1ac044ba6 100644 --- a/typedapi/esdsl/runtimefieldfetchfields.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/runtimefields.go b/typedapi/esdsl/runtimefields.go index da036ea5ca..fbfc234060 100644 --- a/typedapi/esdsl/runtimefields.go +++ b/typedapi/esdsl/runtimefields.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/russiananalyzer.go b/typedapi/esdsl/russiananalyzer.go index 9a96191ad2..54943b015b 100644 --- a/typedapi/esdsl/russiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_russianAnalyzer) StemExclusion(stemexclusions ...string) *_russianAnal return s } -func (s *_russianAnalyzer) Stopwords(stopwords ...string) *_russianAnalyzer { +func (s *_russianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_russianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/russianstemtokenfilter.go b/typedapi/esdsl/russianstemtokenfilter.go new file mode 100644 index 0000000000..0eeb379f3d --- /dev/null +++ b/typedapi/esdsl/russianstemtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _russianStemTokenFilter struct { + v *types.RussianStemTokenFilter +} + +func NewRussianStemTokenFilter() *_russianStemTokenFilter { + + return &_russianStemTokenFilter{v: types.NewRussianStemTokenFilter()} + +} + +func (s *_russianStemTokenFilter) Version(versionstring string) *_russianStemTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_russianStemTokenFilter) RussianStemTokenFilterCaster() *types.RussianStemTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/s3repository.go b/typedapi/esdsl/s3repository.go index f71b755e05..0c597cd4e9 100644 --- a/typedapi/esdsl/s3repository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/s3repositorysettings.go b/typedapi/esdsl/s3repositorysettings.go index 416349bcee..b1bca22b19 100644 --- a/typedapi/esdsl/s3repositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/samplediversity.go b/typedapi/esdsl/samplediversity.go index b4fdf89112..ee6459487d 100644 --- a/typedapi/esdsl/samplediversity.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sampleraggregation.go b/typedapi/esdsl/sampleraggregation.go index 753fe93f51..6ed6bd5b61 100644 --- a/typedapi/esdsl/sampleraggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scalarvalue.go b/typedapi/esdsl/scalarvalue.go index 0c193cfa35..815f23c161 100644 --- a/typedapi/esdsl/scalarvalue.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scaledfloatnumberproperty.go b/typedapi/esdsl/scaledfloatnumberproperty.go index 09b726d871..3ae0c06350 100644 --- a/typedapi/esdsl/scaledfloatnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scandinavianfoldingtokenfilter.go b/typedapi/esdsl/scandinavianfoldingtokenfilter.go new file mode 100644 index 0000000000..6b074c5820 --- /dev/null +++ b/typedapi/esdsl/scandinavianfoldingtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _scandinavianFoldingTokenFilter struct { + v *types.ScandinavianFoldingTokenFilter +} + +func NewScandinavianFoldingTokenFilter() *_scandinavianFoldingTokenFilter { + + return &_scandinavianFoldingTokenFilter{v: types.NewScandinavianFoldingTokenFilter()} + +} + +func (s *_scandinavianFoldingTokenFilter) Version(versionstring string) *_scandinavianFoldingTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_scandinavianFoldingTokenFilter) ScandinavianFoldingTokenFilterCaster() *types.ScandinavianFoldingTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/scandinaviannormalizationtokenfilter.go b/typedapi/esdsl/scandinaviannormalizationtokenfilter.go new file mode 100644 index 0000000000..d67b5f2ef8 --- /dev/null +++ b/typedapi/esdsl/scandinaviannormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _scandinavianNormalizationTokenFilter struct { + v *types.ScandinavianNormalizationTokenFilter +} + +func NewScandinavianNormalizationTokenFilter() *_scandinavianNormalizationTokenFilter { + + return &_scandinavianNormalizationTokenFilter{v: types.NewScandinavianNormalizationTokenFilter()} + +} + +func (s *_scandinavianNormalizationTokenFilter) Version(versionstring string) *_scandinavianNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_scandinavianNormalizationTokenFilter) ScandinavianNormalizationTokenFilterCaster() *types.ScandinavianNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/schedulecontainer.go b/typedapi/esdsl/schedulecontainer.go index 5d627abf0d..ce18b94fc9 100644 --- a/typedapi/esdsl/schedulecontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scheduletimeofday.go b/typedapi/esdsl/scheduletimeofday.go index e252e42193..e22af51adb 100644 --- a/typedapi/esdsl/scheduletimeofday.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_scheduleTimeOfDay) String(string string) *_scheduleTimeOfDay { func (u *_scheduleTimeOfDay) HourAndMinute(hourandminute types.HourAndMinuteVariant) *_scheduleTimeOfDay { - u.v = &hourandminute + u.v = hourandminute.HourAndMinuteCaster() return u } diff --git a/typedapi/esdsl/scheduletriggerevent.go b/typedapi/esdsl/scheduletriggerevent.go index a566c6695e..1df555c061 100644 --- a/typedapi/esdsl/scheduletriggerevent.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/schedulingconfiguration.go b/typedapi/esdsl/schedulingconfiguration.go index 78d6eef366..84b3bcc237 100644 --- a/typedapi/esdsl/schedulingconfiguration.go +++ b/typedapi/esdsl/schedulingconfiguration.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scoresort.go b/typedapi/esdsl/scoresort.go index b1f6e8c243..1cee75159b 100644 --- a/typedapi/esdsl/scoresort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/script.go b/typedapi/esdsl/script.go index a423cf4dfb..1f25c3923d 100644 --- a/typedapi/esdsl/script.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptcondition.go b/typedapi/esdsl/scriptcondition.go index 5d8a690252..8ecbe72489 100644 --- a/typedapi/esdsl/scriptcondition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptedheuristic.go b/typedapi/esdsl/scriptedheuristic.go index 199a517690..0362a425fe 100644 --- a/typedapi/esdsl/scriptedheuristic.go +++ b/typedapi/esdsl/scriptedheuristic.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptedmetricaggregation.go b/typedapi/esdsl/scriptedmetricaggregation.go index c024d1a990..8712059c45 100644 --- a/typedapi/esdsl/scriptedmetricaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptfield.go b/typedapi/esdsl/scriptfield.go index 57e93cdeab..81f72ee37a 100644 --- a/typedapi/esdsl/scriptfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptprocessor.go b/typedapi/esdsl/scriptprocessor.go index e94a7ea2eb..4f50671127 100644 --- a/typedapi/esdsl/scriptprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptquery.go b/typedapi/esdsl/scriptquery.go index 5b9648272a..8d80dd37ec 100644 --- a/typedapi/esdsl/scriptquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptscorefunction.go b/typedapi/esdsl/scriptscorefunction.go index 7b961ce7ad..955541dc28 100644 --- a/typedapi/esdsl/scriptscorefunction.go +++ b/typedapi/esdsl/scriptscorefunction.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptscorequery.go b/typedapi/esdsl/scriptscorequery.go index 3ed2f87fdc..e89c7385c7 100644 --- a/typedapi/esdsl/scriptscorequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptsort.go b/typedapi/esdsl/scriptsort.go index 3605f13361..f5a4f5a35d 100644 --- a/typedapi/esdsl/scriptsort.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scriptsource.go b/typedapi/esdsl/scriptsource.go index b1a6cc45a9..69147ecc13 100644 --- a/typedapi/esdsl/scriptsource.go +++ b/typedapi/esdsl/scriptsource.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_scriptSource) String(string string) *_scriptSource { func (u *_scriptSource) SearchRequestBody(searchrequestbody types.SearchRequestBodyVariant) *_scriptSource { - u.v = &searchrequestbody + u.v = searchrequestbody.SearchRequestBodyCaster() return u } diff --git a/typedapi/esdsl/scripttransform.go b/typedapi/esdsl/scripttransform.go index 8b592bfdaa..635182ae48 100644 --- a/typedapi/esdsl/scripttransform.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/scrollids.go b/typedapi/esdsl/scrollids.go index a184cfd6e2..cdab3c5a52 100644 --- a/typedapi/esdsl/scrollids.go +++ b/typedapi/esdsl/scrollids.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchablesnapshotaction.go b/typedapi/esdsl/searchablesnapshotaction.go index 327618d1e6..20ec227a9f 100644 --- a/typedapi/esdsl/searchablesnapshotaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchaccess.go b/typedapi/esdsl/searchaccess.go index 2eefcdab84..f8b0e64d75 100644 --- a/typedapi/esdsl/searchaccess.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchapplicationparameters.go b/typedapi/esdsl/searchapplicationparameters.go index 1660bc54ca..c1ea8e620c 100644 --- a/typedapi/esdsl/searchapplicationparameters.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchapplicationtemplate.go b/typedapi/esdsl/searchapplicationtemplate.go index a747f9ac82..3d18dd2515 100644 --- a/typedapi/esdsl/searchapplicationtemplate.go +++ b/typedapi/esdsl/searchapplicationtemplate.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchasyoutypeproperty.go b/typedapi/esdsl/searchasyoutypeproperty.go index e237785091..78b24fd96e 100644 --- a/typedapi/esdsl/searchasyoutypeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchidle.go b/typedapi/esdsl/searchidle.go index 855f7ac53e..acba7d6a66 100644 --- a/typedapi/esdsl/searchidle.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchinput.go b/typedapi/esdsl/searchinput.go index f448166992..973bd2d747 100644 --- a/typedapi/esdsl/searchinput.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchinputrequestbody.go b/typedapi/esdsl/searchinputrequestbody.go index 712cb187d7..f27eb95fed 100644 --- a/typedapi/esdsl/searchinputrequestbody.go +++ b/typedapi/esdsl/searchinputrequestbody.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchinputrequestdefinition.go b/typedapi/esdsl/searchinputrequestdefinition.go index a21a1a3ef7..61e78e3fa7 100644 --- a/typedapi/esdsl/searchinputrequestdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchrequestbody.go b/typedapi/esdsl/searchrequestbody.go index 01e833178d..56fdeb0fb7 100644 --- a/typedapi/esdsl/searchrequestbody.go +++ b/typedapi/esdsl/searchrequestbody.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchtemplaterequestbody.go b/typedapi/esdsl/searchtemplaterequestbody.go index 6a756f33ad..b917e36873 100644 --- a/typedapi/esdsl/searchtemplaterequestbody.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/searchtransform.go b/typedapi/esdsl/searchtransform.go index 8ee784a3f8..07eb3d57ac 100644 --- a/typedapi/esdsl/searchtransform.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/securitysettings.go b/typedapi/esdsl/securitysettings.go index f4843c9ad0..392e647389 100644 --- a/typedapi/esdsl/securitysettings.go +++ b/typedapi/esdsl/securitysettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/selectoption.go b/typedapi/esdsl/selectoption.go index 65d588f3c6..20c20a08f3 100644 --- a/typedapi/esdsl/selectoption.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/semanticquery.go b/typedapi/esdsl/semanticquery.go index aba1e1f307..f38635f228 100644 --- a/typedapi/esdsl/semanticquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/semantictextproperty.go b/typedapi/esdsl/semantictextproperty.go index 96a119c2f2..00942f9742 100644 --- a/typedapi/esdsl/semantictextproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/serbiananalyzer.go b/typedapi/esdsl/serbiananalyzer.go index 0f3d288810..bea14bddf9 100644 --- a/typedapi/esdsl/serbiananalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_serbianAnalyzer) StemExclusion(stemexclusions ...string) *_serbianAnal return s } -func (s *_serbianAnalyzer) Stopwords(stopwords ...string) *_serbianAnalyzer { +func (s *_serbianAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_serbianAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/serbiannormalizationtokenfilter.go b/typedapi/esdsl/serbiannormalizationtokenfilter.go new file mode 100644 index 0000000000..c982a568e2 --- /dev/null +++ b/typedapi/esdsl/serbiannormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _serbianNormalizationTokenFilter struct { + v *types.SerbianNormalizationTokenFilter +} + +func NewSerbianNormalizationTokenFilter() *_serbianNormalizationTokenFilter { + + return &_serbianNormalizationTokenFilter{v: types.NewSerbianNormalizationTokenFilter()} + +} + +func (s *_serbianNormalizationTokenFilter) Version(versionstring string) *_serbianNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_serbianNormalizationTokenFilter) SerbianNormalizationTokenFilterCaster() *types.SerbianNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/serialdifferencingaggregation.go b/typedapi/esdsl/serialdifferencingaggregation.go index 85081acc52..f72b6b469a 100644 --- a/typedapi/esdsl/serialdifferencingaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/setpriorityaction.go b/typedapi/esdsl/setpriorityaction.go index fa56ae349a..1996be5fee 100644 --- a/typedapi/esdsl/setpriorityaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/setprocessor.go b/typedapi/esdsl/setprocessor.go index 9f4ed90db3..cdadd55a10 100644 --- a/typedapi/esdsl/setprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/setsecurityuserprocessor.go b/typedapi/esdsl/setsecurityuserprocessor.go index b087c947dc..5f4ed5b41d 100644 --- a/typedapi/esdsl/setsecurityuserprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settings.go b/typedapi/esdsl/settings.go index 26148f384e..56785ad5c9 100644 --- a/typedapi/esdsl/settings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingsanalyze.go b/typedapi/esdsl/settingsanalyze.go index 5ad86868fd..1ea706c91f 100644 --- a/typedapi/esdsl/settingsanalyze.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingshighlight.go b/typedapi/esdsl/settingshighlight.go index a5412b55f1..2beb0e82cd 100644 --- a/typedapi/esdsl/settingshighlight.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingsquerystring.go b/typedapi/esdsl/settingsquerystring.go index 1ccd95debd..14097c7281 100644 --- a/typedapi/esdsl/settingsquerystring.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssearch.go b/typedapi/esdsl/settingssearch.go index e9d9eb4701..ef037beda6 100644 --- a/typedapi/esdsl/settingssearch.go +++ b/typedapi/esdsl/settingssearch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilarity.go b/typedapi/esdsl/settingssimilarity.go index 3b2d1d935b..42dca462bb 100644 --- a/typedapi/esdsl/settingssimilarity.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_settingsSimilarity) UnknownSettingsSimilarity(unknown json.RawMessage) func (u *_settingsSimilarity) SettingsSimilarityBm25(settingssimilaritybm25 types.SettingsSimilarityBm25Variant) *_settingsSimilarity { - u.v = &settingssimilaritybm25 + u.v = settingssimilaritybm25.SettingsSimilarityBm25Caster() return u } @@ -57,7 +57,7 @@ func (u *_settingsSimilarityBm25) SettingsSimilarityCaster() *types.SettingsSimi func (u *_settingsSimilarity) SettingsSimilarityBoolean(settingssimilarityboolean types.SettingsSimilarityBooleanVariant) *_settingsSimilarity { - u.v = &settingssimilarityboolean + u.v = settingssimilarityboolean.SettingsSimilarityBooleanCaster() return u } @@ -70,7 +70,7 @@ func (u *_settingsSimilarityBoolean) SettingsSimilarityCaster() *types.SettingsS func (u *_settingsSimilarity) SettingsSimilarityDfi(settingssimilaritydfi types.SettingsSimilarityDfiVariant) *_settingsSimilarity { - u.v = &settingssimilaritydfi + u.v = settingssimilaritydfi.SettingsSimilarityDfiCaster() return u } @@ -83,7 +83,7 @@ func (u *_settingsSimilarityDfi) SettingsSimilarityCaster() *types.SettingsSimil func (u *_settingsSimilarity) SettingsSimilarityDfr(settingssimilaritydfr types.SettingsSimilarityDfrVariant) *_settingsSimilarity { - u.v = &settingssimilaritydfr + u.v = settingssimilaritydfr.SettingsSimilarityDfrCaster() return u } @@ -96,7 +96,7 @@ func (u *_settingsSimilarityDfr) SettingsSimilarityCaster() *types.SettingsSimil func (u *_settingsSimilarity) SettingsSimilarityIb(settingssimilarityib types.SettingsSimilarityIbVariant) *_settingsSimilarity { - u.v = &settingssimilarityib + u.v = settingssimilarityib.SettingsSimilarityIbCaster() return u } @@ -109,7 +109,7 @@ func (u *_settingsSimilarityIb) SettingsSimilarityCaster() *types.SettingsSimila func (u *_settingsSimilarity) SettingsSimilarityLmd(settingssimilaritylmd types.SettingsSimilarityLmdVariant) *_settingsSimilarity { - u.v = &settingssimilaritylmd + u.v = settingssimilaritylmd.SettingsSimilarityLmdCaster() return u } @@ -122,7 +122,7 @@ func (u *_settingsSimilarityLmd) SettingsSimilarityCaster() *types.SettingsSimil func (u *_settingsSimilarity) SettingsSimilarityLmj(settingssimilaritylmj types.SettingsSimilarityLmjVariant) *_settingsSimilarity { - u.v = &settingssimilaritylmj + u.v = settingssimilaritylmj.SettingsSimilarityLmjCaster() return u } @@ -135,7 +135,7 @@ func (u *_settingsSimilarityLmj) SettingsSimilarityCaster() *types.SettingsSimil func (u *_settingsSimilarity) SettingsSimilarityScripted(settingssimilarityscripted types.SettingsSimilarityScriptedVariant) *_settingsSimilarity { - u.v = &settingssimilarityscripted + u.v = settingssimilarityscripted.SettingsSimilarityScriptedCaster() return u } diff --git a/typedapi/esdsl/settingssimilaritybm25.go b/typedapi/esdsl/settingssimilaritybm25.go index 03ae9bffcc..497e644b2e 100644 --- a/typedapi/esdsl/settingssimilaritybm25.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilarityboolean.go b/typedapi/esdsl/settingssimilarityboolean.go index cf145becac..f21c935779 100644 --- a/typedapi/esdsl/settingssimilarityboolean.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilaritydfi.go b/typedapi/esdsl/settingssimilaritydfi.go index 095c487b86..4196aef9d2 100644 --- a/typedapi/esdsl/settingssimilaritydfi.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilaritydfr.go b/typedapi/esdsl/settingssimilaritydfr.go index f705090a26..baec32de38 100644 --- a/typedapi/esdsl/settingssimilaritydfr.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilarityib.go b/typedapi/esdsl/settingssimilarityib.go index 47220b4158..1c5245589c 100644 --- a/typedapi/esdsl/settingssimilarityib.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilaritylmd.go b/typedapi/esdsl/settingssimilaritylmd.go index 0849d695a9..ca4eb41850 100644 --- a/typedapi/esdsl/settingssimilaritylmd.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilaritylmj.go b/typedapi/esdsl/settingssimilaritylmj.go index f246bcf000..385b56e3f7 100644 --- a/typedapi/esdsl/settingssimilaritylmj.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/settingssimilarityscripted.go b/typedapi/esdsl/settingssimilarityscripted.go index 00aa01285d..4143992cd4 100644 --- a/typedapi/esdsl/settingssimilarityscripted.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/shapefieldquery.go b/typedapi/esdsl/shapefieldquery.go index 5c94256da9..778ee29382 100644 --- a/typedapi/esdsl/shapefieldquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/shapeproperty.go b/typedapi/esdsl/shapeproperty.go index 11b3aafd00..edaa7cbdbe 100644 --- a/typedapi/esdsl/shapeproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/shapequery.go b/typedapi/esdsl/shapequery.go index b25c180a67..c650415126 100644 --- a/typedapi/esdsl/shapequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sharedfilesystemrepository.go b/typedapi/esdsl/sharedfilesystemrepository.go index 88cb6f5779..6527a90fc0 100644 --- a/typedapi/esdsl/sharedfilesystemrepository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sharedfilesystemrepositorysettings.go b/typedapi/esdsl/sharedfilesystemrepositorysettings.go index 7057f7bbd7..6be7c9226f 100644 --- a/typedapi/esdsl/sharedfilesystemrepositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/shingletokenfilter.go b/typedapi/esdsl/shingletokenfilter.go index 076dfb592b..0fca6ecefc 100644 --- a/typedapi/esdsl/shingletokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -39,16 +39,16 @@ func (s *_shingleTokenFilter) FillerToken(fillertoken string) *_shingleTokenFilt return s } -func (s *_shingleTokenFilter) MaxShingleSize(maxshinglesize string) *_shingleTokenFilter { +func (s *_shingleTokenFilter) MaxShingleSize(stringifiedinteger types.StringifiedintegerVariant) *_shingleTokenFilter { - s.v.MaxShingleSize = maxshinglesize + s.v.MaxShingleSize = *stringifiedinteger.StringifiedintegerCaster() return s } -func (s *_shingleTokenFilter) MinShingleSize(minshinglesize string) *_shingleTokenFilter { +func (s *_shingleTokenFilter) MinShingleSize(stringifiedinteger types.StringifiedintegerVariant) *_shingleTokenFilter { - s.v.MinShingleSize = minshinglesize + s.v.MinShingleSize = *stringifiedinteger.StringifiedintegerCaster() return s } diff --git a/typedapi/esdsl/shortnumberproperty.go b/typedapi/esdsl/shortnumberproperty.go index 5a65ebf36b..901b820825 100644 --- a/typedapi/esdsl/shortnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/shrinkaction.go b/typedapi/esdsl/shrinkaction.go index bb32ed4f67..ac5b422eda 100644 --- a/typedapi/esdsl/shrinkaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/significanttermsaggregation.go b/typedapi/esdsl/significanttermsaggregation.go index c01ebdcd93..cb4ea69929 100644 --- a/typedapi/esdsl/significanttermsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/significanttextaggregation.go b/typedapi/esdsl/significanttextaggregation.go index ef314f4219..0b36ac6661 100644 --- a/typedapi/esdsl/significanttextaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simpleanalyzer.go b/typedapi/esdsl/simpleanalyzer.go index ab0a47b152..f4299b25c2 100644 --- a/typedapi/esdsl/simpleanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simplemovingaverageaggregation.go b/typedapi/esdsl/simplemovingaverageaggregation.go index 6a7254c543..4a5bb0ecb1 100644 --- a/typedapi/esdsl/simplemovingaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simplepatternsplittokenizer.go b/typedapi/esdsl/simplepatternsplittokenizer.go index b14b5ae8e8..998eee8600 100644 --- a/typedapi/esdsl/simplepatternsplittokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simplepatterntokenizer.go b/typedapi/esdsl/simplepatterntokenizer.go index 57976839af..21907f4731 100644 --- a/typedapi/esdsl/simplepatterntokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simplequerystringflags.go b/typedapi/esdsl/simplequerystringflags.go index ca9abd56f7..8718ceff51 100644 --- a/typedapi/esdsl/simplequerystringflags.go +++ b/typedapi/esdsl/simplequerystringflags.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/simplequerystringquery.go b/typedapi/esdsl/simplequerystringquery.go index 4ecbe22b22..7bf2abfeb6 100644 --- a/typedapi/esdsl/simplequerystringquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -29,8 +29,8 @@ type _simpleQueryStringQuery struct { v *types.SimpleQueryStringQuery } -// Returns documents based on a provided query string, using a parser with a -// limited but fault-tolerant syntax. +// Returns users based on a provided query string, using a parser with a limited +// but fault-tolerant syntax. func NewSimpleQueryStringQuery(query string) *_simpleQueryStringQuery { tmp := &_simpleQueryStringQuery{v: types.NewSimpleQueryStringQuery()} diff --git a/typedapi/esdsl/simulatedactions.go b/typedapi/esdsl/simulatedactions.go index b2ffdcdccb..5338c7766b 100644 --- a/typedapi/esdsl/simulatedactions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sizefield.go b/typedapi/esdsl/sizefield.go index 60688f8ba0..96416d7c78 100644 --- a/typedapi/esdsl/sizefield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slackaction.go b/typedapi/esdsl/slackaction.go index 7de59aef43..c00611c469 100644 --- a/typedapi/esdsl/slackaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slackattachment.go b/typedapi/esdsl/slackattachment.go index 6156fdc396..a11e9698a1 100644 --- a/typedapi/esdsl/slackattachment.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slackattachmentfield.go b/typedapi/esdsl/slackattachmentfield.go index 0bb9dc23fe..d7a1b3448e 100644 --- a/typedapi/esdsl/slackattachmentfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slackdynamicattachment.go b/typedapi/esdsl/slackdynamicattachment.go index 96e11915ba..6dff314081 100644 --- a/typedapi/esdsl/slackdynamicattachment.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slackmessage.go b/typedapi/esdsl/slackmessage.go index 0dae38b50c..7bf9ce42b4 100644 --- a/typedapi/esdsl/slackmessage.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slicedscroll.go b/typedapi/esdsl/slicedscroll.go index c497b649bc..ca031b7150 100644 --- a/typedapi/esdsl/slicedscroll.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slowlogsettings.go b/typedapi/esdsl/slowlogsettings.go index a4a263b6dd..d53d0d0f82 100644 --- a/typedapi/esdsl/slowlogsettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slowlogtresholdlevels.go b/typedapi/esdsl/slowlogtresholdlevels.go index 8bbdec5efb..86ec12a4ea 100644 --- a/typedapi/esdsl/slowlogtresholdlevels.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/slowlogtresholds.go b/typedapi/esdsl/slowlogtresholds.go index c5d5d573bf..991aab5a54 100644 --- a/typedapi/esdsl/slowlogtresholds.go +++ b/typedapi/esdsl/slowlogtresholds.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/smoothingmodelcontainer.go b/typedapi/esdsl/smoothingmodelcontainer.go index f850e15686..e35238e3d1 100644 --- a/typedapi/esdsl/smoothingmodelcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/snowballanalyzer.go b/typedapi/esdsl/snowballanalyzer.go index ba73628af1..32a8164794 100644 --- a/typedapi/esdsl/snowballanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -45,9 +45,9 @@ func (s *_snowballAnalyzer) Language(language snowballlanguage.SnowballLanguage) return s } -func (s *_snowballAnalyzer) Stopwords(stopwords ...string) *_snowballAnalyzer { +func (s *_snowballAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_snowballAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/snowballtokenfilter.go b/typedapi/esdsl/snowballtokenfilter.go index 233ca6d93a..0e239807ae 100644 --- a/typedapi/esdsl/snowballtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/softdeletes.go b/typedapi/esdsl/softdeletes.go index 7bdef41c32..9ff15cbaa3 100644 --- a/typedapi/esdsl/softdeletes.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/soranianalyzer.go b/typedapi/esdsl/soranianalyzer.go index f1a6b3825d..8437813ebd 100644 --- a/typedapi/esdsl/soranianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_soraniAnalyzer) StemExclusion(stemexclusions ...string) *_soraniAnalyz return s } -func (s *_soraniAnalyzer) Stopwords(stopwords ...string) *_soraniAnalyzer { +func (s *_soraniAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_soraniAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/soraninormalizationtokenfilter.go b/typedapi/esdsl/soraninormalizationtokenfilter.go new file mode 100644 index 0000000000..b9062422bb --- /dev/null +++ b/typedapi/esdsl/soraninormalizationtokenfilter.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _soraniNormalizationTokenFilter struct { + v *types.SoraniNormalizationTokenFilter +} + +func NewSoraniNormalizationTokenFilter() *_soraniNormalizationTokenFilter { + + return &_soraniNormalizationTokenFilter{v: types.NewSoraniNormalizationTokenFilter()} + +} + +func (s *_soraniNormalizationTokenFilter) Version(versionstring string) *_soraniNormalizationTokenFilter { + + s.v.Version = &versionstring + + return s +} + +func (s *_soraniNormalizationTokenFilter) SoraniNormalizationTokenFilterCaster() *types.SoraniNormalizationTokenFilter { + return s.v +} diff --git a/typedapi/esdsl/sort.go b/typedapi/esdsl/sort.go index 9d5a71d856..857b4f6938 100644 --- a/typedapi/esdsl/sort.go +++ b/typedapi/esdsl/sort.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sortcombinations.go b/typedapi/esdsl/sortcombinations.go index f4ddb4424d..8b209f0347 100644 --- a/typedapi/esdsl/sortcombinations.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_sortCombinations) Field(field string) *_sortCombinations { func (u *_sortCombinations) SortOptions(sortoptions types.SortOptionsVariant) *_sortCombinations { - u.v = &sortoptions + u.v = sortoptions.SortOptionsCaster() return u } diff --git a/typedapi/esdsl/sortoptions.go b/typedapi/esdsl/sortoptions.go index 24041ec48c..ac58dc900f 100644 --- a/typedapi/esdsl/sortoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sortprocessor.go b/typedapi/esdsl/sortprocessor.go index 403d03df3d..805e2a418c 100644 --- a/typedapi/esdsl/sortprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sourceconfig.go b/typedapi/esdsl/sourceconfig.go index 09f1457be3..29cd6213bd 100644 --- a/typedapi/esdsl/sourceconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -40,7 +40,7 @@ func (u *_sourceConfig) Bool(bool bool) *_sourceConfig { func (u *_sourceConfig) SourceFilter(sourcefilter types.SourceFilterVariant) *_sourceConfig { - u.v = &sourcefilter + u.v = sourcefilter.SourceFilterCaster() return u } diff --git a/typedapi/esdsl/sourcefield.go b/typedapi/esdsl/sourcefield.go index b308359d92..06367fdb3a 100644 --- a/typedapi/esdsl/sourcefield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sourcefilter.go b/typedapi/esdsl/sourcefilter.go index 3456abb6e5..9d84cdac1f 100644 --- a/typedapi/esdsl/sourcefilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sourceindex.go b/typedapi/esdsl/sourceindex.go index ec0bcee73b..1bbd20c508 100644 --- a/typedapi/esdsl/sourceindex.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sourceonlyrepository.go b/typedapi/esdsl/sourceonlyrepository.go index 33c117cc19..24beabe80c 100644 --- a/typedapi/esdsl/sourceonlyrepository.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sourceonlyrepositorysettings.go b/typedapi/esdsl/sourceonlyrepositorysettings.go index 43b2e00dee..1367cf5195 100644 --- a/typedapi/esdsl/sourceonlyrepositorysettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spancontainingquery.go b/typedapi/esdsl/spancontainingquery.go index b9ca11d723..a79deb3bc8 100644 --- a/typedapi/esdsl/spancontainingquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanfieldmaskingquery.go b/typedapi/esdsl/spanfieldmaskingquery.go index 8477bd3ca1..0f2844f67e 100644 --- a/typedapi/esdsl/spanfieldmaskingquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanfirstquery.go b/typedapi/esdsl/spanfirstquery.go index 786116dc69..e5b2680e12 100644 --- a/typedapi/esdsl/spanfirstquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spangapquery.go b/typedapi/esdsl/spangapquery.go index 246e9f4e26..0c2e0ea315 100644 --- a/typedapi/esdsl/spangapquery.go +++ b/typedapi/esdsl/spangapquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanishanalyzer.go b/typedapi/esdsl/spanishanalyzer.go index b1417201fc..d938b182f8 100644 --- a/typedapi/esdsl/spanishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_spanishAnalyzer) StemExclusion(stemexclusions ...string) *_spanishAnal return s } -func (s *_spanishAnalyzer) Stopwords(stopwords ...string) *_spanishAnalyzer { +func (s *_spanishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_spanishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/spanmultitermquery.go b/typedapi/esdsl/spanmultitermquery.go index 952e6bb6fb..9d9225a21c 100644 --- a/typedapi/esdsl/spanmultitermquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spannearquery.go b/typedapi/esdsl/spannearquery.go index 65c1aaf56d..ad4b5c0e01 100644 --- a/typedapi/esdsl/spannearquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spannotquery.go b/typedapi/esdsl/spannotquery.go index cc01cedc16..e0856dd645 100644 --- a/typedapi/esdsl/spannotquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanorquery.go b/typedapi/esdsl/spanorquery.go index 0623bca03c..80c54ba76b 100644 --- a/typedapi/esdsl/spanorquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanquery.go b/typedapi/esdsl/spanquery.go index 5f0889faca..799cfc675c 100644 --- a/typedapi/esdsl/spanquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spantermquery.go b/typedapi/esdsl/spantermquery.go index 4ed5d208d3..9acfa31d07 100644 --- a/typedapi/esdsl/spantermquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/spanwithinquery.go b/typedapi/esdsl/spanwithinquery.go index 75fa13c1fe..f9fe013203 100644 --- a/typedapi/esdsl/spanwithinquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sparsevectorproperty.go b/typedapi/esdsl/sparsevectorproperty.go index 3380b32335..9a00f01742 100644 --- a/typedapi/esdsl/sparsevectorproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -112,6 +112,13 @@ func (s *_sparseVectorProperty) AddProperty(key string, value types.PropertyVari return s } +func (s *_sparseVectorProperty) Store(store bool) *_sparseVectorProperty { + + s.v.Store = &store + + return s +} + func (s *_sparseVectorProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsourcekeepenum.SyntheticSourceKeepEnum) *_sparseVectorProperty { s.v.SyntheticSourceKeep = &syntheticsourcekeep diff --git a/typedapi/esdsl/sparsevectorquery.go b/typedapi/esdsl/sparsevectorquery.go index 9cd8ac9345..3e99cf66ce 100644 --- a/typedapi/esdsl/sparsevectorquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/specifieddocument.go b/typedapi/esdsl/specifieddocument.go new file mode 100644 index 0000000000..93191b57b2 --- /dev/null +++ b/typedapi/esdsl/specifieddocument.go @@ -0,0 +1,51 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _specifiedDocument struct { + v *types.SpecifiedDocument +} + +func NewSpecifiedDocument() *_specifiedDocument { + + return &_specifiedDocument{v: types.NewSpecifiedDocument()} + +} + +func (s *_specifiedDocument) Id(id string) *_specifiedDocument { + + s.v.Id = id + + return s +} + +func (s *_specifiedDocument) Index(indexname string) *_specifiedDocument { + + s.v.Index = &indexname + + return s +} + +func (s *_specifiedDocument) SpecifiedDocumentCaster() *types.SpecifiedDocument { + return s.v +} diff --git a/typedapi/esdsl/splitprocessor.go b/typedapi/esdsl/splitprocessor.go index 9754e3e0d3..f27e66716a 100644 --- a/typedapi/esdsl/splitprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/standardanalyzer.go b/typedapi/esdsl/standardanalyzer.go index 869b88d602..a4c3092a87 100644 --- a/typedapi/esdsl/standardanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -39,9 +39,9 @@ func (s *_standardAnalyzer) MaxTokenLength(maxtokenlength int) *_standardAnalyze return s } -func (s *_standardAnalyzer) Stopwords(stopwords ...string) *_standardAnalyzer { +func (s *_standardAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_standardAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/standardretriever.go b/typedapi/esdsl/standardretriever.go index e3bb9b1609..13545477f5 100644 --- a/typedapi/esdsl/standardretriever.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -57,6 +57,13 @@ func (s *_standardRetriever) MinScore(minscore float32) *_standardRetriever { return s } +func (s *_standardRetriever) Name_(name_ string) *_standardRetriever { + + s.v.Name_ = &name_ + + return s +} + func (s *_standardRetriever) Query(query types.QueryVariant) *_standardRetriever { s.v.Query = query.QueryCaster() diff --git a/typedapi/esdsl/standardtokenizer.go b/typedapi/esdsl/standardtokenizer.go index 75d3448db5..a26449cbe8 100644 --- a/typedapi/esdsl/standardtokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/statsaggregation.go b/typedapi/esdsl/statsaggregation.go index 9e4093d6c6..56e0933b0c 100644 --- a/typedapi/esdsl/statsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/statsbucketaggregation.go b/typedapi/esdsl/statsbucketaggregation.go index f36aad554e..5801c8529c 100644 --- a/typedapi/esdsl/statsbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stemmeroverridetokenfilter.go b/typedapi/esdsl/stemmeroverridetokenfilter.go index d64e0d0330..391c810277 100644 --- a/typedapi/esdsl/stemmeroverridetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stemmertokenfilter.go b/typedapi/esdsl/stemmertokenfilter.go index bbc881861d..ba99b2bd9f 100644 --- a/typedapi/esdsl/stemmertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stepkey.go b/typedapi/esdsl/stepkey.go index 6a1acafd30..c71ca8f098 100644 --- a/typedapi/esdsl/stepkey.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stopanalyzer.go b/typedapi/esdsl/stopanalyzer.go index 47c1e20aef..c08c81a0f8 100644 --- a/typedapi/esdsl/stopanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewStopAnalyzer() *_stopAnalyzer { } -func (s *_stopAnalyzer) Stopwords(stopwords ...string) *_stopAnalyzer { +func (s *_stopAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_stopAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/stoptokenfilter.go b/typedapi/esdsl/stoptokenfilter.go index 367b2104f9..f82ef926b9 100644 --- a/typedapi/esdsl/stoptokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -46,9 +46,9 @@ func (s *_stopTokenFilter) RemoveTrailing(removetrailing bool) *_stopTokenFilter return s } -func (s *_stopTokenFilter) Stopwords(stopwords ...string) *_stopTokenFilter { +func (s *_stopTokenFilter) Stopwords(stopwords types.StopWordsVariant) *_stopTokenFilter { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/stopwords.go b/typedapi/esdsl/stopwords.go index 1b59e9a709..e709b0c433 100644 --- a/typedapi/esdsl/stopwords.go +++ b/typedapi/esdsl/stopwords.go @@ -16,11 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl -import "github.com/elastic/go-elasticsearch/v9/typedapi/types" +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/stopwordlanguage" +) // This is provide all the types that are part of the union. type _stopWords struct { @@ -31,6 +34,12 @@ func NewStopWords() *_stopWords { return &_stopWords{v: nil} } +func (u *_stopWords) StopWordLanguage(stopwordlanguage stopwordlanguage.StopWordLanguage) *_stopWords { + + u.v = &stopwordlanguage + return u +} + func (u *_stopWords) Strings(strings ...string) *_stopWords { u.v = make([]string, len(strings)) diff --git a/typedapi/esdsl/storage.go b/typedapi/esdsl/storage.go index e1b199b986..ee681ac38d 100644 --- a/typedapi/esdsl/storage.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -46,6 +46,13 @@ func (s *_storage) AllowMmap(allowmmap bool) *_storage { return s } +func (s *_storage) StatsRefreshInterval(duration types.DurationVariant) *_storage { + + s.v.StatsRefreshInterval = *duration.DurationCaster() + + return s +} + func (s *_storage) Type(type_ storagetype.StorageType) *_storage { s.v.Type = type_ diff --git a/typedapi/esdsl/storedscript.go b/typedapi/esdsl/storedscript.go index d7e180f6e5..ad93eff8d7 100644 --- a/typedapi/esdsl/storedscript.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stringifiedboolean.go b/typedapi/esdsl/stringifiedboolean.go index 7c0a81bc5a..f5df48d6c9 100644 --- a/typedapi/esdsl/stringifiedboolean.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stringifiedepochtimeunitmillis.go b/typedapi/esdsl/stringifiedepochtimeunitmillis.go index 16a8430749..4bb853a060 100644 --- a/typedapi/esdsl/stringifiedepochtimeunitmillis.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stringifiedinteger.go b/typedapi/esdsl/stringifiedinteger.go index 75deb10aef..575c29463f 100644 --- a/typedapi/esdsl/stringifiedinteger.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stringstatsaggregation.go b/typedapi/esdsl/stringstatsaggregation.go index 26fdd3c5d6..36594489b2 100644 --- a/typedapi/esdsl/stringstatsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/stupidbackoffsmoothingmodel.go b/typedapi/esdsl/stupidbackoffsmoothingmodel.go index e0b26b8a3f..6a28c8ee43 100644 --- a/typedapi/esdsl/stupidbackoffsmoothingmodel.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/suggestcontext.go b/typedapi/esdsl/suggestcontext.go index 872a1d0cad..ea9841cf6b 100644 --- a/typedapi/esdsl/suggestcontext.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -52,7 +52,7 @@ func (s *_suggestContext) Path(field string) *_suggestContext { func (s *_suggestContext) Precision(precision string) *_suggestContext { - s.v.Precision = precision + s.v.Precision = &precision return s } diff --git a/typedapi/esdsl/suggester.go b/typedapi/esdsl/suggester.go index 9841c71c1f..7beeff21a6 100644 --- a/typedapi/esdsl/suggester.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/suggestfuzziness.go b/typedapi/esdsl/suggestfuzziness.go index 0df710b574..c567b6d951 100644 --- a/typedapi/esdsl/suggestfuzziness.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sumaggregation.go b/typedapi/esdsl/sumaggregation.go index f29c99408f..824784bc70 100644 --- a/typedapi/esdsl/sumaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/sumbucketaggregation.go b/typedapi/esdsl/sumbucketaggregation.go index 2fa62e4bd4..af89fe9699 100644 --- a/typedapi/esdsl/sumbucketaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/swedishanalyzer.go b/typedapi/esdsl/swedishanalyzer.go index 119cf4ab7e..1d5d45a51c 100644 --- a/typedapi/esdsl/swedishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_swedishAnalyzer) StemExclusion(stemexclusions ...string) *_swedishAnal return s } -func (s *_swedishAnalyzer) Stopwords(stopwords ...string) *_swedishAnalyzer { +func (s *_swedishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_swedishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/synccontainer.go b/typedapi/esdsl/synccontainer.go index 04ea8435b4..cc45e3fb87 100644 --- a/typedapi/esdsl/synccontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/syncrulesfeature.go b/typedapi/esdsl/syncrulesfeature.go index 021501ba85..d53a15fc9e 100644 --- a/typedapi/esdsl/syncrulesfeature.go +++ b/typedapi/esdsl/syncrulesfeature.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/synonymgraphtokenfilter.go b/typedapi/esdsl/synonymgraphtokenfilter.go index f6398f451c..a241708bcb 100644 --- a/typedapi/esdsl/synonymgraphtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/synonymrule.go b/typedapi/esdsl/synonymrule.go index 5f56a0d215..93035f8ea8 100644 --- a/typedapi/esdsl/synonymrule.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/synonymtokenfilter.go b/typedapi/esdsl/synonymtokenfilter.go index 4ab3955251..f13f730773 100644 --- a/typedapi/esdsl/synonymtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tablevaluescontainer.go b/typedapi/esdsl/tablevaluescontainer.go index 07574106b4..abd8b43c5b 100644 --- a/typedapi/esdsl/tablevaluescontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tablevaluesintegervalue.go b/typedapi/esdsl/tablevaluesintegervalue.go index e5aa4342b6..32a6a9479b 100644 --- a/typedapi/esdsl/tablevaluesintegervalue.go +++ b/typedapi/esdsl/tablevaluesintegervalue.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tablevalueskeywordvalue.go b/typedapi/esdsl/tablevalueskeywordvalue.go index 91870ad81f..d788c9a205 100644 --- a/typedapi/esdsl/tablevalueskeywordvalue.go +++ b/typedapi/esdsl/tablevalueskeywordvalue.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tablevalueslongdouble.go b/typedapi/esdsl/tablevalueslongdouble.go index 993dda22f5..657d3fad10 100644 --- a/typedapi/esdsl/tablevalueslongdouble.go +++ b/typedapi/esdsl/tablevalueslongdouble.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tablevalueslongvalue.go b/typedapi/esdsl/tablevalueslongvalue.go index 00b0dc0fad..4917c73ec4 100644 --- a/typedapi/esdsl/tablevalueslongvalue.go +++ b/typedapi/esdsl/tablevalueslongvalue.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/targetmeanencodingpreprocessor.go b/typedapi/esdsl/targetmeanencodingpreprocessor.go index 71af8459a3..368e4a09ac 100644 --- a/typedapi/esdsl/targetmeanencodingpreprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tdigest.go b/typedapi/esdsl/tdigest.go index edf74d2af2..06f770ed66 100644 --- a/typedapi/esdsl/tdigest.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/templateconfig.go b/typedapi/esdsl/templateconfig.go index 6c96aeacea..d2a4f89915 100644 --- a/typedapi/esdsl/templateconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/terminateprocessor.go b/typedapi/esdsl/terminateprocessor.go index 1400b7ab95..558df46b88 100644 --- a/typedapi/esdsl/terminateprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termquery.go b/typedapi/esdsl/termquery.go index d9fc8ac187..c691e81d04 100644 --- a/typedapi/esdsl/termquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termrangequery.go b/typedapi/esdsl/termrangequery.go index 77849a5297..1c3f66e15f 100644 --- a/typedapi/esdsl/termrangequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -45,13 +45,6 @@ func (s *_termRangeQuery) Boost(boost float32) *_termRangeQuery { return s } -func (s *_termRangeQuery) From(from string) *_termRangeQuery { - - s.v.From = &from - - return s -} - func (s *_termRangeQuery) Gt(gt string) *_termRangeQuery { s.v.Gt = > @@ -93,13 +86,6 @@ func (s *_termRangeQuery) Relation(relation rangerelation.RangeRelation) *_termR return s } -func (s *_termRangeQuery) To(to string) *_termRangeQuery { - - s.v.To = &to - - return s -} - func (s *_termRangeQuery) QueryCaster() *types.Query { container := types.NewQuery() container.Range = map[string]types.RangeQuery{ diff --git a/typedapi/esdsl/termsaggregation.go b/typedapi/esdsl/termsaggregation.go index a9618c46c3..3e33080fb7 100644 --- a/typedapi/esdsl/termsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termsexclude.go b/typedapi/esdsl/termsexclude.go index 7943a8716c..315fa925c2 100644 --- a/typedapi/esdsl/termsexclude.go +++ b/typedapi/esdsl/termsexclude.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termsgrouping.go b/typedapi/esdsl/termsgrouping.go index abbef393ad..3dd20cebb8 100644 --- a/typedapi/esdsl/termsgrouping.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termsinclude.go b/typedapi/esdsl/termsinclude.go index ff411b46d4..9ffdc1bc72 100644 --- a/typedapi/esdsl/termsinclude.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -48,7 +48,7 @@ func (u *_termsInclude) Strings(strings ...string) *_termsInclude { func (u *_termsInclude) TermsPartition(termspartition types.TermsPartitionVariant) *_termsInclude { - u.v = &termspartition + u.v = termspartition.TermsPartitionCaster() return u } diff --git a/typedapi/esdsl/termslookup.go b/typedapi/esdsl/termslookup.go index 56484068c0..8121f07a5b 100644 --- a/typedapi/esdsl/termslookup.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termspartition.go b/typedapi/esdsl/termspartition.go index ea8ce06689..2247eebae5 100644 --- a/typedapi/esdsl/termspartition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termsquery.go b/typedapi/esdsl/termsquery.go index f9360fa4d0..352d54c6d1 100644 --- a/typedapi/esdsl/termsquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -26,7 +26,7 @@ type _termsQuery struct { v *types.TermsQuery } -// Returns documents that contain one or more exact terms in a provided field. +// Returns roles that contain one or more exact terms in a provided field. // To return a document, one or more terms must exactly match a field value, // including whitespace and capitalization. func NewTermsQuery() *_termsQuery { diff --git a/typedapi/esdsl/termsqueryfield.go b/typedapi/esdsl/termsqueryfield.go index 0ecdbd3881..61d4764ff4 100644 --- a/typedapi/esdsl/termsqueryfield.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -43,7 +43,7 @@ func (u *_termsQueryField) FieldValues(fieldvalues ...types.FieldValueVariant) * func (u *_termsQueryField) TermsLookup(termslookup types.TermsLookupVariant) *_termsQueryField { - u.v = &termslookup + u.v = termslookup.TermsLookupCaster() return u } diff --git a/typedapi/esdsl/termssetquery.go b/typedapi/esdsl/termssetquery.go index 529db5c827..e0ca0f1832 100644 --- a/typedapi/esdsl/termssetquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termsuggester.go b/typedapi/esdsl/termsuggester.go index 450090f8e1..71f07c887e 100644 --- a/typedapi/esdsl/termsuggester.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/termvectorsfilter.go b/typedapi/esdsl/termvectorsfilter.go index a929690999..2281d70b7f 100644 --- a/typedapi/esdsl/termvectorsfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/testpopulation.go b/typedapi/esdsl/testpopulation.go index ed5da11ff6..15b5c2aee2 100644 --- a/typedapi/esdsl/testpopulation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textclassificationinferenceoptions.go b/typedapi/esdsl/textclassificationinferenceoptions.go index d4e08d7648..3901726a3a 100644 --- a/typedapi/esdsl/textclassificationinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textclassificationinferenceupdateoptions.go b/typedapi/esdsl/textclassificationinferenceupdateoptions.go index c6854b2519..4ee73260bc 100644 --- a/typedapi/esdsl/textclassificationinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textembedding.go b/typedapi/esdsl/textembedding.go index 78dc8d59c4..e5465598ce 100644 --- a/typedapi/esdsl/textembedding.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textembeddinginferenceoptions.go b/typedapi/esdsl/textembeddinginferenceoptions.go index afbb2f823a..6f48d24c6d 100644 --- a/typedapi/esdsl/textembeddinginferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textembeddinginferenceupdateoptions.go b/typedapi/esdsl/textembeddinginferenceupdateoptions.go index 3e0fa9b3c3..78b4ddea04 100644 --- a/typedapi/esdsl/textembeddinginferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textexpansioninferenceoptions.go b/typedapi/esdsl/textexpansioninferenceoptions.go index 8f255c6498..3090be8455 100644 --- a/typedapi/esdsl/textexpansioninferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textexpansioninferenceupdateoptions.go b/typedapi/esdsl/textexpansioninferenceupdateoptions.go index 9f40308e1e..8fbd195ff9 100644 --- a/typedapi/esdsl/textexpansioninferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textexpansionquery.go b/typedapi/esdsl/textexpansionquery.go index a1ee936964..36d3b91b03 100644 --- a/typedapi/esdsl/textexpansionquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textindexprefixes.go b/typedapi/esdsl/textindexprefixes.go index c028452eb6..1e4b1e0703 100644 --- a/typedapi/esdsl/textindexprefixes.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textproperty.go b/typedapi/esdsl/textproperty.go index c44b2b513c..98d908c682 100644 --- a/typedapi/esdsl/textproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/textsimilarityreranker.go b/typedapi/esdsl/textsimilarityreranker.go index f7da03457b..8493df00c5 100644 --- a/typedapi/esdsl/textsimilarityreranker.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -28,10 +28,14 @@ type _textSimilarityReranker struct { // A retriever that reranks the top documents based on a reranking model using // the InferenceAPI -func NewTextSimilarityReranker(retriever types.RetrieverContainerVariant) *_textSimilarityReranker { +func NewTextSimilarityReranker(field string, inferencetext string, retriever types.RetrieverContainerVariant) *_textSimilarityReranker { tmp := &_textSimilarityReranker{v: types.NewTextSimilarityReranker()} + tmp.Field(field) + + tmp.InferenceText(inferencetext) + tmp.Retriever(retriever) return tmp @@ -40,7 +44,7 @@ func NewTextSimilarityReranker(retriever types.RetrieverContainerVariant) *_text func (s *_textSimilarityReranker) Field(field string) *_textSimilarityReranker { - s.v.Field = &field + s.v.Field = field return s } @@ -64,7 +68,7 @@ func (s *_textSimilarityReranker) InferenceId(inferenceid string) *_textSimilari func (s *_textSimilarityReranker) InferenceText(inferencetext string) *_textSimilarityReranker { - s.v.InferenceText = &inferencetext + s.v.InferenceText = inferencetext return s } @@ -76,6 +80,13 @@ func (s *_textSimilarityReranker) MinScore(minscore float32) *_textSimilarityRer return s } +func (s *_textSimilarityReranker) Name_(name_ string) *_textSimilarityReranker { + + s.v.Name_ = &name_ + + return s +} + func (s *_textSimilarityReranker) RankWindowSize(rankwindowsize int) *_textSimilarityReranker { s.v.RankWindowSize = &rankwindowsize diff --git a/typedapi/esdsl/texttoanalyze.go b/typedapi/esdsl/texttoanalyze.go index a93dd828f5..9decf7937c 100644 --- a/typedapi/esdsl/texttoanalyze.go +++ b/typedapi/esdsl/texttoanalyze.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/thaianalyzer.go b/typedapi/esdsl/thaianalyzer.go index b1dd0d4334..41e9705c17 100644 --- a/typedapi/esdsl/thaianalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,9 +32,9 @@ func NewThaiAnalyzer() *_thaiAnalyzer { } -func (s *_thaiAnalyzer) Stopwords(stopwords ...string) *_thaiAnalyzer { +func (s *_thaiAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_thaiAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/thaitokenizer.go b/typedapi/esdsl/thaitokenizer.go index b9c9979d04..62bd9c0c22 100644 --- a/typedapi/esdsl/thaitokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/throttlestate.go b/typedapi/esdsl/throttlestate.go index 011473e727..3991d9ee0b 100644 --- a/typedapi/esdsl/throttlestate.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/timeofmonth.go b/typedapi/esdsl/timeofmonth.go index 7f5d8cb424..c3d1f8aa43 100644 --- a/typedapi/esdsl/timeofmonth.go +++ b/typedapi/esdsl/timeofmonth.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/timeofweek.go b/typedapi/esdsl/timeofweek.go index c01f519cea..212035fcf6 100644 --- a/typedapi/esdsl/timeofweek.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/timeofyear.go b/typedapi/esdsl/timeofyear.go index 2159d24db6..7dbbd798fd 100644 --- a/typedapi/esdsl/timeofyear.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/timeseriesaggregation.go b/typedapi/esdsl/timeseriesaggregation.go index 3364c3a00b..ea84fdca58 100644 --- a/typedapi/esdsl/timeseriesaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/timesync.go b/typedapi/esdsl/timesync.go index ae4842cc1e..9b072fcbd0 100644 --- a/typedapi/esdsl/timesync.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tokencountproperty.go b/typedapi/esdsl/tokencountproperty.go index 294810ff4b..d633b13962 100644 --- a/typedapi/esdsl/tokencountproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tokenfilter.go b/typedapi/esdsl/tokenfilter.go index b86b8b5e0e..8704071614 100644 --- a/typedapi/esdsl/tokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tokenfilterdefinition.go b/typedapi/esdsl/tokenfilterdefinition.go index 619c81cf28..c77dd4c989 100644 --- a/typedapi/esdsl/tokenfilterdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,48 @@ func (u *_tokenFilterDefinition) UnknownTokenFilterDefinition(unknown json.RawMe return u } +func (u *_tokenFilterDefinition) ApostropheTokenFilter(apostrophetokenfilter types.ApostropheTokenFilterVariant) *_tokenFilterDefinition { + + u.v = apostrophetokenfilter.ApostropheTokenFilterCaster() + + return u +} + +// Interface implementation for ApostropheTokenFilter in TokenFilterDefinition union +func (u *_apostropheTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) ArabicStemTokenFilter(arabicstemtokenfilter types.ArabicStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = arabicstemtokenfilter.ArabicStemTokenFilterCaster() + + return u +} + +// Interface implementation for ArabicStemTokenFilter in TokenFilterDefinition union +func (u *_arabicStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) ArabicNormalizationTokenFilter(arabicnormalizationtokenfilter types.ArabicNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = arabicnormalizationtokenfilter.ArabicNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for ArabicNormalizationTokenFilter in TokenFilterDefinition union +func (u *_arabicNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) AsciiFoldingTokenFilter(asciifoldingtokenfilter types.AsciiFoldingTokenFilterVariant) *_tokenFilterDefinition { - u.v = &asciifoldingtokenfilter + u.v = asciifoldingtokenfilter.AsciiFoldingTokenFilterCaster() return u } @@ -55,9 +94,74 @@ func (u *_asciiFoldingTokenFilter) TokenFilterDefinitionCaster() *types.TokenFil return &t } +func (u *_tokenFilterDefinition) BengaliNormalizationTokenFilter(bengalinormalizationtokenfilter types.BengaliNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = bengalinormalizationtokenfilter.BengaliNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for BengaliNormalizationTokenFilter in TokenFilterDefinition union +func (u *_bengaliNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) BrazilianStemTokenFilter(brazilianstemtokenfilter types.BrazilianStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = brazilianstemtokenfilter.BrazilianStemTokenFilterCaster() + + return u +} + +// Interface implementation for BrazilianStemTokenFilter in TokenFilterDefinition union +func (u *_brazilianStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) CjkBigramTokenFilter(cjkbigramtokenfilter types.CjkBigramTokenFilterVariant) *_tokenFilterDefinition { + + u.v = cjkbigramtokenfilter.CjkBigramTokenFilterCaster() + + return u +} + +// Interface implementation for CjkBigramTokenFilter in TokenFilterDefinition union +func (u *_cjkBigramTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) CjkWidthTokenFilter(cjkwidthtokenfilter types.CjkWidthTokenFilterVariant) *_tokenFilterDefinition { + + u.v = cjkwidthtokenfilter.CjkWidthTokenFilterCaster() + + return u +} + +// Interface implementation for CjkWidthTokenFilter in TokenFilterDefinition union +func (u *_cjkWidthTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) ClassicTokenFilter(classictokenfilter types.ClassicTokenFilterVariant) *_tokenFilterDefinition { + + u.v = classictokenfilter.ClassicTokenFilterCaster() + + return u +} + +// Interface implementation for ClassicTokenFilter in TokenFilterDefinition union +func (u *_classicTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) CommonGramsTokenFilter(commongramstokenfilter types.CommonGramsTokenFilterVariant) *_tokenFilterDefinition { - u.v = &commongramstokenfilter + u.v = commongramstokenfilter.CommonGramsTokenFilterCaster() return u } @@ -70,7 +174,7 @@ func (u *_commonGramsTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilt func (u *_tokenFilterDefinition) ConditionTokenFilter(conditiontokenfilter types.ConditionTokenFilterVariant) *_tokenFilterDefinition { - u.v = &conditiontokenfilter + u.v = conditiontokenfilter.ConditionTokenFilterCaster() return u } @@ -81,9 +185,35 @@ func (u *_conditionTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter return &t } +func (u *_tokenFilterDefinition) CzechStemTokenFilter(czechstemtokenfilter types.CzechStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = czechstemtokenfilter.CzechStemTokenFilterCaster() + + return u +} + +// Interface implementation for CzechStemTokenFilter in TokenFilterDefinition union +func (u *_czechStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) DecimalDigitTokenFilter(decimaldigittokenfilter types.DecimalDigitTokenFilterVariant) *_tokenFilterDefinition { + + u.v = decimaldigittokenfilter.DecimalDigitTokenFilterCaster() + + return u +} + +// Interface implementation for DecimalDigitTokenFilter in TokenFilterDefinition union +func (u *_decimalDigitTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) DelimitedPayloadTokenFilter(delimitedpayloadtokenfilter types.DelimitedPayloadTokenFilterVariant) *_tokenFilterDefinition { - u.v = &delimitedpayloadtokenfilter + u.v = delimitedpayloadtokenfilter.DelimitedPayloadTokenFilterCaster() return u } @@ -94,9 +224,22 @@ func (u *_delimitedPayloadTokenFilter) TokenFilterDefinitionCaster() *types.Toke return &t } +func (u *_tokenFilterDefinition) DutchStemTokenFilter(dutchstemtokenfilter types.DutchStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = dutchstemtokenfilter.DutchStemTokenFilterCaster() + + return u +} + +// Interface implementation for DutchStemTokenFilter in TokenFilterDefinition union +func (u *_dutchStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) EdgeNGramTokenFilter(edgengramtokenfilter types.EdgeNGramTokenFilterVariant) *_tokenFilterDefinition { - u.v = &edgengramtokenfilter + u.v = edgengramtokenfilter.EdgeNGramTokenFilterCaster() return u } @@ -109,7 +252,7 @@ func (u *_edgeNGramTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter func (u *_tokenFilterDefinition) ElisionTokenFilter(elisiontokenfilter types.ElisionTokenFilterVariant) *_tokenFilterDefinition { - u.v = &elisiontokenfilter + u.v = elisiontokenfilter.ElisionTokenFilterCaster() return u } @@ -122,7 +265,7 @@ func (u *_elisionTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDe func (u *_tokenFilterDefinition) FingerprintTokenFilter(fingerprinttokenfilter types.FingerprintTokenFilterVariant) *_tokenFilterDefinition { - u.v = &fingerprinttokenfilter + u.v = fingerprinttokenfilter.FingerprintTokenFilterCaster() return u } @@ -133,9 +276,74 @@ func (u *_fingerprintTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilt return &t } +func (u *_tokenFilterDefinition) FlattenGraphTokenFilter(flattengraphtokenfilter types.FlattenGraphTokenFilterVariant) *_tokenFilterDefinition { + + u.v = flattengraphtokenfilter.FlattenGraphTokenFilterCaster() + + return u +} + +// Interface implementation for FlattenGraphTokenFilter in TokenFilterDefinition union +func (u *_flattenGraphTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) FrenchStemTokenFilter(frenchstemtokenfilter types.FrenchStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = frenchstemtokenfilter.FrenchStemTokenFilterCaster() + + return u +} + +// Interface implementation for FrenchStemTokenFilter in TokenFilterDefinition union +func (u *_frenchStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) GermanNormalizationTokenFilter(germannormalizationtokenfilter types.GermanNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = germannormalizationtokenfilter.GermanNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for GermanNormalizationTokenFilter in TokenFilterDefinition union +func (u *_germanNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) GermanStemTokenFilter(germanstemtokenfilter types.GermanStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = germanstemtokenfilter.GermanStemTokenFilterCaster() + + return u +} + +// Interface implementation for GermanStemTokenFilter in TokenFilterDefinition union +func (u *_germanStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) HindiNormalizationTokenFilter(hindinormalizationtokenfilter types.HindiNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = hindinormalizationtokenfilter.HindiNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for HindiNormalizationTokenFilter in TokenFilterDefinition union +func (u *_hindiNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) HunspellTokenFilter(hunspelltokenfilter types.HunspellTokenFilterVariant) *_tokenFilterDefinition { - u.v = &hunspelltokenfilter + u.v = hunspelltokenfilter.HunspellTokenFilterCaster() return u } @@ -148,7 +356,7 @@ func (u *_hunspellTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterD func (u *_tokenFilterDefinition) HyphenationDecompounderTokenFilter(hyphenationdecompoundertokenfilter types.HyphenationDecompounderTokenFilterVariant) *_tokenFilterDefinition { - u.v = &hyphenationdecompoundertokenfilter + u.v = hyphenationdecompoundertokenfilter.HyphenationDecompounderTokenFilterCaster() return u } @@ -159,9 +367,22 @@ func (u *_hyphenationDecompounderTokenFilter) TokenFilterDefinitionCaster() *typ return &t } +func (u *_tokenFilterDefinition) IndicNormalizationTokenFilter(indicnormalizationtokenfilter types.IndicNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = indicnormalizationtokenfilter.IndicNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for IndicNormalizationTokenFilter in TokenFilterDefinition union +func (u *_indicNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) KeepTypesTokenFilter(keeptypestokenfilter types.KeepTypesTokenFilterVariant) *_tokenFilterDefinition { - u.v = &keeptypestokenfilter + u.v = keeptypestokenfilter.KeepTypesTokenFilterCaster() return u } @@ -174,7 +395,7 @@ func (u *_keepTypesTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter func (u *_tokenFilterDefinition) KeepWordsTokenFilter(keepwordstokenfilter types.KeepWordsTokenFilterVariant) *_tokenFilterDefinition { - u.v = &keepwordstokenfilter + u.v = keepwordstokenfilter.KeepWordsTokenFilterCaster() return u } @@ -187,7 +408,7 @@ func (u *_keepWordsTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter func (u *_tokenFilterDefinition) KeywordMarkerTokenFilter(keywordmarkertokenfilter types.KeywordMarkerTokenFilterVariant) *_tokenFilterDefinition { - u.v = &keywordmarkertokenfilter + u.v = keywordmarkertokenfilter.KeywordMarkerTokenFilterCaster() return u } @@ -198,9 +419,22 @@ func (u *_keywordMarkerTokenFilter) TokenFilterDefinitionCaster() *types.TokenFi return &t } +func (u *_tokenFilterDefinition) KeywordRepeatTokenFilter(keywordrepeattokenfilter types.KeywordRepeatTokenFilterVariant) *_tokenFilterDefinition { + + u.v = keywordrepeattokenfilter.KeywordRepeatTokenFilterCaster() + + return u +} + +// Interface implementation for KeywordRepeatTokenFilter in TokenFilterDefinition union +func (u *_keywordRepeatTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) KStemTokenFilter(kstemtokenfilter types.KStemTokenFilterVariant) *_tokenFilterDefinition { - u.v = &kstemtokenfilter + u.v = kstemtokenfilter.KStemTokenFilterCaster() return u } @@ -213,7 +447,7 @@ func (u *_kStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefi func (u *_tokenFilterDefinition) LengthTokenFilter(lengthtokenfilter types.LengthTokenFilterVariant) *_tokenFilterDefinition { - u.v = &lengthtokenfilter + u.v = lengthtokenfilter.LengthTokenFilterCaster() return u } @@ -226,7 +460,7 @@ func (u *_lengthTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDef func (u *_tokenFilterDefinition) LimitTokenCountTokenFilter(limittokencounttokenfilter types.LimitTokenCountTokenFilterVariant) *_tokenFilterDefinition { - u.v = &limittokencounttokenfilter + u.v = limittokencounttokenfilter.LimitTokenCountTokenFilterCaster() return u } @@ -239,7 +473,7 @@ func (u *_limitTokenCountTokenFilter) TokenFilterDefinitionCaster() *types.Token func (u *_tokenFilterDefinition) LowercaseTokenFilter(lowercasetokenfilter types.LowercaseTokenFilterVariant) *_tokenFilterDefinition { - u.v = &lowercasetokenfilter + u.v = lowercasetokenfilter.LowercaseTokenFilterCaster() return u } @@ -250,9 +484,22 @@ func (u *_lowercaseTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter return &t } +func (u *_tokenFilterDefinition) MinHashTokenFilter(minhashtokenfilter types.MinHashTokenFilterVariant) *_tokenFilterDefinition { + + u.v = minhashtokenfilter.MinHashTokenFilterCaster() + + return u +} + +// Interface implementation for MinHashTokenFilter in TokenFilterDefinition union +func (u *_minHashTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) MultiplexerTokenFilter(multiplexertokenfilter types.MultiplexerTokenFilterVariant) *_tokenFilterDefinition { - u.v = &multiplexertokenfilter + u.v = multiplexertokenfilter.MultiplexerTokenFilterCaster() return u } @@ -265,7 +512,7 @@ func (u *_multiplexerTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilt func (u *_tokenFilterDefinition) NGramTokenFilter(ngramtokenfilter types.NGramTokenFilterVariant) *_tokenFilterDefinition { - u.v = &ngramtokenfilter + u.v = ngramtokenfilter.NGramTokenFilterCaster() return u } @@ -278,7 +525,7 @@ func (u *_nGramTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefi func (u *_tokenFilterDefinition) NoriPartOfSpeechTokenFilter(noripartofspeechtokenfilter types.NoriPartOfSpeechTokenFilterVariant) *_tokenFilterDefinition { - u.v = &noripartofspeechtokenfilter + u.v = noripartofspeechtokenfilter.NoriPartOfSpeechTokenFilterCaster() return u } @@ -291,7 +538,7 @@ func (u *_noriPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *types.Toke func (u *_tokenFilterDefinition) PatternCaptureTokenFilter(patterncapturetokenfilter types.PatternCaptureTokenFilterVariant) *_tokenFilterDefinition { - u.v = &patterncapturetokenfilter + u.v = patterncapturetokenfilter.PatternCaptureTokenFilterCaster() return u } @@ -304,7 +551,7 @@ func (u *_patternCaptureTokenFilter) TokenFilterDefinitionCaster() *types.TokenF func (u *_tokenFilterDefinition) PatternReplaceTokenFilter(patternreplacetokenfilter types.PatternReplaceTokenFilterVariant) *_tokenFilterDefinition { - u.v = &patternreplacetokenfilter + u.v = patternreplacetokenfilter.PatternReplaceTokenFilterCaster() return u } @@ -315,9 +562,35 @@ func (u *_patternReplaceTokenFilter) TokenFilterDefinitionCaster() *types.TokenF return &t } +func (u *_tokenFilterDefinition) PersianNormalizationTokenFilter(persiannormalizationtokenfilter types.PersianNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = persiannormalizationtokenfilter.PersianNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for PersianNormalizationTokenFilter in TokenFilterDefinition union +func (u *_persianNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) PersianStemTokenFilter(persianstemtokenfilter types.PersianStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = persianstemtokenfilter.PersianStemTokenFilterCaster() + + return u +} + +// Interface implementation for PersianStemTokenFilter in TokenFilterDefinition union +func (u *_persianStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) PorterStemTokenFilter(porterstemtokenfilter types.PorterStemTokenFilterVariant) *_tokenFilterDefinition { - u.v = &porterstemtokenfilter + u.v = porterstemtokenfilter.PorterStemTokenFilterCaster() return u } @@ -330,7 +603,7 @@ func (u *_porterStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilte func (u *_tokenFilterDefinition) PredicateTokenFilter(predicatetokenfilter types.PredicateTokenFilterVariant) *_tokenFilterDefinition { - u.v = &predicatetokenfilter + u.v = predicatetokenfilter.PredicateTokenFilterCaster() return u } @@ -343,7 +616,7 @@ func (u *_predicateTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter func (u *_tokenFilterDefinition) RemoveDuplicatesTokenFilter(removeduplicatestokenfilter types.RemoveDuplicatesTokenFilterVariant) *_tokenFilterDefinition { - u.v = &removeduplicatestokenfilter + u.v = removeduplicatestokenfilter.RemoveDuplicatesTokenFilterCaster() return u } @@ -356,7 +629,7 @@ func (u *_removeDuplicatesTokenFilter) TokenFilterDefinitionCaster() *types.Toke func (u *_tokenFilterDefinition) ReverseTokenFilter(reversetokenfilter types.ReverseTokenFilterVariant) *_tokenFilterDefinition { - u.v = &reversetokenfilter + u.v = reversetokenfilter.ReverseTokenFilterCaster() return u } @@ -367,9 +640,61 @@ func (u *_reverseTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDe return &t } +func (u *_tokenFilterDefinition) RussianStemTokenFilter(russianstemtokenfilter types.RussianStemTokenFilterVariant) *_tokenFilterDefinition { + + u.v = russianstemtokenfilter.RussianStemTokenFilterCaster() + + return u +} + +// Interface implementation for RussianStemTokenFilter in TokenFilterDefinition union +func (u *_russianStemTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) ScandinavianFoldingTokenFilter(scandinavianfoldingtokenfilter types.ScandinavianFoldingTokenFilterVariant) *_tokenFilterDefinition { + + u.v = scandinavianfoldingtokenfilter.ScandinavianFoldingTokenFilterCaster() + + return u +} + +// Interface implementation for ScandinavianFoldingTokenFilter in TokenFilterDefinition union +func (u *_scandinavianFoldingTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) ScandinavianNormalizationTokenFilter(scandinaviannormalizationtokenfilter types.ScandinavianNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = scandinaviannormalizationtokenfilter.ScandinavianNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for ScandinavianNormalizationTokenFilter in TokenFilterDefinition union +func (u *_scandinavianNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + +func (u *_tokenFilterDefinition) SerbianNormalizationTokenFilter(serbiannormalizationtokenfilter types.SerbianNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = serbiannormalizationtokenfilter.SerbianNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for SerbianNormalizationTokenFilter in TokenFilterDefinition union +func (u *_serbianNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) ShingleTokenFilter(shingletokenfilter types.ShingleTokenFilterVariant) *_tokenFilterDefinition { - u.v = &shingletokenfilter + u.v = shingletokenfilter.ShingleTokenFilterCaster() return u } @@ -382,7 +707,7 @@ func (u *_shingleTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDe func (u *_tokenFilterDefinition) SnowballTokenFilter(snowballtokenfilter types.SnowballTokenFilterVariant) *_tokenFilterDefinition { - u.v = &snowballtokenfilter + u.v = snowballtokenfilter.SnowballTokenFilterCaster() return u } @@ -393,9 +718,22 @@ func (u *_snowballTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterD return &t } +func (u *_tokenFilterDefinition) SoraniNormalizationTokenFilter(soraninormalizationtokenfilter types.SoraniNormalizationTokenFilterVariant) *_tokenFilterDefinition { + + u.v = soraninormalizationtokenfilter.SoraniNormalizationTokenFilterCaster() + + return u +} + +// Interface implementation for SoraniNormalizationTokenFilter in TokenFilterDefinition union +func (u *_soraniNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) StemmerOverrideTokenFilter(stemmeroverridetokenfilter types.StemmerOverrideTokenFilterVariant) *_tokenFilterDefinition { - u.v = &stemmeroverridetokenfilter + u.v = stemmeroverridetokenfilter.StemmerOverrideTokenFilterCaster() return u } @@ -408,7 +746,7 @@ func (u *_stemmerOverrideTokenFilter) TokenFilterDefinitionCaster() *types.Token func (u *_tokenFilterDefinition) StemmerTokenFilter(stemmertokenfilter types.StemmerTokenFilterVariant) *_tokenFilterDefinition { - u.v = &stemmertokenfilter + u.v = stemmertokenfilter.StemmerTokenFilterCaster() return u } @@ -421,7 +759,7 @@ func (u *_stemmerTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDe func (u *_tokenFilterDefinition) StopTokenFilter(stoptokenfilter types.StopTokenFilterVariant) *_tokenFilterDefinition { - u.v = &stoptokenfilter + u.v = stoptokenfilter.StopTokenFilterCaster() return u } @@ -434,7 +772,7 @@ func (u *_stopTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefin func (u *_tokenFilterDefinition) SynonymGraphTokenFilter(synonymgraphtokenfilter types.SynonymGraphTokenFilterVariant) *_tokenFilterDefinition { - u.v = &synonymgraphtokenfilter + u.v = synonymgraphtokenfilter.SynonymGraphTokenFilterCaster() return u } @@ -447,7 +785,7 @@ func (u *_synonymGraphTokenFilter) TokenFilterDefinitionCaster() *types.TokenFil func (u *_tokenFilterDefinition) SynonymTokenFilter(synonymtokenfilter types.SynonymTokenFilterVariant) *_tokenFilterDefinition { - u.v = &synonymtokenfilter + u.v = synonymtokenfilter.SynonymTokenFilterCaster() return u } @@ -460,7 +798,7 @@ func (u *_synonymTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDe func (u *_tokenFilterDefinition) TrimTokenFilter(trimtokenfilter types.TrimTokenFilterVariant) *_tokenFilterDefinition { - u.v = &trimtokenfilter + u.v = trimtokenfilter.TrimTokenFilterCaster() return u } @@ -473,7 +811,7 @@ func (u *_trimTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefin func (u *_tokenFilterDefinition) TruncateTokenFilter(truncatetokenfilter types.TruncateTokenFilterVariant) *_tokenFilterDefinition { - u.v = &truncatetokenfilter + u.v = truncatetokenfilter.TruncateTokenFilterCaster() return u } @@ -486,7 +824,7 @@ func (u *_truncateTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterD func (u *_tokenFilterDefinition) UniqueTokenFilter(uniquetokenfilter types.UniqueTokenFilterVariant) *_tokenFilterDefinition { - u.v = &uniquetokenfilter + u.v = uniquetokenfilter.UniqueTokenFilterCaster() return u } @@ -499,7 +837,7 @@ func (u *_uniqueTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDef func (u *_tokenFilterDefinition) UppercaseTokenFilter(uppercasetokenfilter types.UppercaseTokenFilterVariant) *_tokenFilterDefinition { - u.v = &uppercasetokenfilter + u.v = uppercasetokenfilter.UppercaseTokenFilterCaster() return u } @@ -512,7 +850,7 @@ func (u *_uppercaseTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilter func (u *_tokenFilterDefinition) WordDelimiterGraphTokenFilter(worddelimitergraphtokenfilter types.WordDelimiterGraphTokenFilterVariant) *_tokenFilterDefinition { - u.v = &worddelimitergraphtokenfilter + u.v = worddelimitergraphtokenfilter.WordDelimiterGraphTokenFilterCaster() return u } @@ -525,7 +863,7 @@ func (u *_wordDelimiterGraphTokenFilter) TokenFilterDefinitionCaster() *types.To func (u *_tokenFilterDefinition) WordDelimiterTokenFilter(worddelimitertokenfilter types.WordDelimiterTokenFilterVariant) *_tokenFilterDefinition { - u.v = &worddelimitertokenfilter + u.v = worddelimitertokenfilter.WordDelimiterTokenFilterCaster() return u } @@ -536,9 +874,22 @@ func (u *_wordDelimiterTokenFilter) TokenFilterDefinitionCaster() *types.TokenFi return &t } +func (u *_tokenFilterDefinition) JaStopTokenFilter(jastoptokenfilter types.JaStopTokenFilterVariant) *_tokenFilterDefinition { + + u.v = jastoptokenfilter.JaStopTokenFilterCaster() + + return u +} + +// Interface implementation for JaStopTokenFilter in TokenFilterDefinition union +func (u *_jaStopTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterDefinition { + t := types.TokenFilterDefinition(u.v) + return &t +} + func (u *_tokenFilterDefinition) KuromojiStemmerTokenFilter(kuromojistemmertokenfilter types.KuromojiStemmerTokenFilterVariant) *_tokenFilterDefinition { - u.v = &kuromojistemmertokenfilter + u.v = kuromojistemmertokenfilter.KuromojiStemmerTokenFilterCaster() return u } @@ -551,7 +902,7 @@ func (u *_kuromojiStemmerTokenFilter) TokenFilterDefinitionCaster() *types.Token func (u *_tokenFilterDefinition) KuromojiReadingFormTokenFilter(kuromojireadingformtokenfilter types.KuromojiReadingFormTokenFilterVariant) *_tokenFilterDefinition { - u.v = &kuromojireadingformtokenfilter + u.v = kuromojireadingformtokenfilter.KuromojiReadingFormTokenFilterCaster() return u } @@ -564,7 +915,7 @@ func (u *_kuromojiReadingFormTokenFilter) TokenFilterDefinitionCaster() *types.T func (u *_tokenFilterDefinition) KuromojiPartOfSpeechTokenFilter(kuromojipartofspeechtokenfilter types.KuromojiPartOfSpeechTokenFilterVariant) *_tokenFilterDefinition { - u.v = &kuromojipartofspeechtokenfilter + u.v = kuromojipartofspeechtokenfilter.KuromojiPartOfSpeechTokenFilterCaster() return u } @@ -577,7 +928,7 @@ func (u *_kuromojiPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *types. func (u *_tokenFilterDefinition) IcuCollationTokenFilter(icucollationtokenfilter types.IcuCollationTokenFilterVariant) *_tokenFilterDefinition { - u.v = &icucollationtokenfilter + u.v = icucollationtokenfilter.IcuCollationTokenFilterCaster() return u } @@ -590,7 +941,7 @@ func (u *_icuCollationTokenFilter) TokenFilterDefinitionCaster() *types.TokenFil func (u *_tokenFilterDefinition) IcuFoldingTokenFilter(icufoldingtokenfilter types.IcuFoldingTokenFilterVariant) *_tokenFilterDefinition { - u.v = &icufoldingtokenfilter + u.v = icufoldingtokenfilter.IcuFoldingTokenFilterCaster() return u } @@ -603,7 +954,7 @@ func (u *_icuFoldingTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilte func (u *_tokenFilterDefinition) IcuNormalizationTokenFilter(icunormalizationtokenfilter types.IcuNormalizationTokenFilterVariant) *_tokenFilterDefinition { - u.v = &icunormalizationtokenfilter + u.v = icunormalizationtokenfilter.IcuNormalizationTokenFilterCaster() return u } @@ -616,7 +967,7 @@ func (u *_icuNormalizationTokenFilter) TokenFilterDefinitionCaster() *types.Toke func (u *_tokenFilterDefinition) IcuTransformTokenFilter(icutransformtokenfilter types.IcuTransformTokenFilterVariant) *_tokenFilterDefinition { - u.v = &icutransformtokenfilter + u.v = icutransformtokenfilter.IcuTransformTokenFilterCaster() return u } @@ -629,7 +980,7 @@ func (u *_icuTransformTokenFilter) TokenFilterDefinitionCaster() *types.TokenFil func (u *_tokenFilterDefinition) PhoneticTokenFilter(phonetictokenfilter types.PhoneticTokenFilterVariant) *_tokenFilterDefinition { - u.v = &phonetictokenfilter + u.v = phonetictokenfilter.PhoneticTokenFilterCaster() return u } @@ -642,7 +993,7 @@ func (u *_phoneticTokenFilter) TokenFilterDefinitionCaster() *types.TokenFilterD func (u *_tokenFilterDefinition) DictionaryDecompounderTokenFilter(dictionarydecompoundertokenfilter types.DictionaryDecompounderTokenFilterVariant) *_tokenFilterDefinition { - u.v = &dictionarydecompoundertokenfilter + u.v = dictionarydecompoundertokenfilter.DictionaryDecompounderTokenFilterCaster() return u } diff --git a/typedapi/esdsl/tokenizationconfigcontainer.go b/typedapi/esdsl/tokenizationconfigcontainer.go index 687ef472e6..03eb84c13d 100644 --- a/typedapi/esdsl/tokenizationconfigcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tokenizer.go b/typedapi/esdsl/tokenizer.go index 3ad210ca78..e2a8f2b9f8 100644 --- a/typedapi/esdsl/tokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tokenizerdefinition.go b/typedapi/esdsl/tokenizerdefinition.go index 909721274a..c67fb7c85b 100644 --- a/typedapi/esdsl/tokenizerdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -44,7 +44,7 @@ func (u *_tokenizerDefinition) UnknownTokenizerDefinition(unknown json.RawMessag func (u *_tokenizerDefinition) CharGroupTokenizer(chargrouptokenizer types.CharGroupTokenizerVariant) *_tokenizerDefinition { - u.v = &chargrouptokenizer + u.v = chargrouptokenizer.CharGroupTokenizerCaster() return u } @@ -57,7 +57,7 @@ func (u *_charGroupTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefini func (u *_tokenizerDefinition) ClassicTokenizer(classictokenizer types.ClassicTokenizerVariant) *_tokenizerDefinition { - u.v = &classictokenizer + u.v = classictokenizer.ClassicTokenizerCaster() return u } @@ -70,7 +70,7 @@ func (u *_classicTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefiniti func (u *_tokenizerDefinition) EdgeNGramTokenizer(edgengramtokenizer types.EdgeNGramTokenizerVariant) *_tokenizerDefinition { - u.v = &edgengramtokenizer + u.v = edgengramtokenizer.EdgeNGramTokenizerCaster() return u } @@ -83,7 +83,7 @@ func (u *_edgeNGramTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefini func (u *_tokenizerDefinition) KeywordTokenizer(keywordtokenizer types.KeywordTokenizerVariant) *_tokenizerDefinition { - u.v = &keywordtokenizer + u.v = keywordtokenizer.KeywordTokenizerCaster() return u } @@ -96,7 +96,7 @@ func (u *_keywordTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefiniti func (u *_tokenizerDefinition) LetterTokenizer(lettertokenizer types.LetterTokenizerVariant) *_tokenizerDefinition { - u.v = &lettertokenizer + u.v = lettertokenizer.LetterTokenizerCaster() return u } @@ -109,7 +109,7 @@ func (u *_letterTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinitio func (u *_tokenizerDefinition) LowercaseTokenizer(lowercasetokenizer types.LowercaseTokenizerVariant) *_tokenizerDefinition { - u.v = &lowercasetokenizer + u.v = lowercasetokenizer.LowercaseTokenizerCaster() return u } @@ -122,7 +122,7 @@ func (u *_lowercaseTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefini func (u *_tokenizerDefinition) NGramTokenizer(ngramtokenizer types.NGramTokenizerVariant) *_tokenizerDefinition { - u.v = &ngramtokenizer + u.v = ngramtokenizer.NGramTokenizerCaster() return u } @@ -135,7 +135,7 @@ func (u *_nGramTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinition func (u *_tokenizerDefinition) PathHierarchyTokenizer(pathhierarchytokenizer types.PathHierarchyTokenizerVariant) *_tokenizerDefinition { - u.v = &pathhierarchytokenizer + u.v = pathhierarchytokenizer.PathHierarchyTokenizerCaster() return u } @@ -148,7 +148,7 @@ func (u *_pathHierarchyTokenizer) TokenizerDefinitionCaster() *types.TokenizerDe func (u *_tokenizerDefinition) PatternTokenizer(patterntokenizer types.PatternTokenizerVariant) *_tokenizerDefinition { - u.v = &patterntokenizer + u.v = patterntokenizer.PatternTokenizerCaster() return u } @@ -161,7 +161,7 @@ func (u *_patternTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefiniti func (u *_tokenizerDefinition) SimplePatternTokenizer(simplepatterntokenizer types.SimplePatternTokenizerVariant) *_tokenizerDefinition { - u.v = &simplepatterntokenizer + u.v = simplepatterntokenizer.SimplePatternTokenizerCaster() return u } @@ -174,7 +174,7 @@ func (u *_simplePatternTokenizer) TokenizerDefinitionCaster() *types.TokenizerDe func (u *_tokenizerDefinition) SimplePatternSplitTokenizer(simplepatternsplittokenizer types.SimplePatternSplitTokenizerVariant) *_tokenizerDefinition { - u.v = &simplepatternsplittokenizer + u.v = simplepatternsplittokenizer.SimplePatternSplitTokenizerCaster() return u } @@ -187,7 +187,7 @@ func (u *_simplePatternSplitTokenizer) TokenizerDefinitionCaster() *types.Tokeni func (u *_tokenizerDefinition) StandardTokenizer(standardtokenizer types.StandardTokenizerVariant) *_tokenizerDefinition { - u.v = &standardtokenizer + u.v = standardtokenizer.StandardTokenizerCaster() return u } @@ -200,7 +200,7 @@ func (u *_standardTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinit func (u *_tokenizerDefinition) ThaiTokenizer(thaitokenizer types.ThaiTokenizerVariant) *_tokenizerDefinition { - u.v = &thaitokenizer + u.v = thaitokenizer.ThaiTokenizerCaster() return u } @@ -213,7 +213,7 @@ func (u *_thaiTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinition func (u *_tokenizerDefinition) UaxEmailUrlTokenizer(uaxemailurltokenizer types.UaxEmailUrlTokenizerVariant) *_tokenizerDefinition { - u.v = &uaxemailurltokenizer + u.v = uaxemailurltokenizer.UaxEmailUrlTokenizerCaster() return u } @@ -226,7 +226,7 @@ func (u *_uaxEmailUrlTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefi func (u *_tokenizerDefinition) WhitespaceTokenizer(whitespacetokenizer types.WhitespaceTokenizerVariant) *_tokenizerDefinition { - u.v = &whitespacetokenizer + u.v = whitespacetokenizer.WhitespaceTokenizerCaster() return u } @@ -239,7 +239,7 @@ func (u *_whitespaceTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefin func (u *_tokenizerDefinition) IcuTokenizer(icutokenizer types.IcuTokenizerVariant) *_tokenizerDefinition { - u.v = &icutokenizer + u.v = icutokenizer.IcuTokenizerCaster() return u } @@ -252,7 +252,7 @@ func (u *_icuTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinition { func (u *_tokenizerDefinition) KuromojiTokenizer(kuromojitokenizer types.KuromojiTokenizerVariant) *_tokenizerDefinition { - u.v = &kuromojitokenizer + u.v = kuromojitokenizer.KuromojiTokenizerCaster() return u } @@ -265,7 +265,7 @@ func (u *_kuromojiTokenizer) TokenizerDefinitionCaster() *types.TokenizerDefinit func (u *_tokenizerDefinition) NoriTokenizer(noritokenizer types.NoriTokenizerVariant) *_tokenizerDefinition { - u.v = &noritokenizer + u.v = noritokenizer.NoriTokenizerCaster() return u } diff --git a/typedapi/esdsl/tokenpruningconfig.go b/typedapi/esdsl/tokenpruningconfig.go index 92f2c8469e..59749ae0d6 100644 --- a/typedapi/esdsl/tokenpruningconfig.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/toolcall.go b/typedapi/esdsl/toolcall.go index bb49cb0411..9d58015eb4 100644 --- a/typedapi/esdsl/toolcall.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/toolcallfunction.go b/typedapi/esdsl/toolcallfunction.go index ca829940e9..c8ea699b17 100644 --- a/typedapi/esdsl/toolcallfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/tophitsaggregation.go b/typedapi/esdsl/tophitsaggregation.go index 79829dd562..f85d09cef0 100644 --- a/typedapi/esdsl/tophitsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/topleftbottomrightgeobounds.go b/typedapi/esdsl/topleftbottomrightgeobounds.go index 972c85d51c..ffa75fa4ce 100644 --- a/typedapi/esdsl/topleftbottomrightgeobounds.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/topmetricsaggregation.go b/typedapi/esdsl/topmetricsaggregation.go index 5209599b77..4a95e4fd1c 100644 --- a/typedapi/esdsl/topmetricsaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/topmetricsvalue.go b/typedapi/esdsl/topmetricsvalue.go index ba8fbcfffb..b7fc17e9d0 100644 --- a/typedapi/esdsl/topmetricsvalue.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/toprightbottomleftgeobounds.go b/typedapi/esdsl/toprightbottomleftgeobounds.go index ac55e980fc..ad82b7735e 100644 --- a/typedapi/esdsl/toprightbottomleftgeobounds.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trackhits.go b/typedapi/esdsl/trackhits.go index e64f2fb319..3620a6ae95 100644 --- a/typedapi/esdsl/trackhits.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trainedmodel.go b/typedapi/esdsl/trainedmodel.go index 9861e1a78f..1ccd807b30 100644 --- a/typedapi/esdsl/trainedmodel.go +++ b/typedapi/esdsl/trainedmodel.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trainedmodelprefixstrings.go b/typedapi/esdsl/trainedmodelprefixstrings.go index b948ded987..f915d7b6b5 100644 --- a/typedapi/esdsl/trainedmodelprefixstrings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trainedmodeltree.go b/typedapi/esdsl/trainedmodeltree.go index dd3a9c1bde..4c7bfc1006 100644 --- a/typedapi/esdsl/trainedmodeltree.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trainedmodeltreenode.go b/typedapi/esdsl/trainedmodeltreenode.go index 7221cdc3e5..1143769ca8 100644 --- a/typedapi/esdsl/trainedmodeltreenode.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/transformcontainer.go b/typedapi/esdsl/transformcontainer.go index 3dd789a3cd..0855cc85e4 100644 --- a/typedapi/esdsl/transformcontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/transformdestination.go b/typedapi/esdsl/transformdestination.go index 7e7be75686..5305ffe0fa 100644 --- a/typedapi/esdsl/transformdestination.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/transformsource.go b/typedapi/esdsl/transformsource.go index 847148d8be..2b75c3eef1 100644 --- a/typedapi/esdsl/transformsource.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/translog.go b/typedapi/esdsl/translog.go index 39084e037b..3a5b2382d8 100644 --- a/typedapi/esdsl/translog.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/translogretention.go b/typedapi/esdsl/translogretention.go index f21b7b31e3..c0cfa7a9b9 100644 --- a/typedapi/esdsl/translogretention.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/triggercontainer.go b/typedapi/esdsl/triggercontainer.go index 84e8c32295..b39afc962d 100644 --- a/typedapi/esdsl/triggercontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trimprocessor.go b/typedapi/esdsl/trimprocessor.go index e08c1c40cb..78e5d739ad 100644 --- a/typedapi/esdsl/trimprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/trimtokenfilter.go b/typedapi/esdsl/trimtokenfilter.go index 9ef7f83d6b..4c8bb6ac6e 100644 --- a/typedapi/esdsl/trimtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/truncatetokenfilter.go b/typedapi/esdsl/truncatetokenfilter.go index 40db4fa003..d09110f51c 100644 --- a/typedapi/esdsl/truncatetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/ttestaggregation.go b/typedapi/esdsl/ttestaggregation.go index 4e1057d407..fd980cf2f3 100644 --- a/typedapi/esdsl/ttestaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/turkishanalyzer.go b/typedapi/esdsl/turkishanalyzer.go index fd7a0e3510..483a0f14ad 100644 --- a/typedapi/esdsl/turkishanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -42,9 +42,9 @@ func (s *_turkishAnalyzer) StemExclusion(stemexclusions ...string) *_turkishAnal return s } -func (s *_turkishAnalyzer) Stopwords(stopwords ...string) *_turkishAnalyzer { +func (s *_turkishAnalyzer) Stopwords(stopwords types.StopWordsVariant) *_turkishAnalyzer { - s.v.Stopwords = stopwords + s.v.Stopwords = *stopwords.StopWordsCaster() return s } diff --git a/typedapi/esdsl/typemapping.go b/typedapi/esdsl/typemapping.go index 43f129c956..96a8e6968d 100644 --- a/typedapi/esdsl/typemapping.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/typequery.go b/typedapi/esdsl/typequery.go index 1e1af87820..1a599b7e9d 100644 --- a/typedapi/esdsl/typequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/uaxemailurltokenizer.go b/typedapi/esdsl/uaxemailurltokenizer.go index e9c8ff1eca..3e40ffc13a 100644 --- a/typedapi/esdsl/uaxemailurltokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/uniquetokenfilter.go b/typedapi/esdsl/uniquetokenfilter.go index 0a05cd8c43..d5954e6aca 100644 --- a/typedapi/esdsl/uniquetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/unsignedlongnumberproperty.go b/typedapi/esdsl/unsignedlongnumberproperty.go index 24c4d717af..5408abc35d 100644 --- a/typedapi/esdsl/unsignedlongnumberproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/untypeddecayfunction.go b/typedapi/esdsl/untypeddecayfunction.go index bf414cf5c9..d1d44133d0 100644 --- a/typedapi/esdsl/untypeddecayfunction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/untypeddistancefeaturequery.go b/typedapi/esdsl/untypeddistancefeaturequery.go index f59ad1a6bd..caaade8291 100644 --- a/typedapi/esdsl/untypeddistancefeaturequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/untypedrangequery.go b/typedapi/esdsl/untypedrangequery.go index adf3d96422..62956296fa 100644 --- a/typedapi/esdsl/untypedrangequery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -32,7 +32,7 @@ type _untypedRangeQuery struct { v *types.UntypedRangeQuery } -// Returns documents that contain terms within a provided range. +// Returns roles that contain terms within a provided range. func NewUntypedRangeQuery(key string) *_untypedRangeQuery { return &_untypedRangeQuery{ k: key, @@ -54,13 +54,6 @@ func (s *_untypedRangeQuery) Format(dateformat string) *_untypedRangeQuery { return s } -func (s *_untypedRangeQuery) From(from json.RawMessage) *_untypedRangeQuery { - - s.v.From = &from - - return s -} - func (s *_untypedRangeQuery) Gt(gt json.RawMessage) *_untypedRangeQuery { s.v.Gt = gt @@ -109,13 +102,6 @@ func (s *_untypedRangeQuery) TimeZone(timezone string) *_untypedRangeQuery { return s } -func (s *_untypedRangeQuery) To(to json.RawMessage) *_untypedRangeQuery { - - s.v.To = &to - - return s -} - func (s *_untypedRangeQuery) QueryCaster() *types.Query { container := types.NewQuery() container.Range = map[string]types.RangeQuery{ diff --git a/typedapi/esdsl/updateaction.go b/typedapi/esdsl/updateaction.go index f891dab2aa..7d323a2885 100644 --- a/typedapi/esdsl/updateaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/updateoperation.go b/typedapi/esdsl/updateoperation.go index 785bb8139d..6d88675605 100644 --- a/typedapi/esdsl/updateoperation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/uppercaseprocessor.go b/typedapi/esdsl/uppercaseprocessor.go index 815ca9b801..6f2299fb11 100644 --- a/typedapi/esdsl/uppercaseprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/uppercasetokenfilter.go b/typedapi/esdsl/uppercasetokenfilter.go index fa7a17884f..d2bb6b7eef 100644 --- a/typedapi/esdsl/uppercasetokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/uripartsprocessor.go b/typedapi/esdsl/uripartsprocessor.go index a8744c0ece..8d18c09ec8 100644 --- a/typedapi/esdsl/uripartsprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/urldecodeprocessor.go b/typedapi/esdsl/urldecodeprocessor.go index b5615343b0..3263a77f64 100644 --- a/typedapi/esdsl/urldecodeprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/useragentprocessor.go b/typedapi/esdsl/useragentprocessor.go index 04623f0e98..b556efd50e 100644 --- a/typedapi/esdsl/useragentprocessor.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/userquerycontainer.go b/typedapi/esdsl/userquerycontainer.go index a1157ed8fc..0cfd4e4762 100644 --- a/typedapi/esdsl/userquerycontainer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/validation.go b/typedapi/esdsl/validation.go index 626ffda224..bc45e253d3 100644 --- a/typedapi/esdsl/validation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -33,7 +33,7 @@ func NewValidation() *_validation { func (u *_validation) LessThanValidation(lessthanvalidation types.LessThanValidationVariant) *_validation { - u.v = &lessthanvalidation + u.v = lessthanvalidation.LessThanValidationCaster() return u } @@ -46,7 +46,7 @@ func (u *_lessThanValidation) ValidationCaster() *types.Validation { func (u *_validation) GreaterThanValidation(greaterthanvalidation types.GreaterThanValidationVariant) *_validation { - u.v = &greaterthanvalidation + u.v = greaterthanvalidation.GreaterThanValidationCaster() return u } @@ -59,7 +59,7 @@ func (u *_greaterThanValidation) ValidationCaster() *types.Validation { func (u *_validation) ListTypeValidation(listtypevalidation types.ListTypeValidationVariant) *_validation { - u.v = &listtypevalidation + u.v = listtypevalidation.ListTypeValidationCaster() return u } @@ -72,7 +72,7 @@ func (u *_listTypeValidation) ValidationCaster() *types.Validation { func (u *_validation) IncludedInValidation(includedinvalidation types.IncludedInValidationVariant) *_validation { - u.v = &includedinvalidation + u.v = includedinvalidation.IncludedInValidationCaster() return u } @@ -85,7 +85,7 @@ func (u *_includedInValidation) ValidationCaster() *types.Validation { func (u *_validation) RegexValidation(regexvalidation types.RegexValidationVariant) *_validation { - u.v = ®exvalidation + u.v = regexvalidation.RegexValidationCaster() return u } diff --git a/typedapi/esdsl/valuecountaggregation.go b/typedapi/esdsl/valuecountaggregation.go index 41d265f31c..0db1b0e5c9 100644 --- a/typedapi/esdsl/valuecountaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/variablewidthhistogramaggregation.go b/typedapi/esdsl/variablewidthhistogramaggregation.go index 94336dea0d..0ece8bbe8a 100644 --- a/typedapi/esdsl/variablewidthhistogramaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/versionproperty.go b/typedapi/esdsl/versionproperty.go index a4bd14cc24..8b736ca776 100644 --- a/typedapi/esdsl/versionproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/vertexdefinition.go b/typedapi/esdsl/vertexdefinition.go index 5de58bdfe4..50c7f344b8 100644 --- a/typedapi/esdsl/vertexdefinition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/vertexinclude.go b/typedapi/esdsl/vertexinclude.go index e672822e39..caa705f1e1 100644 --- a/typedapi/esdsl/vertexinclude.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/vocabulary.go b/typedapi/esdsl/vocabulary.go index 04e74d4457..3b7c93513f 100644 --- a/typedapi/esdsl/vocabulary.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/voyageaiservicesettings.go b/typedapi/esdsl/voyageaiservicesettings.go index 5e1e1a0f67..ada54b40f4 100644 --- a/typedapi/esdsl/voyageaiservicesettings.go +++ b/typedapi/esdsl/voyageaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/voyageaitasksettings.go b/typedapi/esdsl/voyageaitasksettings.go index e99150c4a0..475e90c678 100644 --- a/typedapi/esdsl/voyageaitasksettings.go +++ b/typedapi/esdsl/voyageaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/waitforsnapshotaction.go b/typedapi/esdsl/waitforsnapshotaction.go index 9809f7f0e8..82eb82596f 100644 --- a/typedapi/esdsl/waitforsnapshotaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watch.go b/typedapi/esdsl/watch.go index 395ad7be5d..ad240582f4 100644 --- a/typedapi/esdsl/watch.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watcheraction.go b/typedapi/esdsl/watcheraction.go index b0c1363d1b..b72b55193d 100644 --- a/typedapi/esdsl/watcheraction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watchercondition.go b/typedapi/esdsl/watchercondition.go index 16980280d0..4c0e4e91d1 100644 --- a/typedapi/esdsl/watchercondition.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watcherinput.go b/typedapi/esdsl/watcherinput.go index 79d91fa8ce..99ce5769b0 100644 --- a/typedapi/esdsl/watcherinput.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watcherstatusactions.go b/typedapi/esdsl/watcherstatusactions.go index 1e6c79db29..9a891e3004 100644 --- a/typedapi/esdsl/watcherstatusactions.go +++ b/typedapi/esdsl/watcherstatusactions.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watchstatus.go b/typedapi/esdsl/watchstatus.go index 03409d0283..56de4218f6 100644 --- a/typedapi/esdsl/watchstatus.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/watsonxservicesettings.go b/typedapi/esdsl/watsonxservicesettings.go index d09506ee77..719e3eaf32 100644 --- a/typedapi/esdsl/watsonxservicesettings.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/webhookaction.go b/typedapi/esdsl/webhookaction.go index f6939f0cb0..c436dc576b 100644 --- a/typedapi/esdsl/webhookaction.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/weightedaverageaggregation.go b/typedapi/esdsl/weightedaverageaggregation.go index d5b5f771f4..13038c33da 100644 --- a/typedapi/esdsl/weightedaverageaggregation.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/weightedaveragevalue.go b/typedapi/esdsl/weightedaveragevalue.go index 2701e24367..54b7d0ea44 100644 --- a/typedapi/esdsl/weightedaveragevalue.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/weightedtokensquery.go b/typedapi/esdsl/weightedtokensquery.go index e0fc3fe60c..441db49061 100644 --- a/typedapi/esdsl/weightedtokensquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/weights.go b/typedapi/esdsl/weights.go index 908c65fad9..ecc5675c31 100644 --- a/typedapi/esdsl/weights.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/whitespaceanalyzer.go b/typedapi/esdsl/whitespaceanalyzer.go index d5d1916227..eac47640be 100644 --- a/typedapi/esdsl/whitespaceanalyzer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/whitespacetokenizer.go b/typedapi/esdsl/whitespacetokenizer.go index aa4ee7710f..e023f0c71a 100644 --- a/typedapi/esdsl/whitespacetokenizer.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/wildcardproperty.go b/typedapi/esdsl/wildcardproperty.go index 8feced8fd2..b71c3f3350 100644 --- a/typedapi/esdsl/wildcardproperty.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/wildcardquery.go b/typedapi/esdsl/wildcardquery.go index dcc08f939d..7565fb0bf1 100644 --- a/typedapi/esdsl/wildcardquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl @@ -27,7 +27,7 @@ type _wildcardQuery struct { v *types.WildcardQuery } -// Returns documents that contain terms matching a wildcard pattern. +// Returns users that contain terms matching a wildcard pattern. func NewWildcardQuery(field string, value string) *_wildcardQuery { tmp := &_wildcardQuery{ k: field, diff --git a/typedapi/esdsl/wktgeobounds.go b/typedapi/esdsl/wktgeobounds.go index 64cf4ed8f5..a9ba9426a0 100644 --- a/typedapi/esdsl/wktgeobounds.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/worddelimitergraphtokenfilter.go b/typedapi/esdsl/worddelimitergraphtokenfilter.go index eddc653cf3..263d001d37 100644 --- a/typedapi/esdsl/worddelimitergraphtokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/worddelimitertokenfilter.go b/typedapi/esdsl/worddelimitertokenfilter.go index 43d457ea40..a669ef502f 100644 --- a/typedapi/esdsl/worddelimitertokenfilter.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/wrapperquery.go b/typedapi/esdsl/wrapperquery.go index 13afc36b5e..6514f6945e 100644 --- a/typedapi/esdsl/wrapperquery.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/xlmrobertatokenizationconfig.go b/typedapi/esdsl/xlmrobertatokenizationconfig.go index 04ff27ca23..c225a3831a 100644 --- a/typedapi/esdsl/xlmrobertatokenizationconfig.go +++ b/typedapi/esdsl/xlmrobertatokenizationconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/zeroshotclassificationinferenceoptions.go b/typedapi/esdsl/zeroshotclassificationinferenceoptions.go index d48e4328de..5f82559a58 100644 --- a/typedapi/esdsl/zeroshotclassificationinferenceoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go b/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go index 8e6556ef94..1f0d7c05ba 100644 --- a/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go +++ b/typedapi/esdsl/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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package esdsl diff --git a/typedapi/esql/asyncquery/async_query.go b/typedapi/esql/asyncquery/async_query.go index fa641aa6ad..81c479fdac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run an async ES|QL query. // Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its @@ -321,7 +321,16 @@ func (r *AsyncQuery) DropNullColumns(dropnullcolumns bool) *AsyncQuery { return r } -// Format A short version of the Accept header, for example `json` or `yaml`. +// Format A short version of the Accept header, e.g. json, yaml. +// +// `csv`, `tsv`, and `txt` formats will return results in a tabular format, +// excluding other metadata fields from the response. +// +// For async requests, nothing will be returned if the async query doesn't +// finish within the timeout. +// The query ID and running status are available in the +// `X-Elasticsearch-Async-Id` and `X-Elasticsearch-Async-Is-Running` HTTP +// headers of the response, respectively. // API name: format func (r *AsyncQuery) Format(format esqlformat.EsqlFormat) *AsyncQuery { r.values.Set("format", format.String()) @@ -329,31 +338,6 @@ func (r *AsyncQuery) Format(format esqlformat.EsqlFormat) *AsyncQuery { return r } -// KeepAlive The period for which the query and its results are stored in the cluster. -// The default period is five days. -// When this period expires, the query and its results are deleted, even if the -// query is still ongoing. -// If the `keep_on_completion` parameter is false, Elasticsearch only stores -// async queries that do not complete within the period set by the -// `wait_for_completion_timeout` parameter, regardless of this value. -// API name: keep_alive -func (r *AsyncQuery) KeepAlive(duration string) *AsyncQuery { - r.values.Set("keep_alive", duration) - - return r -} - -// KeepOnCompletion Indicates whether the query and its results are stored in the cluster. -// If false, the query and its results are stored in the cluster only if the -// request does not complete during the period set by the -// `wait_for_completion_timeout` parameter. -// API name: keep_on_completion -func (r *AsyncQuery) KeepOnCompletion(keeponcompletion bool) *AsyncQuery { - r.values.Set("keep_on_completion", strconv.FormatBool(keeponcompletion)) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -445,6 +429,41 @@ func (r *AsyncQuery) IncludeCcsMetadata(includeccsmetadata bool) *AsyncQuery { return r } +// The period for which the query and its results are stored in the cluster. +// The default period is five days. +// When this period expires, the query and its results are deleted, even if the +// query is still ongoing. +// If the `keep_on_completion` parameter is false, Elasticsearch only stores +// async queries that do not complete within the period set by the +// `wait_for_completion_timeout` parameter, regardless of this value. +// API name: keep_alive +func (r *AsyncQuery) KeepAlive(duration types.DurationVariant) *AsyncQuery { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.KeepAlive = *duration.DurationCaster() + + return r +} + +// Indicates whether the query and its results are stored in the cluster. +// If false, the query and its results are stored in the cluster only if the +// request does not complete during the period set by the +// `wait_for_completion_timeout` parameter. +// API name: keep_on_completion +func (r *AsyncQuery) KeepOnCompletion(keeponcompletion bool) *AsyncQuery { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.KeepOnCompletion = &keeponcompletion + + return r +} + // API name: locale func (r *AsyncQuery) Locale(locale string) *AsyncQuery { // Initialize the request if it is not already initialized diff --git a/typedapi/esql/asyncquery/request.go b/typedapi/esql/asyncquery/request.go index 14b4e176ed..01c054ef0d 100644 --- a/typedapi/esql/asyncquery/request.go +++ b/typedapi/esql/asyncquery/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package asyncquery @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package asyncquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/async_query/AsyncQueryRequest.ts#L28-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/async_query/AsyncQueryRequest.ts#L28-L130 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each @@ -49,8 +49,21 @@ type Request struct { // object with information about the clusters that participated in the search // along with info such as shards // count. - IncludeCcsMetadata *bool `json:"include_ccs_metadata,omitempty"` - Locale *string `json:"locale,omitempty"` + IncludeCcsMetadata *bool `json:"include_ccs_metadata,omitempty"` + // KeepAlive The period for which the query and its results are stored in the cluster. + // The default period is five days. + // When this period expires, the query and its results are deleted, even if the + // query is still ongoing. + // If the `keep_on_completion` parameter is false, Elasticsearch only stores + // async queries that do not complete within the period set by the + // `wait_for_completion_timeout` parameter, regardless of this value. + KeepAlive types.Duration `json:"keep_alive,omitempty"` + // KeepOnCompletion Indicates whether the query and its results are stored in the cluster. + // If false, the query and its results are stored in the cluster only if the + // request does not complete during the period set by the + // `wait_for_completion_timeout` parameter. + KeepOnCompletion *bool `json:"keep_on_completion,omitempty"` + Locale *string `json:"locale,omitempty"` // Params To avoid any attempts of hacking or code injection, extract the values in a // separate list of parameters. Use question mark placeholders (?) in the query // string for each of the parameters. @@ -144,6 +157,25 @@ func (s *Request) UnmarshalJSON(data []byte) error { s.IncludeCcsMetadata = &v } + case "keep_alive": + if err := dec.Decode(&s.KeepAlive); err != nil { + return fmt.Errorf("%s | %w", "KeepAlive", err) + } + + case "keep_on_completion": + 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", "KeepOnCompletion", err) + } + s.KeepOnCompletion = &value + case bool: + s.KeepOnCompletion = &v + } + case "locale": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { diff --git a/typedapi/esql/asyncquerydelete/async_query_delete.go b/typedapi/esql/asyncquerydelete/async_query_delete.go index cf62d77e86..bb32b7de23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c4eed47f6c..da8d808be8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package asyncquerydelete // Response holds the response body struct for the package asyncquerydelete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L25 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 7530016166..0830b56eaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get async ES|QL query results. // Get the current status and available results or stored results for an ES|QL @@ -38,6 +38,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/esqlformat" ) const ( @@ -322,6 +323,14 @@ func (r *AsyncQueryGet) DropNullColumns(dropnullcolumns bool) *AsyncQueryGet { return r } +// Format A short version of the Accept header, for example `json` or `yaml`. +// API name: format +func (r *AsyncQueryGet) Format(format esqlformat.EsqlFormat) *AsyncQueryGet { + r.values.Set("format", format.String()) + + return r +} + // KeepAlive The period for which the query and its results are stored in the cluster. // When this period expires, the query and its results are deleted, even if the // query is still ongoing. diff --git a/typedapi/esql/asyncquerystop/async_query_stop.go b/typedapi/esql/asyncquerystop/async_query_stop.go index 984db144c9..7b98e05b43 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Stop async ES|QL query. // diff --git a/typedapi/esql/query/query.go b/typedapi/esql/query/query.go index b55c9291cf..84cb6aaf99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run an ES|QL query. // Get search results for an ES|QL (Elasticsearch query language) query. @@ -292,6 +292,9 @@ func (r *Query) Header(key, value string) *Query { } // Format A short version of the Accept header, e.g. json, yaml. +// +// `csv`, `tsv`, and `txt` formats will return results in a tabular format, +// excluding other metadata fields from the response. // API name: format func (r *Query) Format(format esqlformat.EsqlFormat) *Query { r.values.Set("format", format.String()) diff --git a/typedapi/esql/query/request.go b/typedapi/esql/query/request.go index 41d5396bf4..08875cbdef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package query @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/query/QueryRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/query/QueryRequest.ts#L27-L107 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each diff --git a/typedapi/features/getfeatures/get_features.go b/typedapi/features/getfeatures/get_features.go index 4611149933..958ef5c2b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 aa8b8f7747..588de26251 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 44f735325f..14255dda1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 fe51a2deab..606821413c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resetfeatures @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resetfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 30c9b3b129..672b95de98 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get global checkpoints. // diff --git a/typedapi/fleet/globalcheckpoints/response.go b/typedapi/fleet/globalcheckpoints/response.go index defa9968a1..d5573e4503 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package globalcheckpoints // Response holds the response body struct for the package globalcheckpoints // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4094ea480c..15d02b6526 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run multiple Fleet searches. // Run several Fleet searches with a single API request. diff --git a/typedapi/fleet/msearch/request.go b/typedapi/fleet/msearch/request.go index d8a39a2e7d..63da9fce9a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearch @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/fleet/msearch/MultiSearchRequest.ts#L31-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/fleet/msearch/MultiSearchRequest.ts#L31-L126 type Request = []types.MsearchRequestItem diff --git a/typedapi/fleet/msearch/response.go b/typedapi/fleet/msearch/response.go index 5bd349bc1e..fb685fcf42 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package msearch @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b62cc1a74a..cd1589775a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Creates a secret stored by Fleet. package postsecret diff --git a/typedapi/fleet/search/request.go b/typedapi/fleet/search/request.go index 0405783040..1d39735f3c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/fleet/search/SearchRequest.ts#L54-L266 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/fleet/search/SearchRequest.ts#L54-L266 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` diff --git a/typedapi/fleet/search/response.go b/typedapi/fleet/search/response.go index a9c7fb14ba..a17a3afdde 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/fleet/search/SearchResponse.ts#L33-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a19e947fea..1e61d118bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a Fleet search. // The purpose of the Fleet search API is to provide an API where the search diff --git a/typedapi/graph/explore/explore.go b/typedapi/graph/explore/explore.go index abc478ecf3..d581aee081 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 eae1db2761..001304bf26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explore @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/explore/GraphExploreRequest.ts#L28-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fc2b1626f8..afe3b8afda 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/explore/GraphExploreResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2726457369..eb0c00cfc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8f9e8520ca..7a5727cdb1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L25 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 585e7c3ba8..33bc5a8ae0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 82a84e8017..ef2920a946 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explainlifecycle @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package explainlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 77db567bae..028e029caa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get lifecycle policies. package getlifecycle diff --git a/typedapi/ilm/getlifecycle/response.go b/typedapi/ilm/getlifecycle/response.go index f12524a9ba..e9b1c1d68e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 da10ceef28..e3d3c53333 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the ILM status. // diff --git a/typedapi/ilm/getstatus/response.go b/typedapi/ilm/getstatus/response.go index 156a2ba400..671c9e3f55 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ac4a40ced7..075a7c797c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 cdaf6db175..f0193fe7a9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package migratetodatatiers @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/migrate_to_data_tiers/Request.ts#L23-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/migrate_to_data_tiers/Request.ts#L23-L69 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 cd1a17caac..614a5aff86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package migratetodatatiers @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0970347612..ed922be78c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b594985adc..2a3060a2c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package movetostep @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 edb00736b9..5570225679 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package movetostep // Response holds the response body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L25 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 b203400272..bca9bf8337 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 650eddca3b..9c0cfbc8f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putlifecycle @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b63864e6ce..60fce7f8e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L25 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 b25f3d18b8..70341b33f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 9c4db51c35..15d24fef61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package removepolicy // Response holds the response body struct for the package removepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a6ab95652b..3e1d90d553 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package retry // Response holds the response body struct for the package retry // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/retry/RetryIlmResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/retry/RetryIlmResponse.ts#L22-L25 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 2c46b529b1..c1f9a39584 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e7100db5a8..a2016c7dcc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/start/StartIlmResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/start/StartIlmResponse.ts#L22-L25 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 534a654129..70c2425a8b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3626ef9579..d4b92f947d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/stop/StopIlmResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/stop/StopIlmResponse.ts#L22-L25 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 8d8015af1c..3229ec1204 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8d16ca27cd..680d1637a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Add an index block. // diff --git a/typedapi/indices/addblock/response.go b/typedapi/indices/addblock/response.go index 7762c5e279..331a8d48d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package addblock @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package addblock // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 57db689b6f..7cfd0130aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 891d4a9394..233853e81d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package analyze @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L119 type Request struct { // Analyzer The name of the analyzer that should be applied to the provided `text`. @@ -199,12 +199,60 @@ func (s *Request) UnmarshalJSON(data []byte) error { switch kind["type"] { + case "apostrophe": + o := types.NewApostropheTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "apostrophe", err) + } + s.Filter = append(s.Filter, *o) + case "arabic_stem": + o := types.NewArabicStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "arabic_stem", err) + } + s.Filter = append(s.Filter, *o) + case "arabic_normalization": + o := types.NewArabicNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "arabic_normalization", err) + } + s.Filter = append(s.Filter, *o) case "asciifolding": o := types.NewAsciiFoldingTokenFilter() if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "asciifolding", err) } s.Filter = append(s.Filter, *o) + case "bengali_normalization": + o := types.NewBengaliNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "bengali_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "brazilian_stem": + o := types.NewBrazilianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "brazilian_stem", err) + } + s.Filter = append(s.Filter, *o) + case "cjk_bigram": + o := types.NewCjkBigramTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "cjk_bigram", err) + } + s.Filter = append(s.Filter, *o) + case "cjk_width": + o := types.NewCjkWidthTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "cjk_width", err) + } + s.Filter = append(s.Filter, *o) + case "classic": + o := types.NewClassicTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "classic", err) + } + s.Filter = append(s.Filter, *o) case "common_grams": o := types.NewCommonGramsTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -217,12 +265,30 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "condition", err) } s.Filter = append(s.Filter, *o) + case "czech_stem": + o := types.NewCzechStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "czech_stem", err) + } + s.Filter = append(s.Filter, *o) + case "decimal_digit": + o := types.NewDecimalDigitTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "decimal_digit", err) + } + s.Filter = append(s.Filter, *o) case "delimited_payload": o := types.NewDelimitedPayloadTokenFilter() if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "delimited_payload", err) } s.Filter = append(s.Filter, *o) + case "dutch_stem": + o := types.NewDutchStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "dutch_stem", err) + } + s.Filter = append(s.Filter, *o) case "edge_ngram": o := types.NewEdgeNGramTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -241,6 +307,36 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "fingerprint", err) } s.Filter = append(s.Filter, *o) + case "flatten_graph": + o := types.NewFlattenGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "flatten_graph", err) + } + s.Filter = append(s.Filter, *o) + case "french_stem": + o := types.NewFrenchStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "french_stem", err) + } + s.Filter = append(s.Filter, *o) + case "german_normalization": + o := types.NewGermanNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "german_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "german_stem": + o := types.NewGermanStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "german_stem", err) + } + s.Filter = append(s.Filter, *o) + case "hindi_normalization": + o := types.NewHindiNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "hindi_normalization", err) + } + s.Filter = append(s.Filter, *o) case "hunspell": o := types.NewHunspellTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -253,6 +349,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "hyphenation_decompounder", err) } s.Filter = append(s.Filter, *o) + case "indic_normalization": + o := types.NewIndicNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "indic_normalization", err) + } + s.Filter = append(s.Filter, *o) case "keep_types": o := types.NewKeepTypesTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -271,6 +373,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "keyword_marker", err) } s.Filter = append(s.Filter, *o) + case "keyword_repeat": + o := types.NewKeywordRepeatTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "keyword_repeat", err) + } + s.Filter = append(s.Filter, *o) case "kstem": o := types.NewKStemTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -295,6 +403,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "lowercase", err) } s.Filter = append(s.Filter, *o) + case "min_hash": + o := types.NewMinHashTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "min_hash", err) + } + s.Filter = append(s.Filter, *o) case "multiplexer": o := types.NewMultiplexerTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -325,6 +439,18 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "pattern_replace", err) } s.Filter = append(s.Filter, *o) + case "persian_normalization": + o := types.NewPersianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "persian_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "persian_stem": + o := types.NewPersianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "persian_stem", err) + } + s.Filter = append(s.Filter, *o) case "porter_stem": o := types.NewPorterStemTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -349,6 +475,30 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "reverse", err) } s.Filter = append(s.Filter, *o) + case "russian_stem": + o := types.NewRussianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "russian_stem", err) + } + s.Filter = append(s.Filter, *o) + case "scandinavian_folding": + o := types.NewScandinavianFoldingTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "scandinavian_folding", err) + } + s.Filter = append(s.Filter, *o) + case "scandinavian_normalization": + o := types.NewScandinavianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "scandinavian_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "serbian_normalization": + o := types.NewSerbianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "serbian_normalization", err) + } + s.Filter = append(s.Filter, *o) case "shingle": o := types.NewShingleTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -361,6 +511,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "snowball", err) } s.Filter = append(s.Filter, *o) + case "sorani_normalization": + o := types.NewSoraniNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "sorani_normalization", err) + } + s.Filter = append(s.Filter, *o) case "stemmer_override": o := types.NewStemmerOverrideTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -427,6 +583,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "word_delimiter", err) } s.Filter = append(s.Filter, *o) + case "ja_stop": + o := types.NewJaStopTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "ja_stop", err) + } + s.Filter = append(s.Filter, *o) case "kuromoji_stemmer": o := types.NewKuromojiStemmerTokenFilter() if err := localDec.Decode(&o); err != nil { diff --git a/typedapi/indices/analyze/response.go b/typedapi/indices/analyze/response.go index 6669efa81d..205126c394 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package analyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3c2908e129..566d685c35 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Cancel a migration reindex operation. // diff --git a/typedapi/indices/cancelmigratereindex/response.go b/typedapi/indices/cancelmigratereindex/response.go index dd5bc256f5..2155d0b2c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package cancelmigratereindex // Response holds the response body struct for the package cancelmigratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L25 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 2aff5b625e..4aa8c47df9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear the cache. // Clear the cache of one or more indices. @@ -337,7 +337,6 @@ func (r *ClearCache) AllowNoIndices(allownoindices bool) *ClearCache { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *ClearCache) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *ClearCache { tmp := []string{} diff --git a/typedapi/indices/clearcache/response.go b/typedapi/indices/clearcache/response.go index 3c4dcd372c..94dfb15cd7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L25 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } diff --git a/typedapi/indices/clone/clone.go b/typedapi/indices/clone/clone.go index da85eaa348..da2f38cba0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 95fefad3cd..c549c89787 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clone @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/clone/IndicesCloneRequest.ts#L27-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 85fe0c4983..71f1802df9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 564c71e9d7..842921d2a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Close an index. // A closed index is blocked for read or write operations and does not allow all @@ -369,7 +369,6 @@ func (r *Close) AllowNoIndices(allownoindices bool) *Close { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Close) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Close { tmp := []string{} diff --git a/typedapi/indices/close/response.go b/typedapi/indices/close/response.go index 644f32f9d2..67a43f3d50 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package close @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package close // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/close/CloseIndexResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6b41d39ffb..3a9dd8cac8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an index. // You can use the create index API to add a new index to an Elasticsearch @@ -369,6 +369,19 @@ func (r *Create) Header(key, value string) *Create { } // Index Name of the index you wish to create. +// Index names must meet the following criteria: +// +// * Lowercase only +// * Cannot include `\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, ` ` (space +// character), `,`, or `#` +// * Indices prior to 7.0 could contain a colon (`:`), but that has been +// deprecated and will not be supported in later versions +// * Cannot start with `-`, `_`, or `+` +// * Cannot be `.` or `..` +// * Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte +// characters will reach the limit faster) +// * Names starting with `.` are deprecated, except for hidden indices and +// internal indices managed by plugins // API Name: index func (r *Create) _index(index string) *Create { r.paramSet |= indexMask diff --git a/typedapi/indices/create/request.go b/typedapi/indices/create/request.go index d4fb22897d..c2a38a2300 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create/IndicesCreateRequest.ts#L28-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/create/IndicesCreateRequest.ts#L28-L115 type Request struct { // Aliases Aliases for the index. diff --git a/typedapi/indices/create/response.go b/typedapi/indices/create/response.go index c0c2706b29..9ff316ff09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create/IndicesCreateResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c6a8975cfd..025bc7f61f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a data stream. // diff --git a/typedapi/indices/createdatastream/response.go b/typedapi/indices/createdatastream/response.go index d56a48b51f..aba3fd2622 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createdatastream // Response holds the response body struct for the package createdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L25 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 6241a4ad55..c1436eeb04 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an index from a source index. // diff --git a/typedapi/indices/createfrom/request.go b/typedapi/indices/createfrom/request.go index 86e89bb7b2..f788a75b60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createfrom @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create_from/MigrateCreateFromRequest.ts#L25-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e4c3c87318..64e3a3441f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createfrom // Response holds the response body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create_from/MigrateCreateFromResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4960f6ebb5..1df4bb0fe7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get data stream stats. // diff --git a/typedapi/indices/datastreamsstats/response.go b/typedapi/indices/datastreamsstats/response.go index ec3b7c441f..0113f6705a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package datastreamsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package datastreamsstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 69aa9b0e8c..3cd594ea4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete indices. // Deleting an index deletes its documents, shards, and metadata. @@ -330,7 +330,6 @@ func (r *Delete) AllowNoIndices(allownoindices bool) *Delete { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Delete) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Delete { tmp := []string{} diff --git a/typedapi/indices/delete/response.go b/typedapi/indices/delete/response.go index 4e796769a2..fde84f26e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete/IndicesDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete/IndicesDeleteResponse.ts#L22-L25 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 d8aec3d268..67aa0609cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 da0cf91b02..77244a5325 100644 --- a/typedapi/indices/deletealias/response.go +++ b/typedapi/indices/deletealias/response.go @@ -16,18 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletealias // Response holds the response body struct for the package deletealias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L25 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an // exception is returned instead. - Acknowledged bool `json:"acknowledged"` + Acknowledged bool `json:"acknowledged"` + Errors *bool `json:"errors,omitempty"` } // NewResponse returns a Response diff --git a/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go b/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go index 098527232d..4026846a18 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 bac4173f7d..bbfe1107bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletedatalifecycle // Response holds the response body struct for the package deletedatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L25 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 08fe6cbbbd..09a26610ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c8f775c3d4..660ff01735 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletedatastream // Response holds the response body struct for the package deletedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L25 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 6f92de8428..16ccff6305 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 86982d48a0..bcedfc477d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteindextemplate // Response holds the response body struct for the package deleteindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L25 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 693ff4142c..28ee4c5c94 100644 --- a/typedapi/indices/deletetemplate/delete_template.go +++ b/typedapi/indices/deletetemplate/delete_template.go @@ -16,9 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a legacy index template. +// IMPORTANT: This documentation is about legacy index templates, which are +// deprecated and will be replaced by the composable templates introduced in +// Elasticsearch 7.8. package deletetemplate import ( @@ -77,6 +80,9 @@ func NewDeleteTemplateFunc(tp elastictransport.Interface) NewDeleteTemplate { } // Delete a legacy index template. +// IMPORTANT: This documentation is about legacy index templates, which are +// deprecated and will be replaced by the composable templates introduced in +// Elasticsearch 7.8. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-template func New(tp elastictransport.Interface) *DeleteTemplate { diff --git a/typedapi/indices/deletetemplate/response.go b/typedapi/indices/deletetemplate/response.go index d86a656115..7d8706bee9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletetemplate // Response holds the response body struct for the package deletetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L25 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 b519fe6d72..10013886b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 887bacf4bd..fd2d4cb64b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package diskusage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package diskusage // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 46071ef755..44a196b0dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3ff432e2e4..59c2c877dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package downsample @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/downsample/Request.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6627e13aa8..1138dd677f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package downsample @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/downsample/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 03f0d71503..355ca763e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check indices. // Check if one or more indices, index aliases, or data streams exist. @@ -262,7 +262,6 @@ func (r *Exists) AllowNoIndices(allownoindices bool) *Exists { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Exists) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Exists { tmp := []string{} diff --git a/typedapi/indices/existsalias/exists_alias.go b/typedapi/indices/existsalias/exists_alias.go index 0730225507..427c0bd30a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check aliases. // @@ -297,7 +297,6 @@ func (r *ExistsAlias) AllowNoIndices(allownoindices bool) *ExistsAlias { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *ExistsAlias) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *ExistsAlias { tmp := []string{} diff --git a/typedapi/indices/existsindextemplate/exists_index_template.go b/typedapi/indices/existsindextemplate/exists_index_template.go index 487879cf8c..b0747d8bdd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check index templates. // diff --git a/typedapi/indices/existstemplate/exists_template.go b/typedapi/indices/existstemplate/exists_template.go index cbbe92fe75..5edf77862f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b011c39c22..68b5345c55 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 d288d16e0e..5a1c4c11c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explaindatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 476d3fab2c..dc0159ad3a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get field usage stats. // Get field usage information for each shard and field of an index. diff --git a/typedapi/indices/fieldusagestats/response.go b/typedapi/indices/fieldusagestats/response.go index 5466fd82dc..79ad662286 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package fieldusagestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package fieldusagestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L31 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 3e7c46b9e2..611cc605e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Flush data streams or indices. // Flushing a data stream or index is the process of making sure that any data @@ -364,7 +364,6 @@ func (r *Flush) AllowNoIndices(allownoindices bool) *Flush { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Flush) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Flush { tmp := []string{} diff --git a/typedapi/indices/flush/response.go b/typedapi/indices/flush/response.go index 5e98355303..a9b6819c47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package flush @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package flush // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/flush/IndicesFlushResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/flush/IndicesFlushResponse.ts#L22-L25 type Response struct { Shards_ *types.ShardStatistics `json:"_shards,omitempty"` } diff --git a/typedapi/indices/forcemerge/forcemerge.go b/typedapi/indices/forcemerge/forcemerge.go index d5de6e0aca..3bc530c3eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 f1d0814d3a..9ff001d7b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package forcemerge @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package forcemerge // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L25 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 9f904e27a1..a7ba942b2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 db63f3392e..bb2b9e74f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get/IndicesGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1b9138270b..4d838cf451 100644 --- a/typedapi/indices/getalias/get_alias.go +++ b/typedapi/indices/getalias/get_alias.go @@ -16,14 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get aliases. // Retrieves information for one or more data stream or index aliases. package getalias import ( - gobytes "bytes" "context" "encoding/json" "errors" @@ -261,42 +260,6 @@ func (r GetAlias) Do(providedCtx context.Context) (Response, error) { return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { @@ -399,7 +362,6 @@ func (r *GetAlias) AllowNoIndices(allownoindices bool) *GetAlias { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *GetAlias) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *GetAlias { tmp := []string{} diff --git a/typedapi/indices/getalias/response.go b/typedapi/indices/getalias/response.go index f188ac0c78..d0a5b7f984 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getalias @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getalias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_alias/IndicesGetAliasResponse.ts#L28-L37 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 85a39e454b..72d0514dfb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get data stream lifecycles. // @@ -308,7 +308,6 @@ func (r *GetDataLifecycle) _name(name string) *GetDataLifecycle { // ExpandWildcards Type of data stream that wildcard patterns can match. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *GetDataLifecycle) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *GetDataLifecycle { tmp := []string{} diff --git a/typedapi/indices/getdatalifecycle/response.go b/typedapi/indices/getdatalifecycle/response.go index ef37f578c0..891f386e98 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdatalifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 26b349ef38..37e60f6766 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 56a07e9b0c..7047fd3f35 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdatalifecyclestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatalifecyclestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7b3d92c22a..4037795aa0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get data streams. // diff --git a/typedapi/indices/getdatastream/response.go b/typedapi/indices/getdatastream/response.go index 80d9200f87..dde0fa9192 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 83a4287e1d..3dea4f8331 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get mapping definitions. // Retrieves mapping definitions for one or more fields. @@ -363,7 +363,6 @@ func (r *GetFieldMapping) AllowNoIndices(allownoindices bool) *GetFieldMapping { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *GetFieldMapping) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *GetFieldMapping { tmp := []string{} diff --git a/typedapi/indices/getfieldmapping/response.go b/typedapi/indices/getfieldmapping/response.go index 084222499f..1749a62649 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getfieldmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfieldmapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4c6eab24ad..96833b71b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8dd2820cc4..4184d1b67f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fa8203b21e..b8c0324ac6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get mapping definitions. // For data streams, the API retrieves mappings for the stream’s backing @@ -323,7 +323,6 @@ func (r *GetMapping) AllowNoIndices(allownoindices bool) *GetMapping { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *GetMapping) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *GetMapping { tmp := []string{} diff --git a/typedapi/indices/getmapping/response.go b/typedapi/indices/getmapping/response.go index 515db090bb..89a134591b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 98f62d5f34..3afaba5677 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the migration reindexing status. // diff --git a/typedapi/indices/getmigratereindexstatus/response.go b/typedapi/indices/getmigratereindexstatus/response.go index 982e61063a..1fe87055df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmigratereindexstatus @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package getmigratereindexstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 edd059cd9e..f3e6c645d2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 7a76091afd..254ff5061e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c89e5852b4..e38be1ba25 100644 --- a/typedapi/indices/gettemplate/get_template.go +++ b/typedapi/indices/gettemplate/get_template.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Get index templates. +// Get legacy index templates. // Get information about one or more index templates. // // IMPORTANT: This documentation is about legacy index templates, which are @@ -79,7 +79,7 @@ func NewGetTemplateFunc(tp elastictransport.Interface) NewGetTemplate { } } -// Get index templates. +// Get legacy index templates. // Get information about one or more index templates. // // IMPORTANT: This documentation is about legacy index templates, which are diff --git a/typedapi/indices/gettemplate/response.go b/typedapi/indices/gettemplate/response.go index 0448c35173..5ce32a4667 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c0832bf8fa..da598206f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Reindex legacy backing indices. // diff --git a/typedapi/indices/migratereindex/request.go b/typedapi/indices/migratereindex/request.go index 8f18bb51eb..34ff17c631 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package migratereindex @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dfd8c0fe56..fff7da5c39 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package migratereindex // Response holds the response body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_reindex/MigrateReindexResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/migrate_reindex/MigrateReindexResponse.ts#L22-L25 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 cbab0d8930..151ee4baac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e9f9081f60..6b0ea7534e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package migratetodatastream // Response holds the response body struct for the package migratetodatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L25 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 489f65465d..8e82f69c56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c1ef82829f..19250888a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package modifydatastream @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f424b3d3cb..8eafb6bc56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package modifydatastream // Response holds the response body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L25 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 e29fee19f4..0568cf076b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Open a closed index. // For data streams, the API opens any closed backing indices. @@ -390,7 +390,6 @@ func (r *Open) AllowNoIndices(allownoindices bool) *Open { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Open) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Open { tmp := []string{} diff --git a/typedapi/indices/open/response.go b/typedapi/indices/open/response.go index 15cdcb3e3a..7af74cd47d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package open // Response holds the response body struct for the package open // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/open/IndicesOpenResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bf4b546c1c..e55c7d9bbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3dc7b4e320..49e4e69686 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package promotedatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package promotedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e00c99b2a8..ee1ca8e9fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c24e4b6632..dd19cb1ef1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putalias @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 04ab9b3a2f..5dc468f460 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putalias // Response holds the response body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L25 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 395c3ec757..61bcec786c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update data stream lifecycles. // Update the data stream lifecycle of the specified data streams. @@ -320,7 +320,6 @@ func (r *PutDataLifecycle) _name(name string) *PutDataLifecycle { // ExpandWildcards Type of data stream that wildcard patterns can match. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `hidden`, `open`, `closed`, `none`. // API name: expand_wildcards func (r *PutDataLifecycle) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *PutDataLifecycle { tmp := []string{} diff --git a/typedapi/indices/putdatalifecycle/request.go b/typedapi/indices/putdatalifecycle/request.go index 511635dec4..149ed3fde1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdatalifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e59530e3bb..3f3e6a6896 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdatalifecycle // Response holds the response body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L25 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 863c2c537a..b23725610c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ddf9e2f625..3eab18ef09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putindextemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e4ebc38eb1..9d3a7fc1cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putindextemplate // Response holds the response body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L25 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 48b0d19821..66f19b9e94 100644 --- a/typedapi/indices/putmapping/put_mapping.go +++ b/typedapi/indices/putmapping/put_mapping.go @@ -16,47 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update field mappings. // Add new fields to an existing data stream or index. -// You can also use this API to change the search settings of existing fields -// and add new properties to existing object fields. -// For data streams, these changes are applied to all backing indices by -// default. +// You can use the update mapping API to: // -// **Add multi-fields to an existing field** +// - Add a new field to an existing index +// - Update mappings for multiple indices in a single request +// - Add new properties to an object field +// - Enable multi-fields for an existing field +// - Update supported mapping parameters +// - Change a field's mapping using reindexing +// - Rename a field using a field alias // -// Multi-fields let you index the same field in different ways. -// You can use this API to update the fields mapping parameter and enable -// multi-fields for an existing field. -// WARNING: If an index (or data stream) contains documents when you add a -// multi-field, those documents will not have values for the new multi-field. -// You can populate the new multi-field with the update by query API. -// -// **Change supported mapping parameters for an existing field** -// -// The documentation for each mapping parameter indicates whether you can update -// it for an existing field using this API. -// For example, you can use the update mapping API to update the `ignore_above` -// parameter. -// -// **Change the mapping of an existing field** -// -// Except for supported mapping parameters, you can't change the mapping or -// field type of an existing field. -// Changing an existing field could invalidate data that's already indexed. -// -// If you need to change the mapping of a field in a data stream's backing -// indices, refer to documentation about modifying data streams. -// If you need to change the mapping of a field in other indices, create a new -// index with the correct mapping and reindex your data into that index. -// -// **Rename a field** -// -// Renaming a field would invalidate data already indexed under the old field -// name. -// Instead, add an alias field to create an alternate field name. +// Learn how to use the update mapping API with practical examples in the +// [Update mapping API +// examples](https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples) +// guide. package putmapping import ( @@ -123,43 +100,20 @@ func NewPutMappingFunc(tp elastictransport.Interface) NewPutMapping { // Update field mappings. // Add new fields to an existing data stream or index. -// You can also use this API to change the search settings of existing fields -// and add new properties to existing object fields. -// For data streams, these changes are applied to all backing indices by -// default. -// -// **Add multi-fields to an existing field** -// -// Multi-fields let you index the same field in different ways. -// You can use this API to update the fields mapping parameter and enable -// multi-fields for an existing field. -// WARNING: If an index (or data stream) contains documents when you add a -// multi-field, those documents will not have values for the new multi-field. -// You can populate the new multi-field with the update by query API. -// -// **Change supported mapping parameters for an existing field** -// -// The documentation for each mapping parameter indicates whether you can update -// it for an existing field using this API. -// For example, you can use the update mapping API to update the `ignore_above` -// parameter. -// -// **Change the mapping of an existing field** -// -// Except for supported mapping parameters, you can't change the mapping or -// field type of an existing field. -// Changing an existing field could invalidate data that's already indexed. -// -// If you need to change the mapping of a field in a data stream's backing -// indices, refer to documentation about modifying data streams. -// If you need to change the mapping of a field in other indices, create a new -// index with the correct mapping and reindex your data into that index. +// You can use the update mapping API to: // -// **Rename a field** +// - Add a new field to an existing index +// - Update mappings for multiple indices in a single request +// - Add new properties to an object field +// - Enable multi-fields for an existing field +// - Update supported mapping parameters +// - Change a field's mapping using reindexing +// - Rename a field using a field alias // -// Renaming a field would invalidate data already indexed under the old field -// name. -// Instead, add an alias field to create an alternate field name. +// Learn how to use the update mapping API with practical examples in the +// [Update mapping API +// examples](https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples) +// guide. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-mapping func New(tp elastictransport.Interface) *PutMapping { @@ -404,7 +358,6 @@ func (r *PutMapping) AllowNoIndices(allownoindices bool) *PutMapping { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *PutMapping) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *PutMapping { tmp := []string{} diff --git a/typedapi/indices/putmapping/request.go b/typedapi/indices/putmapping/request.go index 8c2fee98c0..50be1c07ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putmapping @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L164 type Request struct { // DateDetection Controls whether dynamic date detection is enabled. @@ -299,6 +299,12 @@ func (s *Request) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := types.NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := types.NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { diff --git a/typedapi/indices/putmapping/response.go b/typedapi/indices/putmapping/response.go index 68338fa3f6..189a13337c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putmapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25 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 af74ac4cb5..98ffb44c4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update index settings. // Changes dynamic index settings in real time. @@ -25,10 +25,61 @@ // // To revert a setting to the default value, use a null value. // The list of per-index settings that can be updated dynamically on live -// indices can be found in index module documentation. +// indices can be found in index settings documentation. // To preserve existing settings from being updated, set the `preserve_existing` // parameter to `true`. // +// For performance optimization during bulk indexing, you can disable the +// refresh interval. +// Refer to [disable refresh +// interval](https://www.elastic.co/docs/deploy-manage/production-guidance/optimize-performance/indexing-speed#disable-refresh-interval) +// for an example. +// There are multiple valid ways to represent index settings in the request +// body. You can specify only the setting, for example: +// +// ``` +// +// { +// "number_of_replicas": 1 +// } +// +// ``` +// +// Or you can use an `index` setting object: +// ``` +// +// { +// "index": { +// "number_of_replicas": 1 +// } +// } +// +// ``` +// +// Or you can use dot annotation: +// ``` +// +// { +// "index.number_of_replicas": 1 +// } +// +// ``` +// +// Or you can embed any of the aforementioned options in a `settings` object. +// For example: +// +// ``` +// +// { +// "settings": { +// "index": { +// "number_of_replicas": 1 +// } +// } +// } +// +// ``` +// // NOTE: You can only define new analyzers on closed indices. // To add an analyzer, you must close the index, define the analyzer, and reopen // the index. @@ -43,6 +94,9 @@ // existing data. // To change the analyzer for existing backing indices, you must create a new // data stream and reindex your data into it. +// Refer to [updating analyzers on existing +// indices](https://www.elastic.co/docs/manage-data/data-store/text-analysis/specify-an-analyzer#update-analyzers-on-existing-indices) +// for step-by-step examples. package putsettings import ( @@ -112,10 +166,61 @@ func NewPutSettingsFunc(tp elastictransport.Interface) NewPutSettings { // // To revert a setting to the default value, use a null value. // The list of per-index settings that can be updated dynamically on live -// indices can be found in index module documentation. +// indices can be found in index settings documentation. // To preserve existing settings from being updated, set the `preserve_existing` // parameter to `true`. // +// For performance optimization during bulk indexing, you can disable the +// refresh interval. +// Refer to [disable refresh +// interval](https://www.elastic.co/docs/deploy-manage/production-guidance/optimize-performance/indexing-speed#disable-refresh-interval) +// for an example. +// There are multiple valid ways to represent index settings in the request +// body. You can specify only the setting, for example: +// +// ``` +// +// { +// "number_of_replicas": 1 +// } +// +// ``` +// +// Or you can use an `index` setting object: +// ``` +// +// { +// "index": { +// "number_of_replicas": 1 +// } +// } +// +// ``` +// +// Or you can use dot annotation: +// ``` +// +// { +// "index.number_of_replicas": 1 +// } +// +// ``` +// +// Or you can embed any of the aforementioned options in a `settings` object. +// For example: +// +// ``` +// +// { +// "settings": { +// "index": { +// "number_of_replicas": 1 +// } +// } +// } +// +// ``` +// // NOTE: You can only define new analyzers on closed indices. // To add an analyzer, you must close the index, define the analyzer, and reopen // the index. @@ -130,6 +235,9 @@ func NewPutSettingsFunc(tp elastictransport.Interface) NewPutSettings { // existing data. // To change the analyzer for existing backing indices, you must create a new // data stream and reindex your data into it. +// Refer to [updating analyzers on existing +// indices](https://www.elastic.co/docs/manage-data/data-store/text-analysis/specify-an-analyzer#update-analyzers-on-existing-indices) +// for step-by-step examples. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-settings func New(tp elastictransport.Interface) *PutSettings { @@ -506,6 +614,8 @@ func (r *PutSettings) Analysis(analysis types.IndexSettingsAnalysisVariant) *Put // Settings to define analyzers, tokenizers, token filters and character // filters. +// Refer to the linked documentation for step-by-step examples of updating +// analyzers on existing indices. // API name: analyze func (r *PutSettings) Analyze(analyze types.SettingsAnalyzeVariant) *PutSettings { // Initialize the request if it is not already initialized @@ -619,7 +729,7 @@ func (r *PutSettings) Format(format string) *PutSettings { r.req = NewRequest() } - r.req.Format = format + r.req.Format = &format return r } @@ -643,7 +753,7 @@ func (r *PutSettings) Hidden(hidden string) *PutSettings { r.req = NewRequest() } - r.req.Hidden = hidden + r.req.Hidden = &hidden return r } @@ -926,7 +1036,7 @@ func (r *PutSettings) NumberOfReplicas(numberofreplicas string) *PutSettings { r.req = NewRequest() } - r.req.NumberOfReplicas = numberofreplicas + r.req.NumberOfReplicas = &numberofreplicas return r } @@ -950,7 +1060,7 @@ func (r *PutSettings) NumberOfShards(numberofshards string) *PutSettings { r.req = NewRequest() } - r.req.NumberOfShards = numberofshards + r.req.NumberOfShards = &numberofshards return r } @@ -962,7 +1072,7 @@ func (r *PutSettings) Priority(priority string) *PutSettings { r.req = NewRequest() } - r.req.Priority = priority + r.req.Priority = &priority return r } @@ -1199,7 +1309,7 @@ func (r *PutSettings) VerifiedBeforeClose(verifiedbeforeclose string) *PutSettin r.req = NewRequest() } - r.req.VerifiedBeforeClose = verifiedbeforeclose + r.req.VerifiedBeforeClose = &verifiedbeforeclose return r } diff --git a/typedapi/indices/putsettings/request.go b/typedapi/indices/putsettings/request.go index 8a867331f2..9d800a45eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsettings @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L165 type Request = types.IndexSettings // NewRequest returns a Request diff --git a/typedapi/indices/putsettings/response.go b/typedapi/indices/putsettings/response.go index 6fb4a7da54..d16f1d391a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsettings // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L25 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 24d25e3438..a5873bc252 100644 --- a/typedapi/indices/puttemplate/put_template.go +++ b/typedapi/indices/puttemplate/put_template.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Create or update an index template. +// Create or update a legacy index template. // Index templates define settings, mappings, and aliases that can be applied // automatically to new indices. // Elasticsearch applies templates to new indices based on an index pattern that @@ -112,7 +112,7 @@ func NewPutTemplateFunc(tp elastictransport.Interface) NewPutTemplate { } } -// Create or update an index template. +// Create or update a legacy index template. // Index templates define settings, mappings, and aliases that can be applied // automatically to new indices. // Elasticsearch applies templates to new indices based on an index pattern that diff --git a/typedapi/indices/puttemplate/request.go b/typedapi/indices/puttemplate/request.go index cece1a2720..3e30622b90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L123 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bfd736375b..df91cf070e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttemplate // Response holds the response body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L25 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 2dbc9cf43c..dfd985c281 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get index recovery information. // Get information about ongoing and completed shard recoveries for one or more @@ -69,6 +69,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -390,6 +391,40 @@ func (r *Recovery) Detailed(detailed bool) *Recovery { return r } +// AllowNoIndices If `false`, the request returns an error if any wildcard expression, index +// alias, or `_all` value targets only missing or closed indices. +// This behavior applies even if the request targets other open indices. +// API name: allow_no_indices +func (r *Recovery) AllowNoIndices(allownoindices bool) *Recovery { + r.values.Set("allow_no_indices", strconv.FormatBool(allownoindices)) + + return r +} + +// ExpandWildcards Type of index that wildcard patterns can match. +// If the request can target data streams, this argument determines whether +// wildcard expressions match hidden data streams. +// Supports comma-separated values, such as `open,hidden`. +// API name: expand_wildcards +func (r *Recovery) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Recovery { + tmp := []string{} + for _, item := range expandwildcards { + tmp = append(tmp, item.String()) + } + r.values.Set("expand_wildcards", strings.Join(tmp, ",")) + + return r +} + +// IgnoreUnavailable If `false`, the request returns an error if it targets a missing or closed +// index. +// API name: ignore_unavailable +func (r *Recovery) IgnoreUnavailable(ignoreunavailable bool) *Recovery { + r.values.Set("ignore_unavailable", strconv.FormatBool(ignoreunavailable)) + + 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/recovery/response.go b/typedapi/indices/recovery/response.go index c39d8495b5..a01e73c2e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package recovery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 54fea4e7c5..d24077df7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Refresh an index. // A refresh makes recent operations performed on one or more indices available @@ -367,7 +367,6 @@ func (r *Refresh) AllowNoIndices(allownoindices bool) *Refresh { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Refresh) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Refresh { tmp := []string{} diff --git a/typedapi/indices/refresh/response.go b/typedapi/indices/refresh/response.go index e2c44d6c07..e527ef0b31 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package refresh @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package refresh // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L25 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 23964fe34c..a77a44a6a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Reload search analyzers. // Reload an index's search analyzers and their resources. diff --git a/typedapi/indices/reloadsearchanalyzers/response.go b/typedapi/indices/reloadsearchanalyzers/response.go index f766de2808..1599da1fe9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reloadsearchanalyzers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsearchanalyzers // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L25 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 8d10b03913..73de3c66e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Resolve the cluster. // @@ -495,7 +495,6 @@ func (r *ResolveCluster) AllowNoIndices(allownoindices bool) *ResolveCluster { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // NOTE: This option is only supported when specifying an index expression. You // will get an error if you specify index // options to the `_resolve/cluster` API endpoint that takes no index diff --git a/typedapi/indices/resolvecluster/response.go b/typedapi/indices/resolvecluster/response.go index b31206a8b4..ab43ee638e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resolvecluster @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolvecluster // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c32ac24250..8096585deb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Resolve indices. // Resolve the names and/or index patterns for indices, aliases, and data @@ -313,7 +313,6 @@ func (r *ResolveIndex) _name(name string) *ResolveIndex { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *ResolveIndex) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *ResolveIndex { tmp := []string{} diff --git a/typedapi/indices/resolveindex/response.go b/typedapi/indices/resolveindex/response.go index 90933db472..3a69fec1e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resolveindex @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package resolveindex // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 03aa8fcb41..e2599953fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rollover @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3724e697f3..ae3094cfaa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rollover // Response holds the response body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b4592b136d..43bc3dcd1a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Roll over to a new index. // TIP: It is recommended to use the index lifecycle rollover action to automate diff --git a/typedapi/indices/segments/response.go b/typedapi/indices/segments/response.go index f7edb7983f..5318d1c5da 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package segments @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ad13f907fd..c6839d6361 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get index segments. // Get low-level information about the Lucene segments in index shards. @@ -325,7 +325,6 @@ func (r *Segments) AllowNoIndices(allownoindices bool) *Segments { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *Segments) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *Segments { tmp := []string{} diff --git a/typedapi/indices/shardstores/response.go b/typedapi/indices/shardstores/response.go index 193d3d5c8a..4537df28ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package shardstores @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package shardstores // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6907c0c35c..d740e59cd0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 13b8c822e7..fe46c8f67d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package shrink @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1b68233666..cb2cdc94d2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package shrink // Response holds the response body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b106193189..492fd39140 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 82acf8d512..079c648472 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package simulateindextemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulateindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 17c2d2fa49..d651c52755 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Simulate an index. // Get the index configuration that would be applied to the specified index from diff --git a/typedapi/indices/simulatetemplate/request.go b/typedapi/indices/simulatetemplate/request.go index 500e079396..e8de7796af 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package simulatetemplate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 85947a5ca3..09784988a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package simulatetemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d2d264780f..85f749c7b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Simulate an index template. // Get the index configuration that would be applied by a particular index diff --git a/typedapi/indices/split/request.go b/typedapi/indices/split/request.go index 46979586fe..c1ad279e90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package split @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/split/IndicesSplitRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4ef4a39dc4..3d498a22c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package split // Response holds the response body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/split/IndicesSplitResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 67226768aa..bd6143460b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e4c4860135..2181102bec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/IndicesStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 78ae6bc614..f488bc405a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get index statistics. // For data streams, the API retrieves statistics for the stream's backing diff --git a/typedapi/indices/updatealiases/request.go b/typedapi/indices/updatealiases/request.go index cd0e92ee47..d2e12010da 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatealiases @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1a28e4a0b7..f897089f46 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatealiases // Response holds the response body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L25 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 f7224930dd..3ad13a8678 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 cc63c54beb..b4c295781e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validatequery @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L122 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 b63cf4482b..5b7d677ba6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validatequery @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1d0916d792..9703eef16b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Validate a query. // Validates a query without running it. @@ -384,7 +384,6 @@ func (r *ValidateQuery) Df(df string) *ValidateQuery { // If the request can target data streams, this argument determines whether // wildcard expressions match hidden data streams. // Supports comma-separated values, such as `open,hidden`. -// Valid values are: `all`, `open`, `closed`, `hidden`, `none`. // API name: expand_wildcards func (r *ValidateQuery) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *ValidateQuery { tmp := []string{} diff --git a/typedapi/inference/chatcompletionunified/chat_completion_unified.go b/typedapi/inference/chatcompletionunified/chat_completion_unified.go index afbb1fd494..1ebf07b959 100644 --- a/typedapi/inference/chatcompletionunified/chat_completion_unified.go +++ b/typedapi/inference/chatcompletionunified/chat_completion_unified.go @@ -16,9 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform chat completion inference +// +// The chat completion inference API enables real-time responses for chat +// completion tasks by delivering answers incrementally, reducing response times +// during computation. +// It only works with the `chat_completion` task type for `openai` and `elastic` +// inference services. +// +// NOTE: The `chat_completion` task type is only available within the _stream +// API and only supports streaming. +// The Chat completion inference API and the Stream inference API differ in +// their response structure and capabilities. +// The Chat completion inference API provides more comprehensive customization +// options through more fields and function calling support. +// If you use the `openai` service or the `elastic` service, use the Chat +// completion inference API. package chatcompletionunified import ( @@ -83,6 +98,21 @@ func NewChatCompletionUnifiedFunc(tp elastictransport.Interface) NewChatCompleti // Perform chat completion inference // +// The chat completion inference API enables real-time responses for chat +// completion tasks by delivering answers incrementally, reducing response times +// during computation. +// It only works with the `chat_completion` task type for `openai` and `elastic` +// inference services. +// +// NOTE: The `chat_completion` task type is only available within the _stream +// API and only supports streaming. +// The Chat completion inference API and the Stream inference API differ in +// their response structure and capabilities. +// The Chat completion inference API provides more comprehensive customization +// options through more fields and function calling support. +// If you use the `openai` service or the `elastic` service, use the Chat +// completion inference API. +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-unified-inference func New(tp elastictransport.Interface) *ChatCompletionUnified { r := &ChatCompletionUnified{ @@ -382,6 +412,10 @@ func (r *ChatCompletionUnified) MaxCompletionTokens(maxcompletiontokens int64) * } // A list of objects representing the conversation. +// Requests should generally only add new messages from the user (role `user`). +// The other message roles (`assistant`, `system`, or `tool`) should generally +// only be copied from the response to a previous completion request, such that +// the messages array is built up throughout a conversation. // API name: messages func (r *ChatCompletionUnified) Messages(messages ...types.MessageVariant) *ChatCompletionUnified { // Initialize the request if it is not already initialized @@ -439,6 +473,23 @@ func (r *ChatCompletionUnified) Temperature(temperature float32) *ChatCompletion } // Controls which tool is called by the model. +// String representation: One of `auto`, `none`, or `requrired`. `auto` allows +// the model to choose between calling tools and generating a message. `none` +// causes the model to not call any tools. `required` forces the model to call +// one or more tools. +// Example (object representation): +// ``` +// +// { +// "tool_choice": { +// "type": "function", +// "function": { +// "name": "get_current_weather" +// } +// } +// } +// +// ``` // API name: tool_choice func (r *ChatCompletionUnified) ToolChoice(completiontooltype types.CompletionToolTypeVariant) *ChatCompletionUnified { // Initialize the request if it is not already initialized @@ -452,6 +503,33 @@ func (r *ChatCompletionUnified) ToolChoice(completiontooltype types.CompletionTo } // A list of tools that the model can call. +// Example: +// ``` +// +// { +// "tools": [ +// { +// "type": "function", +// "function": { +// "name": "get_price_of_item", +// "description": "Get the current price of an item", +// "parameters": { +// "type": "object", +// "properties": { +// "item": { +// "id": "12345" +// }, +// "unit": { +// "type": "currency" +// } +// } +// } +// } +// } +// ] +// } +// +// ``` // API name: tools func (r *ChatCompletionUnified) Tools(tools ...types.CompletionToolVariant) *ChatCompletionUnified { // Initialize the request if it is not already initialized diff --git a/typedapi/inference/chatcompletionunified/request.go b/typedapi/inference/chatcompletionunified/request.go index bbae9d32d8..dab6f8b8e8 100644 --- a/typedapi/inference/chatcompletionunified/request.go +++ b/typedapi/inference/chatcompletionunified/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package chatcompletionunified @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/chat_completion_unified/UnifiedRequest.ts#L24-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/chat_completion_unified/UnifiedRequest.ts#L24-L61 type Request = types.RequestChatCompletion // NewRequest returns a Request diff --git a/typedapi/inference/chatcompletionunified/response.go b/typedapi/inference/chatcompletionunified/response.go index 37a96d1a57..40198023e0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package chatcompletionunified // Response holds the response body struct for the package chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/chat_completion_unified/UnifiedResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/chat_completion_unified/UnifiedResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/inference/completion/completion.go b/typedapi/inference/completion/completion.go index 46ee3505f5..ba64d46f82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform completion inference on the service package completion diff --git a/typedapi/inference/completion/request.go b/typedapi/inference/completion/request.go index 43c825ee43..027db6f51c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package completion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/completion/CompletionRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 05dadb7a78..8f549c81b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package completion @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/completion/CompletionResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/completion/CompletionResponse.ts#L22-L25 type Response []types.CompletionResult diff --git a/typedapi/inference/delete/delete.go b/typedapi/inference/delete/delete.go index 46f0f55edc..5d8e05eda1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete an inference endpoint package delete diff --git a/typedapi/inference/delete/response.go b/typedapi/inference/delete/response.go index 3d4b43dd56..a015ef0e37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/delete/DeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/delete/DeleteResponse.ts#L22-L25 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 a570351498..ba0ac4db09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get an inference endpoint package get diff --git a/typedapi/inference/get/response.go b/typedapi/inference/get/response.go index 85f24f1162..c0ac6becb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/get/GetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 59c9a568e9..25c2a830f5 100644 --- a/typedapi/inference/inference/inference.go +++ b/typedapi/inference/inference/inference.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform inference on the service. // diff --git a/typedapi/inference/inference/request.go b/typedapi/inference/inference/request.go index 78d817a700..ba0f0a93f4 100644 --- a/typedapi/inference/inference/request.go +++ b/typedapi/inference/inference/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package inference @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/inference/InferenceRequest.ts#L26-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/inference/InferenceRequest.ts#L26-L91 type Request struct { // Input The text on which you want to perform the inference task. diff --git a/typedapi/inference/inference/response.go b/typedapi/inference/inference/response.go index 4d94e617d1..f96e95f235 100644 --- a/typedapi/inference/inference/response.go +++ b/typedapi/inference/inference/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package inference @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package inference // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/inference/InferenceResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/inference/InferenceResponse.ts#L22-L25 type Response struct { AdditionalInferenceResultProperty map[string]json.RawMessage `json:"-"` Completion []types.CompletionResult `json:"completion,omitempty"` diff --git a/typedapi/inference/put/put.go b/typedapi/inference/put/put.go index b75930cf0d..b9ab2cf2e8 100644 --- a/typedapi/inference/put/put.go +++ b/typedapi/inference/put/put.go @@ -16,18 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an inference endpoint. -// 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. // // IMPORTANT: The inference APIs enable you to use certain services, such as // built-in machine learning models (ELSER, E5), models uploaded through Eland, @@ -38,6 +29,27 @@ // 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. +// +// The following integrations are available through the inference API. You can +// find the available task types next to the integration name: +// * AlibabaCloud AI Search (`completion`, `rerank`, `sparse_embedding`, +// `text_embedding`) +// * Amazon Bedrock (`completion`, `text_embedding`) +// * Anthropic (`completion`) +// * Azure AI Studio (`completion`, `text_embedding`) +// * Azure OpenAI (`completion`, `text_embedding`) +// * Cohere (`completion`, `rerank`, `text_embedding`) +// * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this +// service is for built-in models and models uploaded through Eland) +// * ELSER (`sparse_embedding`) +// * Google AI Studio (`completion`, `text_embedding`) +// * Google Vertex AI (`rerank`, `text_embedding`) +// * Hugging Face (`text_embedding`) +// * Mistral (`text_embedding`) +// * OpenAI (`chat_completion`, `completion`, `text_embedding`) +// * VoyageAI (`text_embedding`, `rerank`) +// * Watsonx inference integration (`text_embedding`) +// * JinaAI (`text_embedding`, `rerank`) package put import ( @@ -104,15 +116,6 @@ func NewPutFunc(tp elastictransport.Interface) NewPut { } // Create an inference endpoint. -// 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. // // IMPORTANT: The inference APIs enable you to use certain services, such as // built-in machine learning models (ELSER, E5), models uploaded through Eland, @@ -124,6 +127,27 @@ func NewPutFunc(tp elastictransport.Interface) NewPut { // if you want to use non-NLP models, use the machine learning trained model // APIs. // +// The following integrations are available through the inference API. You can +// find the available task types next to the integration name: +// * AlibabaCloud AI Search (`completion`, `rerank`, `sparse_embedding`, +// `text_embedding`) +// * Amazon Bedrock (`completion`, `text_embedding`) +// * Anthropic (`completion`) +// * Azure AI Studio (`completion`, `text_embedding`) +// * Azure OpenAI (`completion`, `text_embedding`) +// * Cohere (`completion`, `rerank`, `text_embedding`) +// * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this +// service is for built-in models and models uploaded through Eland) +// * ELSER (`sparse_embedding`) +// * Google AI Studio (`completion`, `text_embedding`) +// * Google Vertex AI (`rerank`, `text_embedding`) +// * Hugging Face (`text_embedding`) +// * Mistral (`text_embedding`) +// * OpenAI (`chat_completion`, `completion`, `text_embedding`) +// * VoyageAI (`text_embedding`, `rerank`) +// * Watsonx inference integration (`text_embedding`) +// * JinaAI (`text_embedding`, `rerank`) +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put func New(tp elastictransport.Interface) *Put { r := &Put{ @@ -360,7 +384,8 @@ func (r *Put) Header(key, value string) *Put { return r } -// TaskType The task type +// TaskType The task type. Refer to the integration list in the API description for the +// available task types. // API Name: tasktype func (r *Put) TaskType(tasktype string) *Put { r.paramSet |= tasktypeMask @@ -378,6 +403,15 @@ func (r *Put) _inferenceid(inferenceid string) *Put { return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *Put) Timeout(duration string) *Put { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/put/request.go b/typedapi/inference/put/request.go index 2137a9211c..2a32c82230 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put/PutRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put/PutRequest.ts#L26-L86 type Request = types.InferenceEndpoint // NewRequest returns a Request diff --git a/typedapi/inference/put/response.go b/typedapi/inference/put/response.go index 27106d4b32..84b74d5de1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put/PutResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put/PutResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/putalibabacloud/put_alibabacloud.go b/typedapi/inference/putalibabacloud/put_alibabacloud.go index 57e9961fa3..018adf5d77 100644 --- a/typedapi/inference/putalibabacloud/put_alibabacloud.go +++ b/typedapi/inference/putalibabacloud/put_alibabacloud.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutAlibabacloudFunc(tp elastictransport.Interface) NewPutAlibabacloud { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-alibabacloud func New(tp elastictransport.Interface) *PutAlibabacloud { r := &PutAlibabacloud{ @@ -358,6 +338,15 @@ func (r *PutAlibabacloud) _alibabacloudinferenceid(alibabacloudinferenceid strin return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutAlibabacloud) Timeout(duration string) *PutAlibabacloud { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putalibabacloud/request.go b/typedapi/inference/putalibabacloud/request.go index 6fce1810a5..d42ec9b0c9 100644 --- a/typedapi/inference/putalibabacloud/request.go +++ b/typedapi/inference/putalibabacloud/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putalibabacloud @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putalibabacloud // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L30-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L31-L85 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putalibabacloud/response.go b/typedapi/inference/putalibabacloud/response.go index 6cf91506ab..5dec002d0a 100644 --- a/typedapi/inference/putalibabacloud/response.go +++ b/typedapi/inference/putalibabacloud/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putalibabacloud @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypealibabacloudai" ) // Response holds the response body struct for the package putalibabacloud // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypealibabacloudai.TaskTypeAlibabaCloudAI `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putamazonbedrock/put_amazonbedrock.go b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go index 6559a31fa7..1c1137bc43 100644 --- a/typedapi/inference/putamazonbedrock/put_amazonbedrock.go +++ b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an Amazon Bedrock inference endpoint. // -// Creates an inference endpoint to perform an inference task with the +// Create an inference endpoint to perform an inference task with the // `amazonbedrock` service. // // >info @@ -30,16 +30,6 @@ // 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 ( @@ -110,7 +100,7 @@ func NewPutAmazonbedrockFunc(tp elastictransport.Interface) NewPutAmazonbedrock // Create an Amazon Bedrock inference endpoint. // -// Creates an inference endpoint to perform an inference task with the +// Create an inference endpoint to perform an inference task with the // `amazonbedrock` service. // // >info @@ -121,16 +111,6 @@ func NewPutAmazonbedrockFunc(tp elastictransport.Interface) NewPutAmazonbedrock // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-amazonbedrock func New(tp elastictransport.Interface) *PutAmazonbedrock { r := &PutAmazonbedrock{ @@ -374,6 +354,15 @@ func (r *PutAmazonbedrock) _amazonbedrockinferenceid(amazonbedrockinferenceid st return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutAmazonbedrock) Timeout(duration string) *PutAmazonbedrock { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putamazonbedrock/request.go b/typedapi/inference/putamazonbedrock/request.go index d21fcce38a..dc35fabfec 100644 --- a/typedapi/inference/putamazonbedrock/request.go +++ b/typedapi/inference/putamazonbedrock/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putamazonbedrock @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putamazonbedrock // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L30-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L31-L88 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putamazonbedrock/response.go b/typedapi/inference/putamazonbedrock/response.go index d2be60a1b0..8d1d332798 100644 --- a/typedapi/inference/putamazonbedrock/response.go +++ b/typedapi/inference/putamazonbedrock/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putamazonbedrock @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeamazonbedrock" ) // Response holds the response body struct for the package putamazonbedrock // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeamazonbedrock.TaskTypeAmazonBedrock `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putanthropic/put_anthropic.go b/typedapi/inference/putanthropic/put_anthropic.go index fb78a99579..659bf495a9 100644 --- a/typedapi/inference/putanthropic/put_anthropic.go +++ b/typedapi/inference/putanthropic/put_anthropic.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutAnthropicFunc(tp elastictransport.Interface) NewPutAnthropic { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-anthropic func New(tp elastictransport.Interface) *PutAnthropic { r := &PutAnthropic{ @@ -359,6 +339,15 @@ func (r *PutAnthropic) _anthropicinferenceid(anthropicinferenceid string) *PutAn return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutAnthropic) Timeout(duration string) *PutAnthropic { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putanthropic/request.go b/typedapi/inference/putanthropic/request.go index 8bfc9cadda..9c4a99bcdc 100644 --- a/typedapi/inference/putanthropic/request.go +++ b/typedapi/inference/putanthropic/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putanthropic @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putanthropic // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_anthropic/PutAnthropicRequest.ts#L30-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_anthropic/PutAnthropicRequest.ts#L31-L86 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putanthropic/response.go b/typedapi/inference/putanthropic/response.go index 81977d333e..3c08182d47 100644 --- a/typedapi/inference/putanthropic/response.go +++ b/typedapi/inference/putanthropic/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putanthropic @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeanthropic" ) // Response holds the response body struct for the package putanthropic // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_anthropic/PutAnthropicResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_anthropic/PutAnthropicResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeanthropic.TaskTypeAnthropic `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putazureaistudio/put_azureaistudio.go b/typedapi/inference/putazureaistudio/put_azureaistudio.go index 6956a24245..d3973f83ee 100644 --- a/typedapi/inference/putazureaistudio/put_azureaistudio.go +++ b/typedapi/inference/putazureaistudio/put_azureaistudio.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutAzureaistudioFunc(tp elastictransport.Interface) NewPutAzureaistudio // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureaistudio func New(tp elastictransport.Interface) *PutAzureaistudio { r := &PutAzureaistudio{ @@ -358,6 +338,15 @@ func (r *PutAzureaistudio) _azureaistudioinferenceid(azureaistudioinferenceid st return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutAzureaistudio) Timeout(duration string) *PutAzureaistudio { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putazureaistudio/request.go b/typedapi/inference/putazureaistudio/request.go index e67defd04a..5aca47470a 100644 --- a/typedapi/inference/putazureaistudio/request.go +++ b/typedapi/inference/putazureaistudio/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putazureaistudio @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putazureaistudio // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L30-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L31-L85 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putazureaistudio/response.go b/typedapi/inference/putazureaistudio/response.go index bf07388832..95acd10054 100644 --- a/typedapi/inference/putazureaistudio/response.go +++ b/typedapi/inference/putazureaistudio/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putazureaistudio @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeazureaistudio" ) // Response holds the response body struct for the package putazureaistudio // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeazureaistudio.TaskTypeAzureAIStudio `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putazureopenai/put_azureopenai.go b/typedapi/inference/putazureopenai/put_azureopenai.go index 314bdd7ccb..6b3c1f0f00 100644 --- a/typedapi/inference/putazureopenai/put_azureopenai.go +++ b/typedapi/inference/putazureopenai/put_azureopenai.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an Azure OpenAI inference endpoint. // @@ -34,16 +34,6 @@ // 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 ( @@ -129,16 +119,6 @@ func NewPutAzureopenaiFunc(tp elastictransport.Interface) NewPutAzureopenai { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureopenai func New(tp elastictransport.Interface) *PutAzureopenai { r := &PutAzureopenai{ @@ -384,6 +364,15 @@ func (r *PutAzureopenai) _azureopenaiinferenceid(azureopenaiinferenceid string) return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutAzureopenai) Timeout(duration string) *PutAzureopenai { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putazureopenai/request.go b/typedapi/inference/putazureopenai/request.go index bacd36e42e..adaf150e49 100644 --- a/typedapi/inference/putazureopenai/request.go +++ b/typedapi/inference/putazureopenai/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putazureopenai @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putazureopenai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts#L30-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts#L31-L93 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putazureopenai/response.go b/typedapi/inference/putazureopenai/response.go index d48c925883..110bb16834 100644 --- a/typedapi/inference/putazureopenai/response.go +++ b/typedapi/inference/putazureopenai/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putazureopenai @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeazureopenai" ) // Response holds the response body struct for the package putazureopenai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeazureopenai.TaskTypeAzureOpenAI `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putcohere/put_cohere.go b/typedapi/inference/putcohere/put_cohere.go index e8898f9d2f..dc2875237f 100644 --- a/typedapi/inference/putcohere/put_cohere.go +++ b/typedapi/inference/putcohere/put_cohere.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutCohereFunc(tp elastictransport.Interface) NewPutCohere { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-cohere func New(tp elastictransport.Interface) *PutCohere { r := &PutCohere{ @@ -358,6 +338,15 @@ func (r *PutCohere) _cohereinferenceid(cohereinferenceid string) *PutCohere { return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutCohere) Timeout(duration string) *PutCohere { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putcohere/request.go b/typedapi/inference/putcohere/request.go index 2cf797f273..a0fd03dd0f 100644 --- a/typedapi/inference/putcohere/request.go +++ b/typedapi/inference/putcohere/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcohere @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putcohere // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_cohere/PutCohereRequest.ts#L30-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_cohere/PutCohereRequest.ts#L31-L86 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putcohere/response.go b/typedapi/inference/putcohere/response.go index 7d2e121eac..426ed4a023 100644 --- a/typedapi/inference/putcohere/response.go +++ b/typedapi/inference/putcohere/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcohere @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypecohere" ) // Response holds the response body struct for the package putcohere // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_cohere/PutCohereResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_cohere/PutCohereResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypecohere.TaskTypeCohere `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putelasticsearch/put_elasticsearch.go b/typedapi/inference/putelasticsearch/put_elasticsearch.go index 1e5a366a36..1157d7cef4 100644 --- a/typedapi/inference/putelasticsearch/put_elasticsearch.go +++ b/typedapi/inference/putelasticsearch/put_elasticsearch.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an Elasticsearch inference endpoint. // @@ -387,6 +387,15 @@ func (r *PutElasticsearch) _elasticsearchinferenceid(elasticsearchinferenceid st return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutElasticsearch) Timeout(duration string) *PutElasticsearch { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putelasticsearch/request.go b/typedapi/inference/putelasticsearch/request.go index 3431682c46..4b081088d7 100644 --- a/typedapi/inference/putelasticsearch/request.go +++ b/typedapi/inference/putelasticsearch/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putelasticsearch @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putelasticsearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts#L30-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts#L31-L99 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putelasticsearch/response.go b/typedapi/inference/putelasticsearch/response.go index cdfe49f450..7a7c8dc130 100644 --- a/typedapi/inference/putelasticsearch/response.go +++ b/typedapi/inference/putelasticsearch/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putelasticsearch @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeelasticsearch" ) // Response holds the response body struct for the package putelasticsearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeelasticsearch.TaskTypeElasticsearch `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putelser/put_elser.go b/typedapi/inference/putelser/put_elser.go index 5e99fb68a1..a477cf7a75 100644 --- a/typedapi/inference/putelser/put_elser.go +++ b/typedapi/inference/putelser/put_elser.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an ELSER inference endpoint. // @@ -386,6 +386,15 @@ func (r *PutElser) _elserinferenceid(elserinferenceid string) *PutElser { return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutElser) Timeout(duration string) *PutElser { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putelser/request.go b/typedapi/inference/putelser/request.go index de3f32183a..fb19c6fa03 100644 --- a/typedapi/inference/putelser/request.go +++ b/typedapi/inference/putelser/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putelser @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putelser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_elser/PutElserRequest.ts#L29-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_elser/PutElserRequest.ts#L30-L94 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putelser/response.go b/typedapi/inference/putelser/response.go index 6d7c519cb8..ef501d7d3c 100644 --- a/typedapi/inference/putelser/response.go +++ b/typedapi/inference/putelser/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putelser @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeelser" ) // Response holds the response body struct for the package putelser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_elser/PutElserResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_elser/PutElserResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeelser.TaskTypeELSER `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putgoogleaistudio/put_googleaistudio.go b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go index fcba4df82c..fe7ffe110c 100644 --- a/typedapi/inference/putgoogleaistudio/put_googleaistudio.go +++ b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutGoogleaistudioFunc(tp elastictransport.Interface) NewPutGoogleaistudi // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googleaistudio func New(tp elastictransport.Interface) *PutGoogleaistudio { r := &PutGoogleaistudio{ @@ -358,6 +338,15 @@ func (r *PutGoogleaistudio) _googleaistudioinferenceid(googleaistudioinferenceid return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutGoogleaistudio) Timeout(duration string) *PutGoogleaistudio { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putgoogleaistudio/request.go b/typedapi/inference/putgoogleaistudio/request.go index d0bc2e0ac9..b69e4da972 100644 --- a/typedapi/inference/putgoogleaistudio/request.go +++ b/typedapi/inference/putgoogleaistudio/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgoogleaistudio @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putgoogleaistudio // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L30-L79 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putgoogleaistudio/response.go b/typedapi/inference/putgoogleaistudio/response.go index 1658e43c18..0299be9cef 100644 --- a/typedapi/inference/putgoogleaistudio/response.go +++ b/typedapi/inference/putgoogleaistudio/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgoogleaistudio @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypegoogleaistudio" ) // Response holds the response body struct for the package putgoogleaistudio // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypegoogleaistudio.TaskTypeGoogleAIStudio `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putgooglevertexai/put_googlevertexai.go b/typedapi/inference/putgooglevertexai/put_googlevertexai.go index 57c3fc068a..ea061eccb5 100644 --- a/typedapi/inference/putgooglevertexai/put_googlevertexai.go +++ b/typedapi/inference/putgooglevertexai/put_googlevertexai.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutGooglevertexaiFunc(tp elastictransport.Interface) NewPutGooglevertexa // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googlevertexai func New(tp elastictransport.Interface) *PutGooglevertexai { r := &PutGooglevertexai{ @@ -358,6 +338,15 @@ func (r *PutGooglevertexai) _googlevertexaiinferenceid(googlevertexaiinferenceid return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutGooglevertexai) Timeout(duration string) *PutGooglevertexai { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putgooglevertexai/request.go b/typedapi/inference/putgooglevertexai/request.go index 6e4f704b0b..8e5d8bf4b4 100644 --- a/typedapi/inference/putgooglevertexai/request.go +++ b/typedapi/inference/putgooglevertexai/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgooglevertexai @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putgooglevertexai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L30-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L31-L85 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putgooglevertexai/response.go b/typedapi/inference/putgooglevertexai/response.go index 615fdd0b6b..c1d41af581 100644 --- a/typedapi/inference/putgooglevertexai/response.go +++ b/typedapi/inference/putgooglevertexai/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgooglevertexai @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypegooglevertexai" ) // Response holds the response body struct for the package putgooglevertexai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypegooglevertexai.TaskTypeGoogleVertexAI `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/puthuggingface/put_hugging_face.go b/typedapi/inference/puthuggingface/put_hugging_face.go index 667e86aab9..24ad3b594b 100644 --- a/typedapi/inference/puthuggingface/put_hugging_face.go +++ b/typedapi/inference/puthuggingface/put_hugging_face.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a Hugging Face inference endpoint. // @@ -40,16 +40,6 @@ // * `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 ( @@ -141,16 +131,6 @@ func NewPutHuggingFaceFunc(tp elastictransport.Interface) NewPutHuggingFace { // * `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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-hugging-face func New(tp elastictransport.Interface) *PutHuggingFace { r := &PutHuggingFace{ @@ -394,6 +374,15 @@ func (r *PutHuggingFace) _huggingfaceinferenceid(huggingfaceinferenceid string) return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutHuggingFace) Timeout(duration string) *PutHuggingFace { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/puthuggingface/request.go b/typedapi/inference/puthuggingface/request.go index bda9acefb4..ee4d33f5c3 100644 --- a/typedapi/inference/puthuggingface/request.go +++ b/typedapi/inference/puthuggingface/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puthuggingface @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package puthuggingface // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts#L29-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts#L30-L93 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/puthuggingface/response.go b/typedapi/inference/puthuggingface/response.go index aa2ee898c0..d78cfda7a7 100644 --- a/typedapi/inference/puthuggingface/response.go +++ b/typedapi/inference/puthuggingface/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puthuggingface @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypehuggingface" ) // Response holds the response body struct for the package puthuggingface // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypehuggingface.TaskTypeHuggingFace `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putjinaai/put_jinaai.go b/typedapi/inference/putjinaai/put_jinaai.go index a218df369a..718855bab2 100644 --- a/typedapi/inference/putjinaai/put_jinaai.go +++ b/typedapi/inference/putjinaai/put_jinaai.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an JinaAI inference endpoint. // @@ -26,16 +26,6 @@ // 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 ( @@ -113,16 +103,6 @@ func NewPutJinaaiFunc(tp elastictransport.Interface) NewPutJinaai { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-jinaai func New(tp elastictransport.Interface) *PutJinaai { r := &PutJinaai{ @@ -366,6 +346,15 @@ func (r *PutJinaai) _jinaaiinferenceid(jinaaiinferenceid string) *PutJinaai { return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutJinaai) Timeout(duration string) *PutJinaai { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putjinaai/request.go b/typedapi/inference/putjinaai/request.go index f9c5a14c3e..9ee1dce484 100644 --- a/typedapi/inference/putjinaai/request.go +++ b/typedapi/inference/putjinaai/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjinaai @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putjinaai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_jinaai/PutJinaAiRequest.ts#L30-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_jinaai/PutJinaAiRequest.ts#L31-L88 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putjinaai/response.go b/typedapi/inference/putjinaai/response.go index 6b5d65e3ea..5ef9b3840c 100644 --- a/typedapi/inference/putjinaai/response.go +++ b/typedapi/inference/putjinaai/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjinaai @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypejinaai" ) // Response holds the response body struct for the package putjinaai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_jinaai/PutJinaAiResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_jinaai/PutJinaAiResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypejinaai.TaskTypeJinaAi `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putmistral/put_mistral.go b/typedapi/inference/putmistral/put_mistral.go index 0fdc5c645f..7444f55808 100644 --- a/typedapi/inference/putmistral/put_mistral.go +++ b/typedapi/inference/putmistral/put_mistral.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ( @@ -105,16 +95,6 @@ func NewPutMistralFunc(tp elastictransport.Interface) NewPutMistral { // 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-mistral func New(tp elastictransport.Interface) *PutMistral { r := &PutMistral{ @@ -359,6 +339,15 @@ func (r *PutMistral) _mistralinferenceid(mistralinferenceid string) *PutMistral return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutMistral) Timeout(duration string) *PutMistral { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putmistral/request.go b/typedapi/inference/putmistral/request.go index db88b3b63a..67f434b1d4 100644 --- a/typedapi/inference/putmistral/request.go +++ b/typedapi/inference/putmistral/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putmistral @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putmistral // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_mistral/PutMistralRequest.ts#L29-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_mistral/PutMistralRequest.ts#L30-L80 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putmistral/response.go b/typedapi/inference/putmistral/response.go index 955b904f9d..6224bf6d82 100644 --- a/typedapi/inference/putmistral/response.go +++ b/typedapi/inference/putmistral/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putmistral @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypemistral" ) // Response holds the response body struct for the package putmistral // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_mistral/PutMistralResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_mistral/PutMistralResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypemistral.TaskTypeMistral `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putopenai/put_openai.go b/typedapi/inference/putopenai/put_openai.go index 6bb6502e7f..4acf0e43cd 100644 --- a/typedapi/inference/putopenai/put_openai.go +++ b/typedapi/inference/putopenai/put_openai.go @@ -16,22 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` -// 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. +// service or `openai` compatible APIs. package putopenai import ( @@ -103,17 +93,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. -// -// 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. +// service or `openai` compatible APIs. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-openai func New(tp elastictransport.Interface) *PutOpenai { @@ -360,6 +340,15 @@ func (r *PutOpenai) _openaiinferenceid(openaiinferenceid string) *PutOpenai { return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutOpenai) Timeout(duration string) *PutOpenai { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putopenai/request.go b/typedapi/inference/putopenai/request.go index db490be31e..2f116e7c10 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putopenai @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_openai/PutOpenAiRequest.ts#L30-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_openai/PutOpenAiRequest.ts#L31-L86 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putopenai/response.go b/typedapi/inference/putopenai/response.go index 519be67d61..50b95a72ee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putopenai @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypeopenai" ) // Response holds the response body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypeopenai.TaskTypeOpenAI `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putvoyageai/put_voyageai.go b/typedapi/inference/putvoyageai/put_voyageai.go index 770c67e4d7..a970f2ee27 100644 --- a/typedapi/inference/putvoyageai/put_voyageai.go +++ b/typedapi/inference/putvoyageai/put_voyageai.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a VoyageAI inference endpoint. // @@ -344,6 +344,15 @@ func (r *PutVoyageai) _voyageaiinferenceid(voyageaiinferenceid string) *PutVoyag return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutVoyageai) Timeout(duration string) *PutVoyageai { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putvoyageai/request.go b/typedapi/inference/putvoyageai/request.go index fddc44fa26..b051dfbf75 100644 --- a/typedapi/inference/putvoyageai/request.go +++ b/typedapi/inference/putvoyageai/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putvoyageai @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putvoyageai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_voyageai/PutVoyageAIRequest.ts#L30-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_voyageai/PutVoyageAIRequest.ts#L31-L87 type Request struct { // ChunkingSettings The chunking configuration object. diff --git a/typedapi/inference/putvoyageai/response.go b/typedapi/inference/putvoyageai/response.go index ebb55bac5b..356248ae8a 100644 --- a/typedapi/inference/putvoyageai/response.go +++ b/typedapi/inference/putvoyageai/response.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putvoyageai @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypevoyageai" ) // Response holds the response body struct for the package putvoyageai // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypevoyageai.TaskTypeVoyageAI `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/putwatsonx/put_watsonx.go b/typedapi/inference/putwatsonx/put_watsonx.go index 7c17ef50c8..805f03cdf4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a Watsonx inference endpoint. // @@ -26,16 +26,6 @@ // `watsonxai` inference service. // You can provision one through the IBM catalog, the Cloud Databases CLI // plug-in, the Cloud Databases API, or Terraform. -// -// 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 putwatsonx import ( @@ -113,16 +103,6 @@ func NewPutWatsonxFunc(tp elastictransport.Interface) NewPutWatsonx { // You can provision one through the IBM catalog, the Cloud Databases CLI // plug-in, the Cloud Databases API, or Terraform. // -// 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/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-watsonx func New(tp elastictransport.Interface) *PutWatsonx { r := &PutWatsonx{ @@ -367,6 +347,15 @@ func (r *PutWatsonx) _watsonxinferenceid(watsonxinferenceid string) *PutWatsonx return r } +// Timeout Specifies the amount of time to wait for the inference endpoint to be +// created. +// API name: timeout +func (r *PutWatsonx) Timeout(duration string) *PutWatsonx { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/putwatsonx/request.go b/typedapi/inference/putwatsonx/request.go index bedcbe65c6..75d4b54e21 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putwatsonx @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_watsonx/PutWatsonxRequest.ts#L28-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_watsonx/PutWatsonxRequest.ts#L29-L76 type Request struct { // Service The type of service supported for the specified task type. In this case, diff --git a/typedapi/inference/putwatsonx/response.go b/typedapi/inference/putwatsonx/response.go index 55ae895b0d..b25e4089ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putwatsonx @@ -24,12 +24,12 @@ import ( "encoding/json" "github.com/elastic/go-elasticsearch/v9/typedapi/types" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktypewatsonx" ) // Response holds the response body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object @@ -43,7 +43,7 @@ type Response struct { // 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"` + TaskType tasktypewatsonx.TaskTypeWatsonx `json:"task_type"` } // NewResponse returns a Response diff --git a/typedapi/inference/rerank/request.go b/typedapi/inference/rerank/request.go index 75922a5b55..7bc53a6eac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rerank @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/rerank/RerankRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2e8aed7c47..283df4bf63 100644 --- a/typedapi/inference/rerank/rerank.go +++ b/typedapi/inference/rerank/rerank.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Perform rereanking inference on the service +// Perform reranking inference on the service package rerank import ( @@ -81,7 +81,7 @@ func NewRerankFunc(tp elastictransport.Interface) NewRerank { } } -// Perform rereanking inference on the service +// Perform reranking inference on the service // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference func New(tp elastictransport.Interface) *Rerank { diff --git a/typedapi/inference/rerank/response.go b/typedapi/inference/rerank/response.go index 3af82c68ce..6f8e981cc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rerank @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/rerank/RerankResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/rerank/RerankResponse.ts#L22-L25 type Response []types.RankedDocument diff --git a/typedapi/inference/sparseembedding/request.go b/typedapi/inference/sparseembedding/request.go index 3b0f0b6b28..3802a0d57d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package sparseembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a503520b72..90f8ed408c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package sparseembedding @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L25 type Response []types.SparseEmbeddingResult diff --git a/typedapi/inference/sparseembedding/sparse_embedding.go b/typedapi/inference/sparseembedding/sparse_embedding.go index 733ddf67a9..ec4b23da11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform sparse embedding inference on the service package sparseembedding diff --git a/typedapi/inference/streamcompletion/request.go b/typedapi/inference/streamcompletion/request.go index acd297fd46..6645dea5be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package streamcompletion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/stream_completion/StreamInferenceRequest.ts#L24-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/stream_completion/StreamInferenceRequest.ts#L25-L71 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 9d1d6e1505..ba051dc0de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package streamcompletion // Response holds the response body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/stream_completion/StreamInferenceResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/stream_completion/StreamInferenceResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/inference/streamcompletion/stream_completion.go b/typedapi/inference/streamcompletion/stream_completion.go index 3a65153983..c1b5b6bac7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform streaming inference. // Get real-time responses for completion tasks by delivering answers @@ -347,6 +347,14 @@ func (r *StreamCompletion) _inferenceid(inferenceid string) *StreamCompletion { return r } +// Timeout The amount of time to wait for the inference request to complete. +// API name: timeout +func (r *StreamCompletion) Timeout(duration string) *StreamCompletion { + r.values.Set("timeout", duration) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/inference/textembedding/request.go b/typedapi/inference/textembedding/request.go index 0606134ab2..84b3b16425 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package textembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/text_embedding/TextEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bc1a484751..677f916fb2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package textembedding @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/text_embedding/TextEmbeddingResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/text_embedding/TextEmbeddingResponse.ts#L22-L25 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 62d501dd98..94d53cb404 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Perform text embedding inference on the service package textembedding diff --git a/typedapi/inference/update/request.go b/typedapi/inference/update/request.go index 4f1165473a..88ac6323e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package update @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/update/UpdateInferenceRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1a2d14a2d..be1ec5c5c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package update @@ -29,7 +29,7 @@ import ( // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/update/UpdateInferenceResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/update/UpdateInferenceResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/update/update.go b/typedapi/inference/update/update.go index 70c136d0a5..8da3a960f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update an inference endpoint. // diff --git a/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go b/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go index 41923da85e..5da6a274fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete GeoIP database configurations. // diff --git a/typedapi/ingest/deletegeoipdatabase/response.go b/typedapi/ingest/deletegeoipdatabase/response.go index e73160b4e4..2e545bfc52 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletegeoipdatabase // Response holds the response body struct for the package deletegeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L25 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 a54b55c04a..a5338b93fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete IP geolocation database configurations. package deleteiplocationdatabase diff --git a/typedapi/ingest/deleteiplocationdatabase/response.go b/typedapi/ingest/deleteiplocationdatabase/response.go index d6dcea2495..314e278f37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteiplocationdatabase // Response holds the response body struct for the package deleteiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L25 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 6812396e8c..1eb5b08dc1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete pipelines. // Delete one or more ingest pipelines. diff --git a/typedapi/ingest/deletepipeline/response.go b/typedapi/ingest/deletepipeline/response.go index 96ab2eff74..42f6311888 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletepipeline // Response holds the response body struct for the package deletepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L25 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 925f29431d..3a65ebfbd3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0fb9d6f976..d2a67cd59c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package geoipstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package geoipstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4f7388d554..68fc227faa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get GeoIP database configurations. // diff --git a/typedapi/ingest/getgeoipdatabase/response.go b/typedapi/ingest/getgeoipdatabase/response.go index 1779b6c65b..d22fcfbd0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getgeoipdatabase @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1617540b27..3a1c55c2d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get IP geolocation database configurations. package getiplocationdatabase @@ -310,17 +310,6 @@ func (r *GetIpLocationDatabase) Id(id string) *GetIpLocationDatabase { return r } -// MasterTimeout The 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. -// A value of `-1` indicates that the request should never time out. -// API name: master_timeout -func (r *GetIpLocationDatabase) MasterTimeout(duration string) *GetIpLocationDatabase { - r.values.Set("master_timeout", duration) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/ingest/getiplocationdatabase/response.go b/typedapi/ingest/getiplocationdatabase/response.go index 68c8ecb434..49866fa090 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getiplocationdatabase @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1cbbd83eb1..867795c5ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get pipelines. // diff --git a/typedapi/ingest/getpipeline/response.go b/typedapi/ingest/getpipeline/response.go index 2d4024275f..77b194839d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8328704faa..0e66a85043 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 980b006511..f740c8dd99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package processorgrok // Response holds the response body struct for the package processorgrok // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e920c8b533..e295234652 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a GeoIP database configuration. // diff --git a/typedapi/ingest/putgeoipdatabase/request.go b/typedapi/ingest/putgeoipdatabase/request.go index 913ff008a8..0bd50b2c0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgeoipdatabase @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aef6df3062..ede4bdc561 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putgeoipdatabase // Response holds the response body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L25 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 9988861f04..6027ea8402 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 f4f3eff9e4..ce60b7e633 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putiplocationdatabase @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 be0eb54173..81e9775e96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putiplocationdatabase // Response holds the response body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L25 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 6efc8dff1e..0e107765d6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 aea3e35970..d3aff0f9c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putpipeline @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8f7208f651..a01a17886a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putpipeline // Response holds the response body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L25 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 15023e07dd..a8a4ec8930 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package simulate @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d717fa1251..c24760016e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package simulate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1b5c8061a..92dd671273 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Simulate a pipeline. // diff --git a/typedapi/license/delete/delete.go b/typedapi/license/delete/delete.go index f00ebfcfd8..9b6d0de1b0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete the license. // diff --git a/typedapi/license/delete/response.go b/typedapi/license/delete/response.go index 116faefd45..776a52dcbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/delete/DeleteLicenseResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/license/delete/DeleteLicenseResponse.ts#L22-L25 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 d656e78533..e6ff2ce619 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get license information. // diff --git a/typedapi/license/get/response.go b/typedapi/license/get/response.go index 50d39448df..5826deb62f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/get/GetLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 43543d4b22..a99d060e68 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the basic license status. package getbasicstatus diff --git a/typedapi/license/getbasicstatus/response.go b/typedapi/license/getbasicstatus/response.go index ac17c30a02..52b0ce0d6e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getbasicstatus // Response holds the response body struct for the package getbasicstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e72806d4af..9f7745d3fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the trial status. package gettrialstatus diff --git a/typedapi/license/gettrialstatus/response.go b/typedapi/license/gettrialstatus/response.go index f00419d150..e60f21f175 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettrialstatus // Response holds the response body struct for the package gettrialstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3055ab0fc8..aefae381fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update the license. // diff --git a/typedapi/license/post/request.go b/typedapi/license/post/request.go index cffcb03f46..a71ced2477 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package post @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/post/PostLicenseRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d65ce5772c..658f75897f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package post @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/post/PostLicenseResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b2b559d9e7..a98c112332 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Start a basic license. // diff --git a/typedapi/license/poststartbasic/response.go b/typedapi/license/poststartbasic/response.go index 84fbb51dd9..07cf08f213 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package poststartbasic @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package poststartbasic // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fb4c731894..3774adf8ce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Start a trial. // Start a 30-day trial, which gives access to all subscription features. @@ -302,9 +302,10 @@ func (r *PostStartTrial) Acknowledge(acknowledge bool) *PostStartTrial { return r } -// API name: type_query_string -func (r *PostStartTrial) TypeQueryString(typequerystring string) *PostStartTrial { - r.values.Set("type_query_string", typequerystring) +// Type The type of trial license to generate (default: "trial") +// API name: type +func (r *PostStartTrial) Type(type_ string) *PostStartTrial { + r.values.Set("type", type_) return r } diff --git a/typedapi/license/poststarttrial/response.go b/typedapi/license/poststarttrial/response.go index 6b2defdc23..26f13f51f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package poststarttrial @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package poststarttrial // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a25db5e059..2d5ef6e001 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3b0c6bfecb..a3a2da7bbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 44f3696464..3006cf85d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getpipeline @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 981528d13b..3aa9c27ffb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a Logstash pipeline. // diff --git a/typedapi/logstash/putpipeline/request.go b/typedapi/logstash/putpipeline/request.go index 7e35c6cda5..dde8c1eb82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putpipeline @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bd5817b059..3d23c68653 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 f61313b9c3..1553cb1204 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deprecations @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deprecations // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1134f1173..1b9bdf633d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 506bd30463..1bdf6031fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getfeatureupgradestatus @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getfeatureupgradestatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 254b776f2a..2b24b6ca4a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 fbd427c948..c2c7bbe531 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postfeatureupgrade @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postfeatureupgrade // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a96875d4a7..0f250b1553 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear trained model deployment cache. // diff --git a/typedapi/ml/cleartrainedmodeldeploymentcache/response.go b/typedapi/ml/cleartrainedmodeldeploymentcache/response.go index a74a224745..40087960f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package cleartrainedmodeldeploymentcache // Response holds the response body struct for the package cleartrainedmodeldeploymentcache // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f99f26c7a8..261b0982ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Close anomaly detection jobs. // diff --git a/typedapi/ml/closejob/request.go b/typedapi/ml/closejob/request.go index 634475e823..5fb5d41e44 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package closejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/close_job/MlCloseJobRequest.ts#L24-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 670bbe23bd..19c3b0a7fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package closejob // Response holds the response body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 35ed8f8ee4..37399d111e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a calendar. // diff --git a/typedapi/ml/deletecalendar/response.go b/typedapi/ml/deletecalendar/response.go index 266ae3617e..cd52c2823a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletecalendar // Response holds the response body struct for the package deletecalendar // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L25 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 9fd8d70c7f..f912a80304 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete events from a calendar. package deletecalendarevent diff --git a/typedapi/ml/deletecalendarevent/response.go b/typedapi/ml/deletecalendarevent/response.go index 6778d3f281..c436538541 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletecalendarevent // Response holds the response body struct for the package deletecalendarevent // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L25 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 5fafa2289c..931111acba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete anomaly jobs from a calendar. package deletecalendarjob diff --git a/typedapi/ml/deletecalendarjob/response.go b/typedapi/ml/deletecalendarjob/response.go index efb41b8ee8..5f9986c823 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletecalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package deletecalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d54c7b579d..b15162d50d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a datafeed. package deletedatafeed diff --git a/typedapi/ml/deletedatafeed/response.go b/typedapi/ml/deletedatafeed/response.go index 2474e233af..28a1adc894 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletedatafeed // Response holds the response body struct for the package deletedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L25 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 f20f293922..f43ac4ebc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a data frame analytics job. package deletedataframeanalytics diff --git a/typedapi/ml/deletedataframeanalytics/response.go b/typedapi/ml/deletedataframeanalytics/response.go index a07dc69c50..459326ab54 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletedataframeanalytics // Response holds the response body struct for the package deletedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L25 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 593e4d56d3..75d9f45d5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete expired ML data. // diff --git a/typedapi/ml/deleteexpireddata/request.go b/typedapi/ml/deleteexpireddata/request.go index 99b2327de7..111b420a8b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteexpireddata @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3f681011a7..b763099b78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteexpireddata // Response holds the response body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d1ac312287..ef6887c6a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a filter. // diff --git a/typedapi/ml/deletefilter/response.go b/typedapi/ml/deletefilter/response.go index 89ceca8250..a8a7a03df3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletefilter // Response holds the response body struct for the package deletefilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L25 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 e0007a1cb5..05e67fbce4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete forecasts from a job. // diff --git a/typedapi/ml/deleteforecast/response.go b/typedapi/ml/deleteforecast/response.go index 0e014e2670..6bde08d1b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteforecast // Response holds the response body struct for the package deleteforecast // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L25 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 6942b06abd..5e54c6d56a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete an anomaly detection job. // diff --git a/typedapi/ml/deletejob/response.go b/typedapi/ml/deletejob/response.go index ddcec7075d..23c047fc4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletejob // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L25 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 033e5e6ab4..35867ad61c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a model snapshot. // diff --git a/typedapi/ml/deletemodelsnapshot/response.go b/typedapi/ml/deletemodelsnapshot/response.go index 4c229c2d1e..8efffb46c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletemodelsnapshot // Response holds the response body struct for the package deletemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L25 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 20d20f2b33..69a17e35b3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete an unreferenced trained model. // diff --git a/typedapi/ml/deletetrainedmodel/response.go b/typedapi/ml/deletetrainedmodel/response.go index 9d10be3c77..ef60147a5b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletetrainedmodel // Response holds the response body struct for the package deletetrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L25 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 1453fdf673..9d44f7dd2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a trained model alias. // diff --git a/typedapi/ml/deletetrainedmodelalias/response.go b/typedapi/ml/deletetrainedmodelalias/response.go index 3f40d26dc2..87ebfb42e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletetrainedmodelalias // Response holds the response body struct for the package deletetrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L25 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 05786757de..39b3eb48bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Estimate job model memory usage. // diff --git a/typedapi/ml/estimatemodelmemory/request.go b/typedapi/ml/estimatemodelmemory/request.go index f0b5178e37..9117372537 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package estimatemodelmemory @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 69cbee21fe..7aefd700cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package estimatemodelmemory // Response holds the response body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d61ec6483b..16ae35a25b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Evaluate data frame analytics. // diff --git a/typedapi/ml/evaluatedataframe/request.go b/typedapi/ml/evaluatedataframe/request.go index 75b8cbf691..ffc7e374a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package evaluatedataframe @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 035ff75824..f9d691d34b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package evaluatedataframe @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 97db965511..9368db2f2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Explain data frame analytics config. // diff --git a/typedapi/ml/explaindataframeanalytics/request.go b/typedapi/ml/explaindataframeanalytics/request.go index cbb6c86727..1d4081ceef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explaindataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4113a19f37..98cf2be6b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package explaindataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 546f225edd..1c3ee4d472 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0cef96a9d5..5c16f35a9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package flushjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 caabda48b9..7eff51dd59 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package flushjob // Response holds the response body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5f0e621271..8605a24e40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Predict future behavior of a time series. // diff --git a/typedapi/ml/forecast/request.go b/typedapi/ml/forecast/request.go index 62272eb7c5..bcf2b61175 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package forecast @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/forecast/MlForecastJobRequest.ts#L24-L95 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 798400fe31..492177740a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package forecast // Response holds the response body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e06054978f..d7111f3d7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 56e8084416..a65f4e9143 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L145 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7d93cf1504..a5bcd021bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ffc8023e77..238ea9f018 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get info about events in calendars. package getcalendarevents diff --git a/typedapi/ml/getcalendarevents/response.go b/typedapi/ml/getcalendarevents/response.go index 2397f2aa3c..b14515b6a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d4a9c1a430..5446dd838a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get calendar configuration info. package getcalendars diff --git a/typedapi/ml/getcalendars/request.go b/typedapi/ml/getcalendars/request.go index 3154d960a8..c507d586d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcalendars @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 08822e1783..bfbd4b8907 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcalendars @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 987aac13df..55b4f430b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get anomaly detection job results for categories. package getcategories diff --git a/typedapi/ml/getcategories/request.go b/typedapi/ml/getcategories/request.go index 3e51690998..25ba79329b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcategories @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 81336501fc..12f6226ab9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getcategories @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8375434bbc..400ffa451f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 498870072e..6c045e1483 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdatafeeds @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 61815e6927..040c8c0a89 100644 --- a/typedapi/ml/getdatafeedstats/get_datafeed_stats.go +++ b/typedapi/ml/getdatafeedstats/get_datafeed_stats.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Get datafeeds usage info. +// Get datafeed stats. // You can get statistics for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get statistics for all datafeeds by using `_all`, by specifying `*` as the @@ -80,7 +80,7 @@ func NewGetDatafeedStatsFunc(tp elastictransport.Interface) NewGetDatafeedStats } } -// Get datafeeds usage info. +// Get datafeed stats. // You can get statistics for multiple datafeeds in a single API request by // using a comma-separated list of datafeeds or a wildcard expression. You can // get statistics for all datafeeds by using `_all`, by specifying `*` as the diff --git a/typedapi/ml/getdatafeedstats/response.go b/typedapi/ml/getdatafeedstats/response.go index 948b0ea851..62b64490b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdatafeedstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdatafeedstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 45251d8c3d..68a0d44321 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 4c7c902f75..883c0b8eef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 da38b8ec2a..d257322302 100644 --- a/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go +++ b/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Get data frame analytics jobs usage info. +// Get data frame analytics job stats. package getdataframeanalyticsstats import ( @@ -74,7 +74,7 @@ func NewGetDataFrameAnalyticsStatsFunc(tp elastictransport.Interface) NewGetData } } -// Get data frame analytics jobs usage info. +// Get data frame analytics job stats. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics-stats func New(tp elastictransport.Interface) *GetDataFrameAnalyticsStats { diff --git a/typedapi/ml/getdataframeanalyticsstats/response.go b/typedapi/ml/getdataframeanalyticsstats/response.go index 289f304397..a8dc700211 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getdataframeanalyticsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getdataframeanalyticsstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bb22096edb..ebcae478c9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b0553f0426..4d8fdb4261 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getfilters @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getfilters // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 90a6aec0d0..f0e279cae0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a9309729c7..c32ab85206 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getinfluencers @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 776a20250b..39e58a8a6a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getinfluencers @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c2cc841334..f6e863e8b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6d9076acff..99ce65207b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bd77a372e5..bbd3e22a14 100644 --- a/typedapi/ml/getjobstats/get_job_stats.go +++ b/typedapi/ml/getjobstats/get_job_stats.go @@ -16,9 +16,9 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 -// Get anomaly detection jobs usage info. +// Get anomaly detection job stats. package getjobstats import ( @@ -74,7 +74,7 @@ func NewGetJobStatsFunc(tp elastictransport.Interface) NewGetJobStats { } } -// Get anomaly detection jobs usage info. +// Get anomaly detection job stats. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-job-stats func New(tp elastictransport.Interface) *GetJobStats { diff --git a/typedapi/ml/getjobstats/response.go b/typedapi/ml/getjobstats/response.go index e0cf59b2a1..b419725f16 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getjobstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4680cbeb9b..1380ef8f35 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 42d8da2e0a..fa06282cad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmemorystats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmemorystats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9317f83072..50f98b65b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get model snapshots info. package getmodelsnapshots diff --git a/typedapi/ml/getmodelsnapshots/request.go b/typedapi/ml/getmodelsnapshots/request.go index dd8f4a6321..22a72b688b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmodelsnapshots @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2c4dc73f5b..1ce8a0ca66 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmodelsnapshots @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3c68d9b590..e0541153d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 85001470f8..0f02da58e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getmodelsnapshotupgradestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getmodelsnapshotupgradestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0172dfd01b..162ccd6697 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get overall bucket results. // @@ -462,7 +462,7 @@ func (r *GetOverallBuckets) OverallScore(overallscore string) *GetOverallBuckets r.req = NewRequest() } - r.req.OverallScore = overallscore + r.req.OverallScore = &overallscore return r } diff --git a/typedapi/ml/getoverallbuckets/request.go b/typedapi/ml/getoverallbuckets/request.go index bd57231a57..d3f0872bbc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getoverallbuckets @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. @@ -45,7 +45,7 @@ type Request struct { // ExcludeInterim Refer to the description for the `exclude_interim` query parameter. ExcludeInterim *bool `json:"exclude_interim,omitempty"` // OverallScore Refer to the description for the `overall_score` query parameter. - OverallScore string `json:"overall_score,omitempty"` + OverallScore *string `json:"overall_score,omitempty"` // Start Refer to the description for the `start` query parameter. Start types.DateTime `json:"start,omitempty"` // TopN Refer to the description for the `top_n` query parameter. @@ -133,7 +133,7 @@ func (s *Request) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.OverallScore = o + s.OverallScore = &o case "start": if err := dec.Decode(&s.Start); err != nil { diff --git a/typedapi/ml/getoverallbuckets/response.go b/typedapi/ml/getoverallbuckets/response.go index c4bcda5bac..159b85154e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getoverallbuckets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 908ce3f9a7..c7c0c09dd6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3d26db045c..8cf9316b1a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrecords @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c9ba6d5980..6a839acb60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrecords @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1f23b69c80..ecfcd136b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get trained model configuration info. package gettrainedmodels diff --git a/typedapi/ml/gettrainedmodels/response.go b/typedapi/ml/gettrainedmodels/response.go index 225737d6da..1fba2bdafb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettrainedmodels @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 03fbc22bf0..7c269d29ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e357cf2e3f..fb357ba85c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettrainedmodelsstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettrainedmodelsstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 26181aa442..45081bfc36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Evaluate a trained model. package infertrainedmodel diff --git a/typedapi/ml/infertrainedmodel/request.go b/typedapi/ml/infertrainedmodel/request.go index 0f56011062..31e1a61162 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package infertrainedmodel @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67 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 874b0511c4..9b917cc65e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package infertrainedmodel @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 015b27d474..27917ab755 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b951dd5ad3..c29d16a408 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/MlInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 df3cf71f88..976528e8b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Open anomaly detection jobs. // diff --git a/typedapi/ml/openjob/request.go b/typedapi/ml/openjob/request.go index e4bfa1734a..c00d2270dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package openjob @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/open_job/MlOpenJobRequest.ts#L24-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 88ca01df13..28fa52ce14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package openjob // Response holds the response body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aee2360119..8ccb31a212 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Add scheduled events to the calendar. package postcalendarevents diff --git a/typedapi/ml/postcalendarevents/request.go b/typedapi/ml/postcalendarevents/request.go index 4f612b60ab..7bea69eb27 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postcalendarevents @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5069309aa3..fec218715c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postcalendarevents @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 15be9e5551..c7e46c3d6c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Send data to an anomaly detection job for analysis. // diff --git a/typedapi/ml/postdata/request.go b/typedapi/ml/postdata/request.go index 77b1ddca57..8f098464f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postdata @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L77 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/typedapi/ml/postdata/response.go b/typedapi/ml/postdata/response.go index 52cb48cdbd..dde543ac13 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postdata // Response holds the response body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/post_data/MlPostJobDataResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 293cf97eae..c8e8c07cbe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 fb6b0b77f9..255fb1216d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewdatafeed @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ef146d38a7..bbe2cad0c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0a4e5b5a7e..15e896e7c0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 9d1e96e93f..227305ad75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewdataframeanalytics @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7c2d81bbda..71471d17e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewdataframeanalytics // Response holds the response body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6c933427e2..ec05320029 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a calendar. package putcalendar diff --git a/typedapi/ml/putcalendar/request.go b/typedapi/ml/putcalendar/request.go index f23a529c9c..2153e0e1f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcalendar @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ed6ba7887f..d5eb583a49 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcalendar @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8a9f390d97..7a0541e1d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Add anomaly detection job to calendar. package putcalendarjob diff --git a/typedapi/ml/putcalendarjob/response.go b/typedapi/ml/putcalendarjob/response.go index dc19971bdd..01ba8caf31 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putcalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a288569b3d..d4c90af8ce 100644 --- a/typedapi/ml/putdatafeed/put_datafeed.go +++ b/typedapi/ml/putdatafeed/put_datafeed.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly // detection job. // You can associate only one datafeed with each anomaly detection job. // The datafeed contains a query that runs at a defined interval (`frequency`). -// If you are concerned about delayed data, you can add a delay (`query_delay') +// If you are concerned about delayed data, you can add a delay (`query_delay`) // at each interval. // By default, the datafeed uses the following query: `{"match_all": {"boost": // 1}}`. @@ -105,7 +105,7 @@ func NewPutDatafeedFunc(tp elastictransport.Interface) NewPutDatafeed { // detection job. // You can associate only one datafeed with each anomaly detection job. // The datafeed contains a query that runs at a defined interval (`frequency`). -// If you are concerned about delayed data, you can add a delay (`query_delay') +// If you are concerned about delayed data, you can add a delay (`query_delay`) // at each interval. // By default, the datafeed uses the following query: `{"match_all": {"boost": // 1}}`. diff --git a/typedapi/ml/putdatafeed/request.go b/typedapi/ml/putdatafeed/request.go index bdab7ecc5c..8ae93acb81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9b36778172..2f7335adb1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 331bd8ce10..6b7d2c28dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e21dcc5e35..9760eb3d3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdataframeanalytics @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 28b386e0b9..264ad0fccb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putdataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 13b8d30eb2..1206d7737f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6240c94b16..918db36473 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putfilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 791b97fe90..c9cb9e630f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putfilter // Response holds the response body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 374623677f..27987dfb78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an anomaly detection job. // @@ -339,16 +339,7 @@ func (r *PutJob) AllowNoIndices(allownoindices bool) *PutJob { // ExpandWildcards Type of index that wildcard patterns can match. If the request can target // data streams, this argument determines // whether wildcard expressions match hidden data streams. Supports -// comma-separated values. Valid values are: -// -// * `all`: Match any data stream or index, including hidden ones. -// * `closed`: Match closed, non-hidden indices. Also matches any non-hidden -// data stream. Data streams cannot be closed. -// * `hidden`: Match hidden data streams and hidden indices. Must be combined -// with `open`, `closed`, or both. -// * `none`: Wildcard patterns are not accepted. -// * `open`: Match open, non-hidden indices. Also matches any non-hidden data -// stream. +// comma-separated values. // API name: expand_wildcards func (r *PutJob) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *PutJob { tmp := []string{} diff --git a/typedapi/ml/putjob/request.go b/typedapi/ml/putjob/request.go index ed9147b882..cb309683d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_job/MlPutJobRequest.ts#L30-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_job/MlPutJobRequest.ts#L30-L151 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 9e656bb831..89ff42e148 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjob @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0b26d93749..52610f6d08 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 74a79cb30e..cd174aeebc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodel @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 cdae7d08c7..c9f3b84ff1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodel @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L25 type Response struct { CompressedDefinition *string `json:"compressed_definition,omitempty"` // CreateTime The time when the trained model was created. diff --git a/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go b/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go index 0f70e36519..4234f80387 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 dc09f22d30..7c5241dd1f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodelalias // Response holds the response body struct for the package puttrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L25 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 40ba76d5ae..2251147bcc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create part of a trained model definition. package puttrainedmodeldefinitionpart diff --git a/typedapi/ml/puttrainedmodeldefinitionpart/request.go b/typedapi/ml/puttrainedmodeldefinitionpart/request.go index 09ca57d55b..fdd9961944 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodeldefinitionpart @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b279456837..b0bb2d5666 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodeldefinitionpart // Response holds the response body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L25 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 ec70cbf90d..bd8c9a2e4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2f419a8247..26b88ef7f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodelvocabulary @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b645881aad..4f8e9835c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttrainedmodelvocabulary // Response holds the response body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L25 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 32d65eb487..6a80001abf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 cfa8cdd71b..e71aa2be41 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resetjob // Response holds the response body struct for the package resetjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/reset_job/MlResetJobResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/reset_job/MlResetJobResponse.ts#L22-L25 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 bf7aae9504..6a25fa6f75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package revertmodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9ce2b82180..158529ae73 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package revertmodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3f93b482d1..cf33d3e83e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 da1cd6ad5f..8a7c30b044 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package setupgrademode // Response holds the response body struct for the package setupgrademode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L25 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 356ce25cfc..0227124c9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ab81f37654..7059d7252d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package startdatafeed @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 95ea5b4ad3..2252b5f8dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package startdatafeed @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d243f3d213..8fb7e60469 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Start datafeeds. // diff --git a/typedapi/ml/startdataframeanalytics/response.go b/typedapi/ml/startdataframeanalytics/response.go index 0553af5789..e6e7c9ab3d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package startdataframeanalytics // Response holds the response body struct for the package startdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9e35eb09b9..c8c582e80d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0939e1324c..6787ac009b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package starttrainedmodeldeployment @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 adec71e46c..0b6a4dd683 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package starttrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e140d11057..54b2fe5dc6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ff6436fd42..477ada6c63 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stopdatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a40031f0d6..8b5e114e99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stopdatafeed // Response holds the response body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b2291157ce..fb958c4fc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e7fdb79d28..13c5c89bf4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stopdataframeanalytics // Response holds the response body struct for the package stopdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4a64b39410..2b6d76d3db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 14e355baad..badde1981d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stoptrainedmodeldeployment // Response holds the response body struct for the package stoptrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8ecf35fff1..3590cb370d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Stop a trained model deployment. package stoptrainedmodeldeployment diff --git a/typedapi/ml/updatedatafeed/request.go b/typedapi/ml/updatedatafeed/request.go index d8b7e7bf80..6a928201a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatedatafeed @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L164 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 414139d7e7..78499965e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatedatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8714452272..2873cbc600 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a datafeed. // You must stop and start the datafeed for the changes to be applied. @@ -344,16 +344,7 @@ func (r *UpdateDatafeed) AllowNoIndices(allownoindices bool) *UpdateDatafeed { // ExpandWildcards Type of index that wildcard patterns can match. If the request can target // data streams, this argument determines // whether wildcard expressions match hidden data streams. Supports -// comma-separated values. Valid values are: -// -// * `all`: Match any data stream or index, including hidden ones. -// * `closed`: Match closed, non-hidden indices. Also matches any non-hidden -// data stream. Data streams cannot be closed. -// * `hidden`: Match hidden data streams and hidden indices. Must be combined -// with `open`, `closed`, or both. -// * `none`: Wildcard patterns are not accepted. -// * `open`: Match open, non-hidden indices. Also matches any non-hidden data -// stream. +// comma-separated values. // API name: expand_wildcards func (r *UpdateDatafeed) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *UpdateDatafeed { tmp := []string{} diff --git a/typedapi/ml/updatedataframeanalytics/request.go b/typedapi/ml/updatedataframeanalytics/request.go index 4a52b422f5..2036ba24a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatedataframeanalytics @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 abf2ad11d8..d46bcad7a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatedataframeanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d938afb47b..d9b6f24751 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-data-frame-analytics +// https://www.elastic.co/docs/api/doc/elasticsearch/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 0927dd1cd4..3a4ad7f665 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a2274c771d..e81c3dfac3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatefilter // Response holds the response body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 538e9d2fc1..af6b54c275 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a010fec24f..da9f1ea9d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatejob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L147 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e45217e1a1..6c2f382a7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8a4c96fcb3..1971af07b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 aba53be626..2265a5c35a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatemodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 33539ab5da..708d59445f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatemodelsnapshot @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 487be337a1..420d22ab13 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a snapshot. // Updates certain properties of a snapshot. diff --git a/typedapi/ml/updatetrainedmodeldeployment/request.go b/typedapi/ml/updatetrainedmodeldeployment/request.go index c1252df9a5..7a3588be58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatetrainedmodeldeployment @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e3d004b951..a4612a36f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatetrainedmodeldeployment @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 41b4a10e4e..6a00acc7e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a trained model deployment. package updatetrainedmodeldeployment diff --git a/typedapi/ml/upgradejobsnapshot/response.go b/typedapi/ml/upgradejobsnapshot/response.go index 4071aaa2de..52e397710a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package upgradejobsnapshot // Response holds the response body struct for the package upgradejobsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3fda1e7238..a1847f2f49 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 93454df4be..140c8128b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/validate/MlValidateJobRequest.ts#L27-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2857ae31e7..1d9e4ca48b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validate // Response holds the response body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/validate/MlValidateJobResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/validate/MlValidateJobResponse.ts#L22-L25 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 51b23cab2c..ebc6545a1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Validate an anomaly detection job. package validate diff --git a/typedapi/ml/validatedetector/request.go b/typedapi/ml/validatedetector/request.go index 6bd56e25c3..7246c63f99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validatedetector @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9eb9bce86a..0d6793100a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package validatedetector // Response holds the response body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L25 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 ff397e59a0..ebc36cc267 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Validate an anomaly detection job. package validatedetector @@ -76,7 +76,7 @@ func NewValidateDetectorFunc(tp elastictransport.Interface) NewValidateDetector // Validate an anomaly detection job. // -// https://www.elastic.co/docs/api/doc/elasticsearch/v9/ +// https://www.elastic.co/docs/api/doc/elasticsearch func New(tp elastictransport.Interface) *ValidateDetector { r := &ValidateDetector{ transport: tp, diff --git a/typedapi/monitoring/bulk/bulk.go b/typedapi/monitoring/bulk/bulk.go index ea5734675e..8191628267 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Send monitoring data. // This API is used by the monitoring features to send monitoring data. @@ -83,7 +83,7 @@ func NewBulkFunc(tp elastictransport.Interface) NewBulk { // Send monitoring data. // This API is used by the monitoring features to send monitoring data. // -// https://www.elastic.co/docs/api/doc/elasticsearch/v9/ +// https://www.elastic.co/docs/api/doc/elasticsearch func New(tp elastictransport.Interface) *Bulk { r := &Bulk{ transport: tp, diff --git a/typedapi/monitoring/bulk/request.go b/typedapi/monitoring/bulk/request.go index 8e625f6aeb..d4ca76d88a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6d92ec9a89..72a6db431b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulk @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 014f22ba5d..2b5a6f584c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 4cf4458f3f..60ba682ad2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearrepositoriesmeteringarchive @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearrepositoriesmeteringarchive // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L40 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 7c6af8b26c..0f513f7917 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 d76b9b3090..c24236b954 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrepositoriesmeteringinfo @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrepositoriesmeteringinfo // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39 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 6eb0cea050..ee22e54ebb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e1546ff273..b60c06e671 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package hotthreads // Response holds the response body struct for the package hotthreads // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 da59089327..86c9cfcfa2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get node information. // diff --git a/typedapi/nodes/info/response.go b/typedapi/nodes/info/response.go index cb1e3fa9fb..c796cc5af9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/NodesInfoResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/NodesInfoResponse.ts#L30-L33 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 0811ecf531..6c0911a29a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Reload the keystore on nodes in the cluster. // diff --git a/typedapi/nodes/reloadsecuresettings/request.go b/typedapi/nodes/reloadsecuresettings/request.go index 91362a85d1..88a4a0fab1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reloadsecuresettings @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e7e695dc51..30d878e67f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package reloadsecuresettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L33 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 db2351f0b0..525c5f3a80 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/stats/NodesStatsResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/stats/NodesStatsResponse.ts#L30-L33 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 2e4a4b2621..9b7e8a20de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 bb41469b85..a3696d44a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/usage/NodesUsageResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/usage/NodesUsageResponse.ts#L30-L33 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 9a30f725ce..480bc7eff9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get feature usage information. package usage diff --git a/typedapi/profiling/flamegraph/flamegraph.go b/typedapi/profiling/flamegraph/flamegraph.go index a093add14d..9ee8d3d43c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 31a94cc0ba..9ac5f51353 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Extracts raw stacktrace information from Universal Profiling. package stacktraces diff --git a/typedapi/profiling/status/status.go b/typedapi/profiling/status/status.go index a30fae722d..2436fa5f17 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 906d4336c4..58fd705490 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 32a4ed418a..a6b1188184 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6635f10d07..667df1df12 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleterule // Response holds the response body struct for the package deleterule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L25 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 79b95e2737..cfdbbcfc7d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e01e008a9d..3a0543f735 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteruleset // Response holds the response body struct for the package deleteruleset // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L25 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 07492b0d84..6d664fe010 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6abd64bc12..4ba5400c6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L25 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 9c4ff67e98..2bfadbf757 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c4a2b421b5..7f0926a001 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getruleset // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L25 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 41e7c2526f..a3601db8d3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 971da4755d..bb46a6a562 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package listrulesets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package listrulesets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 406da96513..923bc38fe3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0b36a61a17..e97cdb88e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrule @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ee84f0489b..75748a5112 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrule @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 86c59005db..dcd6899ac7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e16c8ad8f9..b4047b8c29 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putruleset @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6e3f3b8edd..a48de35c1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putruleset @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4bbf85c3e1..900205f3fc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package test @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/test/QueryRulesetTestRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b0dcbbb94c..5adea9c601 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package test @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/test/QueryRulesetTestResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9730355161..d758d76234 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 58b9cdee47..0c4ebea8e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a rollup job. // diff --git a/typedapi/rollup/deletejob/response.go b/typedapi/rollup/deletejob/response.go index fcdf52d54a..48ebae9776 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletejob @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f598e3857d..aa403b6783 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a1664d61d3..4f8a1a0fee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getjobs @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2dac221f06..bd5ddb6804 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 232042de7d..d7dd6b4315 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrollupcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupcaps // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ce4a5ea1cb..9cbe81b367 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8bc9238595..fa4359ae8b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrollupindexcaps @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrollupindexcaps // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fbc6264237..6a4ff59987 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a rollup job. // diff --git a/typedapi/rollup/putjob/request.go b/typedapi/rollup/putjob/request.go index 30e3f11f5e..c0f7449736 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjob @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 01e47f943a..ba8ab94e83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putjob // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L25 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 6fd2bf4d83..ccb78dec7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rollupsearch @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L86 type Request struct { // Aggregations Specifies aggregations. diff --git a/typedapi/rollup/rollupsearch/response.go b/typedapi/rollup/rollupsearch/response.go index 9f35eec6ea..15e011b82a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package rollupsearch @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 72c7671e27..25147b02e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Search rolled-up data. // The rollup search endpoint is needed because, internally, rolled-up documents @@ -33,37 +33,9 @@ // `highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are // similarly disallowed. // -// **Searching both historical rollup and non-rollup data** -// -// The rollup search API has the capability to search across both "live" -// non-rollup data and the aggregated rollup data. -// This is done by simply adding the live indices to the URI. For example: -// -// ``` -// GET sensor-1,sensor_rollup/_rollup_search -// -// { -// "size": 0, -// "aggregations": { -// "max_temperature": { -// "max": { -// "field": "temperature" -// } -// } -// } -// } -// -// ``` -// -// The rollup search endpoint does two things when the search runs: -// -// * The original request is sent to the non-rollup index unaltered. -// * A rewritten version of the original request is sent to the rollup index. -// -// When the two responses are received, the endpoint rewrites the rollup -// response and merges the two together. -// During the merging process, if there is any overlap in buckets between the -// two responses, the buckets from the non-rollup index are used. +// For more detailed examples of using the rollup search API, including querying +// rolled-up data only or combining rolled-up and live data, refer to the +// External documentation. package rollupsearch import ( @@ -141,37 +113,9 @@ func NewRollupSearchFunc(tp elastictransport.Interface) NewRollupSearch { // `highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are // similarly disallowed. // -// **Searching both historical rollup and non-rollup data** -// -// The rollup search API has the capability to search across both "live" -// non-rollup data and the aggregated rollup data. -// This is done by simply adding the live indices to the URI. For example: -// -// ``` -// GET sensor-1,sensor_rollup/_rollup_search -// -// { -// "size": 0, -// "aggregations": { -// "max_temperature": { -// "max": { -// "field": "temperature" -// } -// } -// } -// } -// -// ``` -// -// The rollup search endpoint does two things when the search runs: -// -// * The original request is sent to the non-rollup index unaltered. -// * A rewritten version of the original request is sent to the rollup index. -// -// When the two responses are received, the endpoint rewrites the rollup -// response and merges the two together. -// During the merging process, if there is any overlap in buckets between the -// two responses, the buckets from the non-rollup index are used. +// For more detailed examples of using the rollup search API, including querying +// rolled-up data only or combining rolled-up and live data, refer to the +// External documentation. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rollup-rollup-search func New(tp elastictransport.Interface) *RollupSearch { diff --git a/typedapi/rollup/startjob/response.go b/typedapi/rollup/startjob/response.go index 0acbda36f3..9319a768db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package startjob // Response holds the response body struct for the package startjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b4335a8eae..9ef7b197d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b31de72e76..c458f8f24a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stopjob // Response holds the response body struct for the package stopjob // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 41729d0b70..49a73e5d11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 337a8f8770..952ec6322c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6b628782b4..9f83d65371 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package cachestats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cachestats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 261aef4375..7cc9c9620d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 981d8d3474..d011c585d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bd0f8d84c9..f9554c943f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 413444abf2..5045efd429 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mount @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8caa27eda6..712d0a268d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package mount @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3db117a098..dcbdd638ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6831f65ff3..22cef689d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get searchable snapshot statistics. package stats diff --git a/typedapi/searchapplication/delete/delete.go b/typedapi/searchapplication/delete/delete.go index 7c4a202026..084b823855 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a search application. // diff --git a/typedapi/searchapplication/delete/response.go b/typedapi/searchapplication/delete/response.go index fa91acc24b..c7a646e3bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L25 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 3caf2f41f6..df9a01b557 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 9b6e284fcf..8f93c4f4c2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletebehavioralanalytics // Response holds the response body struct for the package deletebehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L25 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 938971e97c..1ac8351e6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get search application details. package get diff --git a/typedapi/searchapplication/get/response.go b/typedapi/searchapplication/get/response.go index bd14318a18..7bb778459f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L25 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 ad05a7c48c..d96a98e1b7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get behavioral analytics collections. package getbehavioralanalytics diff --git a/typedapi/searchapplication/getbehavioralanalytics/response.go b/typedapi/searchapplication/getbehavioralanalytics/response.go index a6669cabd8..3922acc0f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getbehavioralanalytics @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8d976a4a7d..562e727dd6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get search applications. // Get information about search applications. diff --git a/typedapi/searchapplication/list/response.go b/typedapi/searchapplication/list/response.go index ef2f9958c9..81252fdb75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package list @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/list/SearchApplicationsListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0da608d4d9..2fd1eec545 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a behavioral analytics collection event. package postbehavioralanalyticsevent @@ -30,6 +30,7 @@ import ( "io" "net/http" "net/url" + "slices" "strconv" "strings" @@ -286,7 +287,8 @@ func (r PostBehavioralAnalyticsEvent) Do(providedCtx context.Context) (*Response } defer res.Body.Close() - if res.StatusCode < 299 { + if res.StatusCode < 299 || slices.Contains([]int{202, 400, 404}, res.StatusCode) { + err = json.NewDecoder(res.Body).Decode(response) if err != nil { if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { @@ -298,42 +300,6 @@ func (r PostBehavioralAnalyticsEvent) Do(providedCtx context.Context) (*Response return response, nil } - if res.StatusCode == 404 { - data, err := io.ReadAll(res.Body) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - errorResponse := types.NewElasticsearchError() - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&errorResponse) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - if errorResponse.Status == 0 { - err = json.NewDecoder(gobytes.NewReader(data)).Decode(&response) - if err != nil { - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, err) - } - return nil, err - } - - return response, nil - } - - if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { - instrument.RecordError(ctx, errorResponse) - } - return nil, errorResponse - } - errorResponse := types.NewElasticsearchError() err = json.NewDecoder(res.Body).Decode(errorResponse) if err != nil { diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/request.go b/typedapi/searchapplication/postbehavioralanalyticsevent/request.go index a50cfdd9d9..9cc182093c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L58 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/response.go b/typedapi/searchapplication/postbehavioralanalyticsevent/response.go index 68fc73efaa..6521dabb39 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 92d469d298..8c8303fdb2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a search application. package put diff --git a/typedapi/searchapplication/put/request.go b/typedapi/searchapplication/put/request.go index 370a5e4834..d6da638108 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6e717e8484..b34074199f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package put @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 22eff34bb4..d6540574ee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a behavioral analytics collection. package putbehavioralanalytics diff --git a/typedapi/searchapplication/putbehavioralanalytics/response.go b/typedapi/searchapplication/putbehavioralanalytics/response.go index e58ebdef2c..ffbe4bb5a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putbehavioralanalytics // Response holds the response body struct for the package putbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L26 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 68bbae5d34..5f907b50a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 9ba176dc6a..f5a8f12479 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package renderquery @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a98332790f..0844988b48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package renderquery // Response holds the response body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 550cce1ba8..3c2248147d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 140b8fc5b0..a49e4ace4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package search @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L25 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 21ef97dc7f..cb4910de96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6dbada0694..98829d57df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Activate a user profile. // diff --git a/typedapi/security/activateuserprofile/request.go b/typedapi/security/activateuserprofile/request.go index 1f12d0c90c..dec685acc9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package activateuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/activate_user_profile/Request.ts#L23-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4e5193e16f..3a5447a8dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package activateuserprofile @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/activate_user_profile/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/activate_user_profile/Response.ts#L22-L25 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 efa4eab8ca..7d3e559cd6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Authenticate a user. // diff --git a/typedapi/security/authenticate/response.go b/typedapi/security/authenticate/response.go index 9b17aa7b38..211fe97bc9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package authenticate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package authenticate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/authenticate/SecurityAuthenticateResponse.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 eeb2ebf774..2009644f05 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Bulk delete roles. // diff --git a/typedapi/security/bulkdeleterole/request.go b/typedapi/security/bulkdeleterole/request.go index 90e8c31390..eb3f046a6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkdeleterole @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5fd1e75714..eb19675da6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkdeleterole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ab49b9e904..592f264192 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Bulk create or update roles. // diff --git a/typedapi/security/bulkputrole/request.go b/typedapi/security/bulkputrole/request.go index 0de72af5ea..fa7d0b4082 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkputrole @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bdd3a609de..cf5d926165 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkputrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 02248e6a72..7e1a648422 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e15e7264eb..b3f5377930 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkupdateapikeys @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d87bdd4e20..cdfe30a5a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package bulkupdateapikeys @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6936c807d7..f117f0b9e0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Change passwords. // diff --git a/typedapi/security/changepassword/request.go b/typedapi/security/changepassword/request.go index b122463539..5afbae6ce9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package changepassword @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 946ab6b497..5008cfe7ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package changepassword // Response holds the response body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7770bdb222..43cafcaa10 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear the API key cache. // diff --git a/typedapi/security/clearapikeycache/response.go b/typedapi/security/clearapikeycache/response.go index 3d4f8e8c72..720c32c693 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearapikeycache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearapikeycache // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9793a3ae1d..ddb0fe984f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear the privileges cache. // diff --git a/typedapi/security/clearcachedprivileges/response.go b/typedapi/security/clearcachedprivileges/response.go index d26205c665..f2573ef4c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcachedprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 468acd6335..45c1f80852 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear the user cache. // diff --git a/typedapi/security/clearcachedrealms/response.go b/typedapi/security/clearcachedrealms/response.go index e970b02281..663cf6c632 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcachedrealms @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedrealms // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 40bb749b71..5bb7e5f794 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear the roles cache. // diff --git a/typedapi/security/clearcachedroles/response.go b/typedapi/security/clearcachedroles/response.go index a020f614e6..5322b22acf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcachedroles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedroles // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0c75f1c8f1..bf194e3d06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear service account token caches. // diff --git a/typedapi/security/clearcachedservicetokens/response.go b/typedapi/security/clearcachedservicetokens/response.go index 7998912bc9..7000ac3253 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcachedservicetokens @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcachedservicetokens // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2a09c3d397..7f0d35a9f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create an API key. // diff --git a/typedapi/security/createapikey/request.go b/typedapi/security/createapikey/request.go index 880f9395dc..fadd36a474 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 24a890133b..8d00cbaa20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createapikey // Response holds the response body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fce753db1e..10dc41b33c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a cross-cluster API key. // diff --git a/typedapi/security/createcrossclusterapikey/request.go b/typedapi/security/createcrossclusterapikey/request.go index 477f3f43b4..0b5f052b3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createcrossclusterapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ee632c83e8..01e26ffe44 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createcrossclusterapikey // Response holds the response body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 688106331f..ee7cabb4b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a service account token. // diff --git a/typedapi/security/createservicetoken/response.go b/typedapi/security/createservicetoken/response.go index 74f22c3420..00cab6cd86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createservicetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package createservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a184c99fd5..1f2dfa5c34 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delegate PKI authentication. // diff --git a/typedapi/security/delegatepki/request.go b/typedapi/security/delegatepki/request.go index b864310e68..e7fc1c00da 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delegatepki @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2faf7619bd..cb344a30f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delegatepki @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3f0c08c9c8..57b6a0bca7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete application privileges. // diff --git a/typedapi/security/deleteprivileges/response.go b/typedapi/security/deleteprivileges/response.go index ddf3c0e1e4..d9f2a766fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deleteprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 34db1cbce7..915b7abce1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete roles. // diff --git a/typedapi/security/deleterole/response.go b/typedapi/security/deleterole/response.go index fcb266b469..f133b0e108 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleterole // Response holds the response body struct for the package deleterole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d17ed4c1fd..31d282a458 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete role mappings. // diff --git a/typedapi/security/deleterolemapping/response.go b/typedapi/security/deleterolemapping/response.go index 73a69b2436..493d582812 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleterolemapping // Response holds the response body struct for the package deleterolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c8b714cd65..63a31380e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete service account tokens. // diff --git a/typedapi/security/deleteservicetoken/response.go b/typedapi/security/deleteservicetoken/response.go index 7830a99351..ee4d6c0884 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteservicetoken // Response holds the response body struct for the package deleteservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c10ad80fdd..8db7e8716e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete users. // diff --git a/typedapi/security/deleteuser/response.go b/typedapi/security/deleteuser/response.go index a7b01916a4..125404d608 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteuser // Response holds the response body struct for the package deleteuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ad9e794650..eb9985c6c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Disable users. // diff --git a/typedapi/security/disableuser/response.go b/typedapi/security/disableuser/response.go index ad829cb4b1..1fac74c259 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package disableuser // Response holds the response body struct for the package disableuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5870cfc2da..3b42bd90f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Disable a user profile. // diff --git a/typedapi/security/disableuserprofile/response.go b/typedapi/security/disableuserprofile/response.go index df6a37566f..953417a661 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package disableuserprofile // Response holds the response body struct for the package disableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/disable_user_profile/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/disable_user_profile/Response.ts#L22-L25 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 fdc907e50b..a7f2b5d840 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Enable users. // diff --git a/typedapi/security/enableuser/response.go b/typedapi/security/enableuser/response.go index abdd2fb6a2..9cc9d25bf6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package enableuser // Response holds the response body struct for the package enableuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 011c2c5f9b..39088c0030 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Enable a user profile. // diff --git a/typedapi/security/enableuserprofile/response.go b/typedapi/security/enableuserprofile/response.go index 7d1b3e9aab..a393c4f442 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package enableuserprofile // Response holds the response body struct for the package enableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/enable_user_profile/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/enable_user_profile/Response.ts#L22-L25 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 9cc53ab635..f638caa7fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Enroll Kibana. // diff --git a/typedapi/security/enrollkibana/response.go b/typedapi/security/enrollkibana/response.go index 9436047142..135122794c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package enrollkibana @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package enrollkibana // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/enroll_kibana/Response.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2a3fabf41c..e2ba911e0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Enroll a node. // diff --git a/typedapi/security/enrollnode/response.go b/typedapi/security/enrollnode/response.go index fcae45ed20..1317b597a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package enrollnode // Response holds the response body struct for the package enrollnode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/enroll_node/Response.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3eb04e6e86..3213b22e40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get API key information. // diff --git a/typedapi/security/getapikey/response.go b/typedapi/security/getapikey/response.go index dca156bdc8..9cca5dd622 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 97581c216f..c58e3b1981 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get builtin privileges. // diff --git a/typedapi/security/getbuiltinprivileges/response.go b/typedapi/security/getbuiltinprivileges/response.go index 89aa692541..d1f9aa5d45 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getbuiltinprivileges @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package getbuiltinprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bbc38a4364..a1ca506059 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get application privileges. // diff --git a/typedapi/security/getprivileges/response.go b/typedapi/security/getprivileges/response.go index 802fdf2cd9..272c7aeffa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bfa1c15e65..4a3ddcb315 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get roles. // diff --git a/typedapi/security/getrole/response.go b/typedapi/security/getrole/response.go index 88bc5ae87a..5b20d40c9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a052ba1a42..2e4679b067 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get role mappings. // diff --git a/typedapi/security/getrolemapping/response.go b/typedapi/security/getrolemapping/response.go index bc2b71c004..7151edcd58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5f7c3a9778..adb2863041 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get service accounts. // diff --git a/typedapi/security/getserviceaccounts/response.go b/typedapi/security/getserviceaccounts/response.go index 7c59ab7507..18c321f545 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getserviceaccounts @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getserviceaccounts // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3a7b31a955..028c501e04 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get service account credentials. // diff --git a/typedapi/security/getservicecredentials/response.go b/typedapi/security/getservicecredentials/response.go index d78e09a5f2..ec16498abd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getservicecredentials @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getservicecredentials // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4141398a74..ee6f479023 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get security index settings. // diff --git a/typedapi/security/getsettings/response.go b/typedapi/security/getsettings/response.go index ef69b486ed..d6ceb384f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_settings/SecurityGetSettingsResponse.ts#L21-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4e4fee866d..d18e21d69b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a token. // diff --git a/typedapi/security/gettoken/request.go b/typedapi/security/gettoken/request.go index 81856a0f95..2680ed6997 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettoken @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7640dc00bc..8c5a40b1cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4cde996cfe..29673f962f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get users. // diff --git a/typedapi/security/getuser/response.go b/typedapi/security/getuser/response.go index 1d88de2b6f..6809659c04 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_user/SecurityGetUserResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7c3d31d849..d718cd2f8d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get user privileges. // @@ -290,32 +290,6 @@ func (r *GetUserPrivileges) Header(key, value string) *GetUserPrivileges { return r } -// Application The name of the application. Application privileges are always associated -// with exactly one application. If you do not specify this parameter, the API -// returns information about all privileges for all applications. -// API name: application -func (r *GetUserPrivileges) Application(name string) *GetUserPrivileges { - r.values.Set("application", name) - - return r -} - -// Priviledge The name of the privilege. If you do not specify this parameter, the API -// returns information about all privileges for the requested application. -// API name: priviledge -func (r *GetUserPrivileges) Priviledge(name string) *GetUserPrivileges { - r.values.Set("priviledge", name) - - return r -} - -// API name: username -func (r *GetUserPrivileges) Username(username string) *GetUserPrivileges { - r.values.Set("username", username) - - 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/security/getuserprivileges/response.go b/typedapi/security/getuserprivileges/response.go index d05a09b254..5f177e9f67 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getuserprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 65757593ea..f7ff4d484c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a user profile. // diff --git a/typedapi/security/getuserprofile/response.go b/typedapi/security/getuserprofile/response.go index ca32d33311..2ce2c219d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_user_profile/Response.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c9b681b1ba..767d9d12d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Grant an API key. // @@ -67,6 +67,7 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" "github.com/elastic/go-elasticsearch/v9/typedapi/types" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/apikeygranttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -355,6 +356,18 @@ func (r *GrantApiKey) Header(key, value string) *GrantApiKey { return r } +// Refresh If 'true', Elasticsearch refreshes the affected shards to make this operation +// visible to search. +// If 'wait_for', it waits for a refresh to make this operation visible to +// search. +// If 'false', nothing is done with refreshes. +// API name: refresh +func (r *GrantApiKey) Refresh(refresh refresh.Refresh) *GrantApiKey { + r.values.Set("refresh", refresh.String()) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/security/grantapikey/request.go b/typedapi/security/grantapikey/request.go index 0c1be37102..27244a795a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package grantapikey @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L102 type Request struct { // AccessToken The user's access token. diff --git a/typedapi/security/grantapikey/response.go b/typedapi/security/grantapikey/response.go index a8aaf9adb2..114e275915 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package grantapikey // Response holds the response body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 023e135d25..f8d8ddb74c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check user privileges. // diff --git a/typedapi/security/hasprivileges/request.go b/typedapi/security/hasprivileges/request.go index 160ab949c5..a674385c19 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package hasprivileges @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c96dbd6019..86d93cbde1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package hasprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 63506a1104..b8e42864df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Check user profile privileges. // diff --git a/typedapi/security/hasprivilegesuserprofile/request.go b/typedapi/security/hasprivilegesuserprofile/request.go index f7b558ce63..766d5fdbf3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package hasprivilegesuserprofile @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges_user_profile/Request.ts#L24-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c0f30cc7f3..a3a588cb33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package hasprivilegesuserprofile @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges_user_profile/Response.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b48b17fe5d..4ce09142e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Invalidate API keys. // diff --git a/typedapi/security/invalidateapikey/request.go b/typedapi/security/invalidateapikey/request.go index 1941eb55c4..ef7742769d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package invalidateapikey @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1267b3fd77..39d11a0332 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package invalidateapikey @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f72e5b17f3..5e1b27d04b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Invalidate a token. // diff --git a/typedapi/security/invalidatetoken/request.go b/typedapi/security/invalidatetoken/request.go index efd57ed8e2..7be6226dd1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package invalidatetoken @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 db3e82c179..74c2910adf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package invalidatetoken @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2ced7dea9a..7d40307c68 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Authenticate OpenID Connect. // diff --git a/typedapi/security/oidcauthenticate/request.go b/typedapi/security/oidcauthenticate/request.go index fc2b58443e..26ee746491 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidcauthenticate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_authenticate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d6a07e7835..1a8dfee7b2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidcauthenticate // Response holds the response body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_authenticate/Response.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7b3995a4ad..8163793ebc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Logout of OpenID Connect. // diff --git a/typedapi/security/oidclogout/request.go b/typedapi/security/oidclogout/request.go index 2d30269184..5791641dfe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidclogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_logout/Request.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/oidc_logout/Request.ts#L22-L52 type Request struct { // RefreshToken The refresh token to be invalidated. diff --git a/typedapi/security/oidclogout/response.go b/typedapi/security/oidclogout/response.go index 378b1bbd34..a91cb86f5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidclogout // Response holds the response body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_logout/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f39134deb5..257024a2d2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Prepare OpenID connect authentication. // diff --git a/typedapi/security/oidcprepareauthentication/request.go b/typedapi/security/oidcprepareauthentication/request.go index 3038ffedd8..14fba42af6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidcprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_prepare_authentication/Request.ts#L22-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dfe60c8205..292b6c9bd1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package oidcprepareauthentication // Response holds the response body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/oidc_prepare_authentication/Response.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fc0e932bd4..7f8f2e8d4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update application privileges. // diff --git a/typedapi/security/putprivileges/request.go b/typedapi/security/putprivileges/request.go index ca3db401ce..c386508164 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putprivileges @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 48ab37762a..bf4b37a937 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putprivileges @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fbb9a831a7..85002fa7de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update roles. // diff --git a/typedapi/security/putrole/request.go b/typedapi/security/putrole/request.go index 28d8e851f7..3d26229704 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrole @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_role/SecurityPutRoleRequest.ts#L32-L111 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c15bc21165..147dad9f85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 28d2d32577..97f302b95f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update role mappings. // diff --git a/typedapi/security/putrolemapping/request.go b/typedapi/security/putrolemapping/request.go index 1eebde16b5..e3ddeb6b8f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrolemapping @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a194fe583f..d9b3691017 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putrolemapping @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 26929c4ffa..7f5d8cfd54 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update users. // diff --git a/typedapi/security/putuser/request.go b/typedapi/security/putuser/request.go index 0c0723c66c..7041345101 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_user/SecurityPutUserRequest.ts#L23-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a3d7b387db..b41ebd5377 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putuser // Response holds the response body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_user/SecurityPutUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f7eec78a69..2c917761dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Find API keys with a query. // @@ -30,6 +30,7 @@ // If you have the `read_security`, `manage_api_key`, or greater privileges // (including `manage_security`), this API returns all API keys regardless of // ownership. +// Refer to the linked documentation for examples of how to find API keys: package queryapikeys import ( @@ -96,6 +97,7 @@ func NewQueryApiKeysFunc(tp elastictransport.Interface) NewQueryApiKeys { // If you have the `read_security`, `manage_api_key`, or greater privileges // (including `manage_security`), this API returns all API keys regardless of // ownership. +// Refer to the linked documentation for examples of how to find API keys: // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-api-keys func New(tp elastictransport.Interface) *QueryApiKeys { diff --git a/typedapi/security/queryapikeys/request.go b/typedapi/security/queryapikeys/request.go index 3bc9be287c..66058e7ddc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryapikeys @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L126 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 7096875ce5..e99ffb23d3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryapikeys @@ -34,7 +34,7 @@ import ( // Response holds the response body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c49ef3f419..ea810732de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Find roles with a query. // diff --git a/typedapi/security/queryrole/request.go b/typedapi/security/queryrole/request.go index 52c9c82e0e..4c518e3b36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryrole @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_role/QueryRolesRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4ba1185ead..9a166b4454 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryrole @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_role/QueryRolesResponse.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 eb48c13fc9..fea715ac63 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Find users with a query. // diff --git a/typedapi/security/queryuser/request.go b/typedapi/security/queryuser/request.go index 22891b2818..1ffea6c51d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryuser @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8ad3056306..4b92bf4932 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package queryuser @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6ab319cbfb..751eb5b048 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlauthenticate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_authenticate/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d9940e77aa..eae31da0be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlauthenticate // Response holds the response body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_authenticate/Response.ts#L22-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e84981ce23..dcc4615dea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Authenticate SAML. // diff --git a/typedapi/security/samlcompletelogout/request.go b/typedapi/security/samlcompletelogout/request.go index 9508aed44a..8b6aabcd8c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlcompletelogout @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlcompletelogout // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_complete_logout/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c9cc8722bf..a0015e99f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Logout of SAML completely. // diff --git a/typedapi/security/samlinvalidate/request.go b/typedapi/security/samlinvalidate/request.go index 3334df498d..717f2d06bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlinvalidate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_invalidate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 cb50e98b30..fde671036e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlinvalidate // Response holds the response body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_invalidate/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 76e97db133..aee0a0cbaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Invalidate SAML. // diff --git a/typedapi/security/samllogout/request.go b/typedapi/security/samllogout/request.go index 0471805063..ff571d9204 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samllogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_logout/Request.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ba6152b7a7..9dbe539159 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samllogout // Response holds the response body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_logout/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9cc4751c84..0552ba109b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Logout of SAML. // diff --git a/typedapi/security/samlprepareauthentication/request.go b/typedapi/security/samlprepareauthentication/request.go index 54a35a3888..a16f42c751 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_prepare_authentication/Request.ts#L22-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2ab2b0b0a5..346c051208 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlprepareauthentication // Response holds the response body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_prepare_authentication/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f9bfce0db3..00a594ce39 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Prepare SAML authentication. // diff --git a/typedapi/security/samlserviceprovidermetadata/response.go b/typedapi/security/samlserviceprovidermetadata/response.go index 40700fa4ce..5368185cf5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package samlserviceprovidermetadata // Response holds the response body struct for the package samlserviceprovidermetadata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/saml_service_provider_metadata/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ab26a31acd..2c68bb4f0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create SAML service provider metadata. // diff --git a/typedapi/security/suggestuserprofiles/request.go b/typedapi/security/suggestuserprofiles/request.go index a411df8679..0883752cb3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package suggestuserprofiles @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/suggest_user_profiles/Request.ts#L24-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 98d2c436fa..fbb7636ea9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package suggestuserprofiles @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/suggest_user_profiles/Response.ts#L29-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3602f9f715..23c2207c91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Suggest a user profile. // diff --git a/typedapi/security/updateapikey/request.go b/typedapi/security/updateapikey/request.go index 344577f3b8..2dff43b8db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_api_key/Request.ts#L26-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 12ffa93420..cf67271a0d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateapikey // Response holds the response body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_api_key/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7a2464b417..3c8dff4005 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update an API key. // diff --git a/typedapi/security/updatecrossclusterapikey/request.go b/typedapi/security/updatecrossclusterapikey/request.go index aca9272563..20478a46e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatecrossclusterapikey @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L85 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 b522100b52..84b2f6cc28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatecrossclusterapikey // Response holds the response body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 82ce39d059..0e311a0c9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a cross-cluster API key. // @@ -43,6 +43,10 @@ // // NOTE: This API cannot update REST API keys, which should be updated by either // the update API key or bulk update API keys API. +// +// To learn more about how to use this API, refer to the [Update cross cluter +// API key API examples +// page](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-cc-api-key-examples). package updatecrossclusterapikey import ( @@ -131,6 +135,10 @@ func NewUpdateCrossClusterApiKeyFunc(tp elastictransport.Interface) NewUpdateCro // NOTE: This API cannot update REST API keys, which should be updated by either // the update API key or bulk update API keys API. // +// To learn more about how to use this API, refer to the [Update cross cluter +// API key API examples +// page](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-cc-api-key-examples). +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-cross-cluster-api-key func New(tp elastictransport.Interface) *UpdateCrossClusterApiKey { r := &UpdateCrossClusterApiKey{ diff --git a/typedapi/security/updatesettings/request.go b/typedapi/security/updatesettings/request.go index e873556e25..a2d63ad3fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatesettings @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7951c87321..c8f4bdda0a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6f8abe43f3..f8c007c6dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update security index settings. // diff --git a/typedapi/security/updateuserprofiledata/request.go b/typedapi/security/updateuserprofiledata/request.go index 27827c2498..63bb100ed3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateuserprofiledata @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_user_profile_data/Request.ts#L27-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8b95ccf5f8..afc82e7bef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updateuserprofiledata // Response holds the response body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/update_user_profile_data/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/update_user_profile_data/Response.ts#L22-L25 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 048ccb704e..687b7a0100 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update user profile data. // diff --git a/typedapi/shutdown/deletenode/delete_node.go b/typedapi/shutdown/deletenode/delete_node.go index 8cb0a65095..d6339b0472 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a328ba07eb..888f5c1ea5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletenode // Response holds the response body struct for the package deletenode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L25 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 aac015bc97..1b356951d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the shutdown status. // diff --git a/typedapi/shutdown/getnode/response.go b/typedapi/shutdown/getnode/response.go index 9204f4d700..b206bb56d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getnode @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getnode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 619a4dba9d..193efead50 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Prepare a node to be shut down. // diff --git a/typedapi/shutdown/putnode/request.go b/typedapi/shutdown/putnode/request.go index 2f9173c88d..a59e12468d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putnode @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f56aff9b98..802154e056 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putnode // Response holds the response body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L25 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 3b458b2373..87a6fdcaf9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 78129ac70f..3b96ff376f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package ingest @@ -29,7 +29,7 @@ import ( // Request holds the request body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/simulate/ingest/SimulateIngestRequest.ts#L29-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8af2358ac3..9c77f96424 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package ingest @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/simulate/ingest/SimulateIngestResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9ee3ff4393..51fe805093 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a policy. // Delete a snapshot lifecycle policy definition. diff --git a/typedapi/slm/deletelifecycle/response.go b/typedapi/slm/deletelifecycle/response.go index 467c0c8766..c282ca4e3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L25 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 507a3f55e1..439f156e28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 57b94180b8..789e5294ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package executelifecycle // Response holds the response body struct for the package executelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 47454e727c..d76eef3820 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0d77a02c8d..82af9b661e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package executeretention // Response holds the response body struct for the package executeretention // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L25 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 d2fad0afb9..9052bd3196 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 8805d7d6c4..41aebfe80e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getlifecycle @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c646c455c3..e7ca4fac99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 7fb255adea..9a40fdf661 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getstats @@ -26,18 +26,18 @@ import ( // Response holds the response body struct for the package getstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L24-L37 type Response struct { - PolicyStats []string `json:"policy_stats"` - RetentionDeletionTime types.Duration `json:"retention_deletion_time"` - RetentionDeletionTimeMillis int64 `json:"retention_deletion_time_millis"` - RetentionFailed int64 `json:"retention_failed"` - RetentionRuns int64 `json:"retention_runs"` - RetentionTimedOut int64 `json:"retention_timed_out"` - TotalSnapshotDeletionFailures int64 `json:"total_snapshot_deletion_failures"` - TotalSnapshotsDeleted int64 `json:"total_snapshots_deleted"` - TotalSnapshotsFailed int64 `json:"total_snapshots_failed"` - TotalSnapshotsTaken int64 `json:"total_snapshots_taken"` + PolicyStats []types.SnapshotPolicyStats `json:"policy_stats"` + RetentionDeletionTime types.Duration `json:"retention_deletion_time"` + RetentionDeletionTimeMillis int64 `json:"retention_deletion_time_millis"` + RetentionFailed int64 `json:"retention_failed"` + RetentionRuns int64 `json:"retention_runs"` + RetentionTimedOut int64 `json:"retention_timed_out"` + TotalSnapshotDeletionFailures int64 `json:"total_snapshot_deletion_failures"` + TotalSnapshotsDeleted int64 `json:"total_snapshots_deleted"` + TotalSnapshotsFailed int64 `json:"total_snapshots_failed"` + TotalSnapshotsTaken int64 `json:"total_snapshots_taken"` } // NewResponse returns a Response diff --git a/typedapi/slm/getstatus/get_status.go b/typedapi/slm/getstatus/get_status.go index b952dc74a1..80b3539070 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get the snapshot lifecycle management status. package getstatus diff --git a/typedapi/slm/getstatus/response.go b/typedapi/slm/getstatus/response.go index d27f5ecf97..2f9e669359 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getstatus @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 78cc0ff190..f09b5dd2b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 c1d3e06332..0a9c0c841e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putlifecycle @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6ccf0ac939..d6f9e45fd9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L25 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 b7c1d27601..2fe57c56a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L25 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 70b0388598..e8ede41ee5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b345dedb1b..a4f403bd6c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L25 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 f2690494f3..27aab71499 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 524ae95eed..e730b4a7fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 ac2084eceb..f75a878d39 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package cleanuprepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package cleanuprepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b05961ec57..4846a888f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 caef6c22ad..43d8213aaa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clone @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L70 type Request struct { // Indices A comma-separated list of indices to include in the snapshot. diff --git a/typedapi/snapshot/clone/response.go b/typedapi/snapshot/clone/response.go index 945b34e8d3..0c0fc8bf63 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L25 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 83520c158f..5138498240 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 15d12ba58f..c3254c24a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create @@ -34,7 +34,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L126 type Request struct { // ExpandWildcards Determines how wildcard patterns in the `indices` parameter match data diff --git a/typedapi/snapshot/create/response.go b/typedapi/snapshot/create/response.go index 9047ae8d96..d1d06d9fbe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package create @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2b17d1a6ec..394a3b5fe2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a070738e9e..1a0cce8cba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createrepository @@ -26,5 +26,5 @@ import ( // Request holds the request body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79 type Request = types.Repository diff --git a/typedapi/snapshot/createrepository/response.go b/typedapi/snapshot/createrepository/response.go index f2c06c47f4..a039da1a99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package createrepository // Response holds the response body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L25 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 e849c46dbc..869905d316 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete snapshots. package delete @@ -329,6 +329,17 @@ func (r *Delete) MasterTimeout(duration string) *Delete { return r } +// WaitForCompletion If `true`, the request returns a response when the matching snapshots are all +// deleted. +// If `false`, the request returns a response as soon as the deletes are +// scheduled. +// API name: wait_for_completion +func (r *Delete) WaitForCompletion(waitforcompletion bool) *Delete { + r.values.Set("wait_for_completion", strconv.FormatBool(waitforcompletion)) + + 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/snapshot/delete/response.go b/typedapi/snapshot/delete/response.go index 312e206068..77f02a838b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L25 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 7ff67092f4..a8c66def00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 d77b8534a3..14a68cfb86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleterepository // Response holds the response body struct for the package deleterepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L25 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 375b99d6e2..b0596fe977 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get snapshot information. // diff --git a/typedapi/snapshot/get/response.go b/typedapi/snapshot/get/response.go index 42c76083b5..c56aea963e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/get/SnapshotGetResponse.ts#L25-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/get/SnapshotGetResponse.ts#L25-L47 type Response struct { // Next If the request contained a size limit and there might be more results, a diff --git a/typedapi/snapshot/getrepository/get_repository.go b/typedapi/snapshot/getrepository/get_repository.go index 6b79e45ba9..2109269cab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get snapshot repository information. package getrepository diff --git a/typedapi/snapshot/getrepository/response.go b/typedapi/snapshot/getrepository/response.go index bb76207a55..c67fe49345 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getrepository @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package getrepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L26 type Response map[string]types.Repository diff --git a/typedapi/snapshot/repositoryanalyze/repository_analyze.go b/typedapi/snapshot/repositoryanalyze/repository_analyze.go index 545124cfdf..c70ae5065b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0a32180e9b..74aa0f7206 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package repositoryanalyze @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositoryanalyze // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 99fd0056d5..cb21a54288 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 d739b04274..f657c81fe7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package repositoryverifyintegrity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositoryverifyintegrity // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L25 type Response = json.RawMessage diff --git a/typedapi/snapshot/restore/request.go b/typedapi/snapshot/restore/request.go index 7c0a137451..6eebd7e77f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package restore @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L175 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L175 type Request struct { // FeatureStates The feature states to restore. diff --git a/typedapi/snapshot/restore/response.go b/typedapi/snapshot/restore/response.go index a3621d5c72..7e427d32a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package restore @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b96c355074..64e0023aa8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 47129592c8..de9451ec12 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package status @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1d37797115..00b06658ee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 b54e851204..d6fdf58cb4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package verifyrepository @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package verifyrepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31 type Response struct { // Nodes Information about the nodes connected to the snapshot repository. diff --git a/typedapi/snapshot/verifyrepository/verify_repository.go b/typedapi/snapshot/verifyrepository/verify_repository.go index f20b0a9ad2..0aad6f9035 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0c73f61d25..0ac0185497 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Clear an SQL search cursor. package clearcursor diff --git a/typedapi/sql/clearcursor/request.go b/typedapi/sql/clearcursor/request.go index a5eafb6b58..c3cfe96820 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcursor @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f238c5dbac..a6d6911b78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package clearcursor // Response holds the response body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b9dd0a31fa..702cb440e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2793159368..64bcbf861d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deleteasync // Response holds the response body struct for the package deleteasync // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L25 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 fe7321be0a..14dc25a4c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 7db566324a..f6c3d113a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getasync @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package getasync // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 312ed039ed..cce7ae1ea7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 6fb42f6d79..e2a3ab6d96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getasyncstatus // Response holds the response body struct for the package getasyncstatus // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 aed824d2b6..3c46d5d1c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get SQL search results. // Run an SQL request. @@ -510,31 +510,16 @@ func (r *Query) PageTimeout(duration types.DurationVariant) *Query { // The values for parameters in the query. // API name: params -func (r *Query) Params(params map[string]json.RawMessage) *Query { +func (r *Query) Params(params ...json.RawMessage) *Query { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.Params = params - return r -} + for _, v := range params { -func (r *Query) AddParam(key string, value json.RawMessage) *Query { - // Initialize the request if it is not already initialized - if r.req == nil { - r.req = NewRequest() - } + r.req.Params = append(r.req.Params, v) - var tmp map[string]json.RawMessage - if r.req.Params == nil { - r.req.Params = make(map[string]json.RawMessage) - } else { - tmp = r.req.Params } - - tmp[key] = value - - r.req.Params = tmp return r } diff --git a/typedapi/sql/query/request.go b/typedapi/sql/query/request.go index 3f57b5b7ed..e557fd7d90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package query @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/query/QuerySqlRequest.ts#L28-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/sql/query/QuerySqlRequest.ts#L27-L151 type Request struct { // AllowPartialSearchResults If `true`, the response has partial results when there are shard request @@ -78,7 +78,7 @@ type Request struct { // duration of `page_timeout` in the scroll request. PageTimeout types.Duration `json:"page_timeout,omitempty"` // Params The values for parameters in the query. - Params map[string]json.RawMessage `json:"params,omitempty"` + Params []json.RawMessage `json:"params,omitempty"` // Query The SQL query to run. Query *string `json:"query,omitempty"` // RequestTimeout The timeout before the request fails. @@ -100,9 +100,7 @@ type Request struct { // NewRequest returns a Request func NewRequest() *Request { - r := &Request{ - Params: make(map[string]json.RawMessage, 0), - } + r := &Request{} return r } @@ -259,9 +257,6 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "params": - if s.Params == nil { - s.Params = make(map[string]json.RawMessage, 0) - } if err := dec.Decode(&s.Params); err != nil { return fmt.Errorf("%s | %w", "Params", err) } diff --git a/typedapi/sql/query/response.go b/typedapi/sql/query/response.go index 6ad0f8bc52..d8a562d121 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package query @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/query/QuerySqlResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8ca9308552..531b660be7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package translate @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/translate/TranslateSqlRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0220386b32..264a5ae226 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package translate @@ -33,7 +33,7 @@ import ( // Response holds the response body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/translate/TranslateSqlResponse.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e8b63b8bc8..60a9a2e272 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3725b8bc21..fe9a893ac3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get SSL certificates. // diff --git a/typedapi/ssl/certificates/response.go b/typedapi/ssl/certificates/response.go index 5127969c54..a9084a4b4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package certificates @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package certificates // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L25 type Response []types.CertificateInformation diff --git a/typedapi/synonyms/deletesynonym/delete_synonym.go b/typedapi/synonyms/deletesynonym/delete_synonym.go index a1e77b7720..88e7488f33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a synonym set. // diff --git a/typedapi/synonyms/deletesynonym/response.go b/typedapi/synonyms/deletesynonym/response.go index 3f508983f7..e3568970d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletesynonym // Response holds the response body struct for the package deletesynonym // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L25 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 9ababd3e25..fe47e2abe8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 cdff801aaf..844ff0f950 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletesynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package deletesynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L25 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 ca322e09b8..a76bc8096a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a synonym set. package getsynonym diff --git a/typedapi/synonyms/getsynonym/response.go b/typedapi/synonyms/getsynonym/response.go index 8473ebab58..b458044a13 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsynonym @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4e44519b0f..3ee51087e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 a4c908453c..decaf3aa1e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsynonymrule // Response holds the response body struct for the package getsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L25 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 29244c073f..b5b367262d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 f07e6b768a..4d78225df6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsynonymssets @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsynonymssets // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b640092513..7d66df7268 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a synonym set. // Synonyms sets are limited to a maximum of 10,000 synonym rules per set. @@ -27,6 +27,9 @@ // synonyms set are reloaded automatically for all indices. // This is equivalent to invoking the reload search analyzers API for all // indices that use the synonyms set. +// +// For practical examples of how to create or update a synonyms set, refer to +// the External documentation. package putsynonym import ( @@ -99,6 +102,9 @@ func NewPutSynonymFunc(tp elastictransport.Interface) NewPutSynonym { // This is equivalent to invoking the reload search analyzers API for all // indices that use the synonyms set. // +// For practical examples of how to create or update a synonyms set, refer to +// the External documentation. +// // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-put-synonym func New(tp elastictransport.Interface) *PutSynonym { r := &PutSynonym{ diff --git a/typedapi/synonyms/putsynonym/request.go b/typedapi/synonyms/putsynonym/request.go index 568c8c85d1..699a08abb9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsynonym @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L58 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 5deff327c9..72ccd2f988 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsynonym @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2c9ed20c2e..3a8b6d8612 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 1b7e84ef55..54694a96f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsynonymrule @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2feb2fb5f0..9be1d2743b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putsynonymrule @@ -27,7 +27,7 @@ import ( // Response holds the response body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L25 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 75e3ddc2f7..be90fb49e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Cancel a task. // diff --git a/typedapi/tasks/cancel/response.go b/typedapi/tasks/cancel/response.go index dd56cb929c..9859f010d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package cancel @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package cancel // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/cancel/CancelTasksResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/cancel/CancelTasksResponse.ts#L22-L25 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 ff6f6bfd34..8f167906a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 0ed90c5d13..0ffde8a156 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package get @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/get/GetTaskResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1eb9adb503..45d573b299 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 24e51fda73..37dd59bc95 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package list @@ -32,7 +32,7 @@ import ( // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/list/ListTasksResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/list/ListTasksResponse.ts#L22-L25 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 c9621cf226..d7a41a120b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 bcb54f800c..99f74d6b5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package findfieldstructure @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package findfieldstructure // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 03b9f12a69..c86fc48501 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 3bed6dfa0c..df434e6d65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package findmessagestructure @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 77b335e988..ebc382cec9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package findmessagestructure @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e52b5a6475..8037b9c560 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 7a299ade43..1b53d3d72c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package findstructure @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L207 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L208 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/typedapi/textstructure/findstructure/response.go b/typedapi/textstructure/findstructure/response.go index 2ea18bef04..a464dddf5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package findstructure @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3ade51943d..7be48030d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package testgrokpattern @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5c83406512..8cda9e79ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package testgrokpattern @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 42a6ccc4f2..273a2c800d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 00645ca8e4..517d5ce916 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a transform. package deletetransform diff --git a/typedapi/transform/deletetransform/response.go b/typedapi/transform/deletetransform/response.go index a8a7ec98b7..a47624e88f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletetransform // Response holds the response body struct for the package deletetransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L25 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 68b372412f..31dbe75e4d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 2bea0ba5ea..2fff004c70 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get transforms. // Get configuration information for transforms. diff --git a/typedapi/transform/gettransform/response.go b/typedapi/transform/gettransform/response.go index e833f109ec..059fc300e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7313dceece..ce0f4ebfeb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get transform stats. // diff --git a/typedapi/transform/gettransformstats/response.go b/typedapi/transform/gettransformstats/response.go index b98a6b1cc0..376d48d6fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package gettransformstats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package gettransformstats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 38bbd48cdd..cdbfea166a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // 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 e60b39020f..8d222e6ecc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewtransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2afba8dc8b..84794e1b63 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package previewtransform @@ -28,7 +28,7 @@ import ( // Response holds the response body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fbdb38fdb8..93d0191168 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create a transform. // Creates a transform. diff --git a/typedapi/transform/puttransform/request.go b/typedapi/transform/puttransform/request.go index 8c1086e603..0aac8504e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/put_transform/PutTransformRequest.ts#L33-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 29d9de660e..194a475c14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package puttransform // Response holds the response body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/put_transform/PutTransformResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/put_transform/PutTransformResponse.ts#L22-L25 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 b87a2206f0..271f1ee414 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Reset a transform. // diff --git a/typedapi/transform/resettransform/response.go b/typedapi/transform/resettransform/response.go index 47d6320b36..829ec56bac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package resettransform // Response holds the response body struct for the package resettransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L25 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 9b403ea813..eb31eddd6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package schedulenowtransform // Response holds the response body struct for the package schedulenowtransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L24 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 f3e4a0090b..e496c10bf6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Schedule a transform to start now. // diff --git a/typedapi/transform/starttransform/response.go b/typedapi/transform/starttransform/response.go index 601177bd86..b046a0e746 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package starttransform // Response holds the response body struct for the package starttransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/start_transform/StartTransformResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/start_transform/StartTransformResponse.ts#L22-L25 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 3fa4a9b780..a4781599f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Start a transform. // diff --git a/typedapi/transform/stoptransform/response.go b/typedapi/transform/stoptransform/response.go index 4e431f4b67..0ac988bc8d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stoptransform // Response holds the response body struct for the package stoptransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/stop_transform/StopTransformResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/stop_transform/StopTransformResponse.ts#L22-L25 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 f4e1060b6a..59576779f5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Stop transforms. // Stops one or more transforms. diff --git a/typedapi/transform/updatetransform/request.go b/typedapi/transform/updatetransform/request.go index 60a443b819..a04783d7f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatetransform @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L113 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2e5a1d9910..a7f4171399 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatetransform @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f6831e6fc3..8fbf41a1e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update a transform. // Updates certain properties of a transform. diff --git a/typedapi/transform/upgradetransforms/response.go b/typedapi/transform/upgradetransforms/response.go index 699669de6a..4b2790d25d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package upgradetransforms // Response holds the response body struct for the package upgradetransforms // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a6a3e63586..863dddafdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Upgrade all transforms. // diff --git a/typedapi/types/access.go b/typedapi/types/access.go index b8da950bb5..b562f9875a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Access type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Access.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -37,8 +37,6 @@ func NewAccess() *Access { return r } -// true - type AccessVariant interface { AccessCaster() *Access } diff --git a/typedapi/types/acknowledgement.go b/typedapi/types/acknowledgement.go index 6be2085f37..22c3e80c91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Acknowledgement type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/post/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/license/post/types.ts#L20-L23 type Acknowledgement struct { License []string `json:"license"` Message string `json:"message"` @@ -80,5 +80,3 @@ func NewAcknowledgement() *Acknowledgement { return r } - -// false diff --git a/typedapi/types/acknowledgestate.go b/typedapi/types/acknowledgestate.go index b8078e49e0..fbf78975f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // AcknowledgeState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L109-L112 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L109-L112 type AcknowledgeState struct { State acknowledgementoptions.AcknowledgementOptions `json:"state"` Timestamp DateTime `json:"timestamp"` @@ -75,8 +75,6 @@ func NewAcknowledgeState() *AcknowledgeState { return r } -// true - type AcknowledgeStateVariant interface { AcknowledgeStateCaster() *AcknowledgeState } diff --git a/typedapi/types/actionstatus.go b/typedapi/types/actionstatus.go index 76c97a8ab5..e2ff22042d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ActionStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L125-L130 type ActionStatus struct { Ack AcknowledgeState `json:"ack"` LastExecution *ExecutionState `json:"last_execution,omitempty"` @@ -37,8 +37,6 @@ func NewActionStatus() *ActionStatus { return r } -// true - type ActionStatusVariant interface { ActionStatusCaster() *ActionStatus } diff --git a/typedapi/types/activationstate.go b/typedapi/types/activationstate.go index 4618bcbdc2..cb19ef64ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ActivationState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Activation.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Activation.ts#L24-L27 type ActivationState struct { Active bool `json:"active"` Timestamp DateTime `json:"timestamp"` @@ -83,8 +83,6 @@ func NewActivationState() *ActivationState { return r } -// true - type ActivationStateVariant interface { ActivationStateCaster() *ActivationState } diff --git a/typedapi/types/activationstatus.go b/typedapi/types/activationstatus.go index 8db505bc9a..15c7893a81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ActivationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Activation.ts#L29-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Activation.ts#L29-L33 type ActivationStatus struct { Actions WatcherStatusActions `json:"actions"` State ActivationState `json:"state"` @@ -78,5 +78,3 @@ func NewActivationStatus() *ActivationStatus { return r } - -// false diff --git a/typedapi/types/adaptiveallocations.go b/typedapi/types/adaptiveallocations.go index 415ef70380..3c67794bf5 100644 --- a/typedapi/types/adaptiveallocations.go +++ b/typedapi/types/adaptiveallocations.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AdaptiveAllocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L60-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L99-L116 type AdaptiveAllocations struct { // Enabled Turn on `adaptive_allocations`. Enabled *bool `json:"enabled,omitempty"` @@ -117,8 +117,6 @@ func NewAdaptiveAllocations() *AdaptiveAllocations { return r } -// true - type AdaptiveAllocationsVariant interface { AdaptiveAllocationsCaster() *AdaptiveAllocations } diff --git a/typedapi/types/adaptiveallocationssettings.go b/typedapi/types/adaptiveallocationssettings.go index f5a6865dd9..477344ba2a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AdaptiveAllocationsSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L109-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L109-L125 type AdaptiveAllocationsSettings struct { // Enabled If true, adaptive_allocations is enabled Enabled bool `json:"enabled"` @@ -117,8 +117,6 @@ func NewAdaptiveAllocationsSettings() *AdaptiveAllocationsSettings { return r } -// true - type AdaptiveAllocationsSettingsVariant interface { AdaptiveAllocationsSettingsCaster() *AdaptiveAllocationsSettings } diff --git a/typedapi/types/adaptiveselection.go b/typedapi/types/adaptiveselection.go index 83a13ee7a1..4707a17b58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AdaptiveSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L439-L468 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L441-L470 type AdaptiveSelection struct { // AvgQueueSize The exponentially weighted moving average queue size of search requests on // the keyed node. @@ -163,5 +163,3 @@ func NewAdaptiveSelection() *AdaptiveSelection { return r } - -// false diff --git a/typedapi/types/addaction.go b/typedapi/types/addaction.go index 0d85ac1b6b..883565bb4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AddAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/types.ts#L41-L95 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/update_aliases/types.ts#L41-L95 type AddAction struct { // Alias Alias for the action. // Index alias names support date math. @@ -197,8 +197,6 @@ func NewAddAction() *AddAction { return r } -// true - type AddActionVariant interface { AddActionCaster() *AddAction } diff --git a/typedapi/types/adjacencymatrixaggregate.go b/typedapi/types/adjacencymatrixaggregate.go index 9c7cf85011..499dd72079 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AdjacencyMatrixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L647-L652 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L649-L654 type AdjacencyMatrixAggregate struct { Buckets BucketsAdjacencyMatrixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewAdjacencyMatrixAggregate() *AdjacencyMatrixAggregate { return r } - -// false diff --git a/typedapi/types/adjacencymatrixaggregation.go b/typedapi/types/adjacencymatrixaggregation.go index 82fae59263..ebf6ad9284 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AdjacencyMatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L60-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L60-L70 type AdjacencyMatrixAggregation struct { // Filters Filters used to create buckets. // At least one filter is required. @@ -89,8 +89,6 @@ func NewAdjacencyMatrixAggregation() *AdjacencyMatrixAggregation { return r } -// true - type AdjacencyMatrixAggregationVariant interface { AdjacencyMatrixAggregationCaster() *AdjacencyMatrixAggregation } diff --git a/typedapi/types/adjacencymatrixbucket.go b/typedapi/types/adjacencymatrixbucket.go index 67f5ff0bcd..dd45820b9a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // AdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L654-L656 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L656-L658 type AdjacencyMatrixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -643,5 +643,3 @@ func NewAdjacencyMatrixBucket() *AdjacencyMatrixBucket { return r } - -// false diff --git a/typedapi/types/aggregate.go b/typedapi/types/aggregate.go index 73e1dbea1b..1d754893fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -93,5 +93,5 @@ package types // MatrixStatsAggregate // GeoLineAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L38-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L38-L125 type Aggregate any diff --git a/typedapi/types/aggregatemetricdoubleproperty.go b/typedapi/types/aggregatemetricdoubleproperty.go index 30c57a0a75..b303073470 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,12 +35,13 @@ import ( // AggregateMetricDoubleProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/complex.ts#L59-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/complex.ts#L60-L66 type AggregateMetricDoubleProperty struct { - DefaultMetric string `json:"default_metric"` - Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` - Fields map[string]Property `json:"fields,omitempty"` - IgnoreAbove *int `json:"ignore_above,omitempty"` + DefaultMetric string `json:"default_metric"` + Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` + Fields map[string]Property `json:"fields,omitempty"` + IgnoreAbove *int `json:"ignore_above,omitempty"` + IgnoreMalformed *bool `json:"ignore_malformed,omitempty"` // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Metrics []string `json:"metrics"` @@ -224,6 +225,12 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -429,6 +436,20 @@ func (s *AggregateMetricDoubleProperty) 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 "meta": if s.Meta == nil { s.Meta = make(map[string]string, 0) @@ -584,6 +605,12 @@ func (s *AggregateMetricDoubleProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -801,6 +828,7 @@ func (s AggregateMetricDoubleProperty) MarshalJSON() ([]byte, error) { Dynamic: s.Dynamic, Fields: s.Fields, IgnoreAbove: s.IgnoreAbove, + IgnoreMalformed: s.IgnoreMalformed, Meta: s.Meta, Metrics: s.Metrics, Properties: s.Properties, @@ -825,8 +853,6 @@ func NewAggregateMetricDoubleProperty() *AggregateMetricDoubleProperty { return r } -// true - type AggregateMetricDoublePropertyVariant interface { AggregateMetricDoublePropertyCaster() *AggregateMetricDoubleProperty } @@ -834,3 +860,8 @@ type AggregateMetricDoublePropertyVariant interface { func (s *AggregateMetricDoubleProperty) AggregateMetricDoublePropertyCaster() *AggregateMetricDoubleProperty { return s } + +func (s *AggregateMetricDoubleProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/aggregateorder.go b/typedapi/types/aggregateorder.go index 725899490e..e600e9193a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // map[string]sortorder.SortOrder // []map[string]sortorder.SortOrder // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1052-L1054 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1f6e76d58b..1f92b2f10d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // AggregateOutput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L101-L106 type AggregateOutput struct { Exponent *Weights `json:"exponent,omitempty"` LogisticRegression *Weights `json:"logistic_regression,omitempty"` @@ -37,8 +37,6 @@ func NewAggregateOutput() *AggregateOutput { return r } -// true - type AggregateOutputVariant interface { AggregateOutputCaster() *AggregateOutput } diff --git a/typedapi/types/aggregationbreakdown.go b/typedapi/types/aggregationbreakdown.go index 107363132b..219ad7b163 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AggregationBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L26-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L26-L39 type AggregationBreakdown struct { BuildAggregation int64 `json:"build_aggregation"` BuildAggregationCount int64 `json:"build_aggregation_count"` @@ -253,5 +253,3 @@ func NewAggregationBreakdown() *AggregationBreakdown { return r } - -// false diff --git a/typedapi/types/aggregationprofile.go b/typedapi/types/aggregationprofile.go index 7ccd23f44c..72740d0373 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AggregationProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L85-L92 type AggregationProfile struct { Breakdown AggregationBreakdown `json:"breakdown"` Children []AggregationProfile `json:"children,omitempty"` @@ -111,5 +111,3 @@ func NewAggregationProfile() *AggregationProfile { return r } - -// false diff --git a/typedapi/types/aggregationprofiledebug.go b/typedapi/types/aggregationprofiledebug.go index 1eda8d5e3e..9b5792bcbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L42-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L42-L76 type AggregationProfileDebug struct { BruteForceUsed *int `json:"brute_force_used,omitempty"` BuiltBuckets *int `json:"built_buckets,omitempty"` @@ -554,5 +554,3 @@ func NewAggregationProfileDebug() *AggregationProfileDebug { return r } - -// false diff --git a/typedapi/types/aggregationprofiledelegatedebugfilter.go b/typedapi/types/aggregationprofiledelegatedebugfilter.go index 84f5b8e74d..f3e4bc1d8b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDelegateDebugFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L78-L83 type AggregationProfileDelegateDebugFilter struct { Query *string `json:"query,omitempty"` ResultsFromMetadata *int `json:"results_from_metadata,omitempty"` @@ -121,5 +121,3 @@ func NewAggregationProfileDelegateDebugFilter() *AggregationProfileDelegateDebug return r } - -// false diff --git a/typedapi/types/aggregationrange.go b/typedapi/types/aggregationrange.go index 8da360910e..101295b896 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L691-L704 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L691-L704 type AggregationRange struct { // From Start of the range (inclusive). From *Float64 `json:"from,omitempty"` @@ -90,8 +90,6 @@ func NewAggregationRange() *AggregationRange { return r } -// true - type AggregationRangeVariant interface { AggregationRangeCaster() *AggregationRange } diff --git a/typedapi/types/aggregations.go b/typedapi/types/aggregations.go index da87f251b4..42e7e805a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Aggregations type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/AggregationContainer.ts#L107-L533 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -814,8 +814,6 @@ func NewAggregations() *Aggregations { return r } -// true - type AggregationsVariant interface { AggregationsCaster() *Aggregations } diff --git a/typedapi/types/alias.go b/typedapi/types/alias.go index 0ae2d6d403..50ea8e5172 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Alias type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/Alias.ts#L23-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -125,8 +125,6 @@ func NewAlias() *Alias { return r } -// true - type AliasVariant interface { AliasCaster() *Alias } diff --git a/typedapi/types/aliasdefinition.go b/typedapi/types/aliasdefinition.go index 5c03b825c5..91b7f86f1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AliasDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/AliasDefinition.ts#L22-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -146,8 +146,6 @@ func NewAliasDefinition() *AliasDefinition { return r } -// true - type AliasDefinitionVariant interface { AliasDefinitionCaster() *AliasDefinition } diff --git a/typedapi/types/aliasesrecord.go b/typedapi/types/aliasesrecord.go index 8a8283e3a5..7ce7f3ddc4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AliasesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/aliases/types.ts#L22-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/aliases/types.ts#L22-L53 type AliasesRecord struct { // Alias alias name Alias *string `json:"alias,omitempty"` @@ -138,5 +138,3 @@ func NewAliasesRecord() *AliasesRecord { return r } - -// false diff --git a/typedapi/types/alibabacloudservicesettings.go b/typedapi/types/alibabacloudservicesettings.go index c9cc9d2c45..d6a68ea844 100644 --- a/typedapi/types/alibabacloudservicesettings.go +++ b/typedapi/types/alibabacloudservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AlibabaCloudServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L219-L264 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L292-L337 type AlibabaCloudServiceSettings struct { // ApiKey A valid API key for the AlibabaCloud AI Search API. ApiKey string `json:"api_key"` @@ -150,8 +150,6 @@ func NewAlibabaCloudServiceSettings() *AlibabaCloudServiceSettings { return r } -// true - type AlibabaCloudServiceSettingsVariant interface { AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings } diff --git a/typedapi/types/alibabacloudtasksettings.go b/typedapi/types/alibabacloudtasksettings.go index 71b498fb91..1966051d5f 100644 --- a/typedapi/types/alibabacloudtasksettings.go +++ b/typedapi/types/alibabacloudtasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AlibabaCloudTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L266-L280 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L339-L353 type AlibabaCloudTaskSettings struct { // InputType For a `sparse_embedding` or `text_embedding` task, specify the type of input // passed to the model. @@ -101,8 +101,6 @@ func NewAlibabaCloudTaskSettings() *AlibabaCloudTaskSettings { return r } -// true - type AlibabaCloudTaskSettingsVariant interface { AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings } diff --git a/typedapi/types/allfield.go b/typedapi/types/allfield.go index b9a557b337..497e0e2a40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AllField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L29-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L29-L40 type AllField struct { Analyzer string `json:"analyzer"` Enabled bool `json:"enabled"` @@ -206,8 +206,6 @@ func NewAllField() *AllField { return r } -// true - type AllFieldVariant interface { AllFieldCaster() *AllField } diff --git a/typedapi/types/allocateaction.go b/typedapi/types/allocateaction.go index f34e39a54e..d95bfbe6fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AllocateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L133-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L133-L139 type AllocateAction struct { Exclude map[string]string `json:"exclude,omitempty"` Include map[string]string `json:"include,omitempty"` @@ -127,8 +127,6 @@ func NewAllocateAction() *AllocateAction { return r } -// true - type AllocateActionVariant interface { AllocateActionCaster() *AllocateAction } diff --git a/typedapi/types/allocationdecision.go b/typedapi/types/allocationdecision.go index b083005eae..05f83af0be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // AllocationDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L27-L31 type AllocationDecision struct { Decider string `json:"decider"` Decision allocationexplaindecision.AllocationExplainDecision `json:"decision"` @@ -95,5 +95,3 @@ func NewAllocationDecision() *AllocationDecision { return r } - -// false diff --git a/typedapi/types/allocationrecord.go b/typedapi/types/allocationrecord.go index 9464c115e2..85b72e8b6f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AllocationRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/allocation/types.ts#L25-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -194,5 +194,3 @@ func NewAllocationRecord() *AllocationRecord { return r } - -// false diff --git a/typedapi/types/allocationstore.go b/typedapi/types/allocationstore.go index 60dbf5aad9..5a9ce352e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AllocationStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L40-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L40-L47 type AllocationStore struct { AllocationId string `json:"allocation_id"` Found bool `json:"found"` @@ -148,5 +148,3 @@ func NewAllocationStore() *AllocationStore { return r } - -// false diff --git a/typedapi/types/alwayscondition.go b/typedapi/types/alwayscondition.go index 4b3fd1b42c..f65c84e876 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // AlwaysCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L26-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L26-L26 type AlwaysCondition struct { } @@ -33,8 +33,6 @@ func NewAlwaysCondition() *AlwaysCondition { return r } -// true - type AlwaysConditionVariant interface { AlwaysConditionCaster() *AlwaysCondition } diff --git a/typedapi/types/amazonbedrockservicesettings.go b/typedapi/types/amazonbedrockservicesettings.go index 8b80502f9a..09bb7914d2 100644 --- a/typedapi/types/amazonbedrockservicesettings.go +++ b/typedapi/types/amazonbedrockservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AmazonBedrockServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L293-L335 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L366-L408 type AmazonBedrockServiceSettings struct { // AccessKey A valid AWS access key that has permissions to use Amazon Bedrock and access // to models for inference requests. @@ -159,8 +159,6 @@ func NewAmazonBedrockServiceSettings() *AmazonBedrockServiceSettings { return r } -// true - type AmazonBedrockServiceSettingsVariant interface { AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings } diff --git a/typedapi/types/amazonbedrocktasksettings.go b/typedapi/types/amazonbedrocktasksettings.go index 7c4dbb581f..9bca726cea 100644 --- a/typedapi/types/amazonbedrocktasksettings.go +++ b/typedapi/types/amazonbedrocktasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AmazonBedrockTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L337-L361 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L410-L434 type AmazonBedrockTaskSettings struct { // MaxNewTokens For a `completion` task, it sets the maximum number for the output tokens to // be generated. @@ -148,8 +148,6 @@ func NewAmazonBedrockTaskSettings() *AmazonBedrockTaskSettings { return r } -// true - type AmazonBedrockTaskSettingsVariant interface { AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings } diff --git a/typedapi/types/analysisconfig.go b/typedapi/types/analysisconfig.go index fc3083cfda..1db43cc99d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -235,8 +235,6 @@ func NewAnalysisConfig() *AnalysisConfig { return r } -// true - type AnalysisConfigVariant interface { AnalysisConfigCaster() *AnalysisConfig } diff --git a/typedapi/types/analysisconfigread.go b/typedapi/types/analysisconfigread.go index 26b3c67074..fe37282db9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfigRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L79-L148 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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`. @@ -221,5 +221,3 @@ func NewAnalysisConfigRead() *AnalysisConfigRead { return r } - -// false diff --git a/typedapi/types/analysislimits.go b/typedapi/types/analysislimits.go index dc6f45d52e..ffafee183c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalysisLimits type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L161-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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, @@ -105,8 +105,6 @@ func NewAnalysisLimits() *AnalysisLimits { return r } -// true - type AnalysisLimitsVariant interface { AnalysisLimitsCaster() *AnalysisLimits } diff --git a/typedapi/types/analysismemorylimit.go b/typedapi/types/analysismemorylimit.go index 56765aac91..d569f1740c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalysisMemoryLimit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L174-L179 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -79,8 +79,6 @@ func NewAnalysisMemoryLimit() *AnalysisMemoryLimit { return r } -// true - type AnalysisMemoryLimitVariant interface { AnalysisMemoryLimitCaster() *AnalysisMemoryLimit } diff --git a/typedapi/types/analytics.go b/typedapi/types/analytics.go index 7fa7a5e78b..a817badb1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Analytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L340-L342 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L340-L342 type Analytics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -97,5 +97,3 @@ func NewAnalytics() *Analytics { return r } - -// false diff --git a/typedapi/types/analyticscollection.go b/typedapi/types/analyticscollection.go index dd9665268b..4da09e2bf0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // AnalyticsCollection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 type AnalyticsCollection struct { // EventDataStream Data stream for the collection. EventDataStream EventDataStream `json:"event_data_stream"` @@ -34,5 +34,3 @@ func NewAnalyticsCollection() *AnalyticsCollection { return r } - -// false diff --git a/typedapi/types/analyticsstatistics.go b/typedapi/types/analyticsstatistics.go index 6893355ad6..41ba68ef47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalyticsStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L58-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L58-L68 type AnalyticsStatistics struct { BoxplotUsage int64 `json:"boxplot_usage"` CumulativeCardinalityUsage int64 `json:"cumulative_cardinality_usage"` @@ -205,5 +205,3 @@ func NewAnalyticsStatistics() *AnalyticsStatistics { return r } - -// false diff --git a/typedapi/types/analyzedetail.go b/typedapi/types/analyzedetail.go index 2d93cb1ed8..36f214494a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalyzeDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L24-L30 type AnalyzeDetail struct { Analyzer *AnalyzerDetail `json:"analyzer,omitempty"` Charfilters []CharFilterDetail `json:"charfilters,omitempty"` @@ -100,5 +100,3 @@ func NewAnalyzeDetail() *AnalyzeDetail { return r } - -// false diff --git a/typedapi/types/analyzer.go b/typedapi/types/analyzer.go index 591cb14689..7a96828710 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -72,7 +72,7 @@ package types // TurkishAnalyzer // ThaiAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L427-L480 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L427-L480 type Analyzer any type AnalyzerVariant interface { diff --git a/typedapi/types/analyzerdetail.go b/typedapi/types/analyzerdetail.go index 3ad8c2133d..4f3dbd925f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalyzerDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L32-L35 type AnalyzerDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` @@ -80,5 +80,3 @@ func NewAnalyzerDetail() *AnalyzerDetail { return r } - -// false diff --git a/typedapi/types/analyzetoken.go b/typedapi/types/analyzetoken.go index a804bdb3e7..14a14c20c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L37-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L37-L44 type AnalyzeToken struct { EndOffset int64 `json:"end_offset"` Position int64 `json:"position"` @@ -151,5 +151,3 @@ func NewAnalyzeToken() *AnalyzeToken { return r } - -// false diff --git a/typedapi/types/anomaly.go b/typedapi/types/anomaly.go index 2b6d55c849..2e27a79fdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Anomaly type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Anomaly.ts#L24-L121 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Anomaly.ts#L24-L121 type Anomaly struct { // Actual The actual value for the bucket. Actual []Float64 `json:"actual,omitempty"` @@ -388,5 +388,3 @@ func NewAnomaly() *Anomaly { return r } - -// false diff --git a/typedapi/types/anomalycause.go b/typedapi/types/anomalycause.go index 17f033487c..a79e098137 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnomalyCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Anomaly.ts#L123-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Anomaly.ts#L123-L139 type AnomalyCause struct { Actual []Float64 `json:"actual,omitempty"` ByFieldName *string `json:"by_field_name,omitempty"` @@ -211,5 +211,3 @@ func NewAnomalyCause() *AnomalyCause { return r } - -// false diff --git a/typedapi/types/anomalydetectors.go b/typedapi/types/anomalydetectors.go index e81a953bf4..de48e67f6e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnomalyDetectors type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/types.ts#L46-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/info/types.ts#L46-L52 type AnomalyDetectors struct { CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"` CategorizationExamplesLimit int `json:"categorization_examples_limit"` @@ -162,5 +162,3 @@ func NewAnomalyDetectors() *AnomalyDetectors { return r } - -// false diff --git a/typedapi/types/anomalyexplanation.go b/typedapi/types/anomalyexplanation.go index 3f1bcf73d1..696fcd3731 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnomalyExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Anomaly.ts#L157-L198 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -237,5 +237,3 @@ func NewAnomalyExplanation() *AnomalyExplanation { return r } - -// false diff --git a/typedapi/types/anthropicservicesettings.go b/typedapi/types/anthropicservicesettings.go index ca9c6577db..a2ecc23e97 100644 --- a/typedapi/types/anthropicservicesettings.go +++ b/typedapi/types/anthropicservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnthropicServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L372-L388 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L445-L461 type AnthropicServiceSettings struct { // ApiKey A valid API key for the Anthropic API. ApiKey string `json:"api_key"` @@ -101,8 +101,6 @@ func NewAnthropicServiceSettings() *AnthropicServiceSettings { return r } -// true - type AnthropicServiceSettingsVariant interface { AnthropicServiceSettingsCaster() *AnthropicServiceSettings } diff --git a/typedapi/types/anthropictasksettings.go b/typedapi/types/anthropictasksettings.go index e5d77158fd..924c8895ab 100644 --- a/typedapi/types/anthropictasksettings.go +++ b/typedapi/types/anthropictasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AnthropicTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L390-L415 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L463-L488 type AnthropicTaskSettings struct { // MaxTokens For a `completion` task, it is the maximum number of tokens to generate // before stopping. @@ -146,8 +146,6 @@ func NewAnthropicTaskSettings() *AnthropicTaskSettings { return r } -// true - type AnthropicTaskSettingsVariant interface { AnthropicTaskSettingsCaster() *AnthropicTaskSettings } diff --git a/typedapi/types/apikey.go b/typedapi/types/apikey.go index 0a815addf6..f1af7d4404 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/ApiKey.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -225,5 +225,3 @@ func NewApiKey() *ApiKey { return r } - -// false diff --git a/typedapi/types/apikeyaggregate.go b/typedapi/types/apikeyaggregate.go index 47677eaf75..7d2c186d81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,5 +36,5 @@ package types // DateRangeAggregate // CompositeAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/types.ts#L122-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d927e3d3d0..2d54e5c842 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ApiKeyAggregationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/types.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/query_api_keys/types.ts#L63-L120 type ApiKeyAggregationContainer struct { AdditionalApiKeyAggregationContainerProperty map[string]json.RawMessage `json:"-"` // Aggregations Sub-aggregations for this aggregation. @@ -197,8 +197,6 @@ func NewApiKeyAggregationContainer() *ApiKeyAggregationContainer { return r } -// true - type ApiKeyAggregationContainerVariant interface { ApiKeyAggregationContainerCaster() *ApiKeyAggregationContainer } diff --git a/typedapi/types/apikeyauthorization.go b/typedapi/types/apikeyauthorization.go index 29816a5a0d..f26633dd23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ApiKeyAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Authorization.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Authorization.ts#L20-L29 type ApiKeyAuthorization struct { // Id The identifier for the API key. Id string `json:"id"` @@ -89,5 +89,3 @@ func NewApiKeyAuthorization() *ApiKeyAuthorization { return r } - -// false diff --git a/typedapi/types/apikeyfiltersaggregation.go b/typedapi/types/apikeyfiltersaggregation.go index 1dcc8677f8..7a56aa0379 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ApiKeyFiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/types.ts#L207-L227 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -133,8 +133,6 @@ func NewApiKeyFiltersAggregation() *ApiKeyFiltersAggregation { return r } -// true - type ApiKeyFiltersAggregationVariant interface { ApiKeyFiltersAggregationCaster() *ApiKeyFiltersAggregation } diff --git a/typedapi/types/apikeyquerycontainer.go b/typedapi/types/apikeyquerycontainer.go index 07bb3478fd..37113c672d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ApiKeyQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_api_keys/types.ts#L141-L205 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -221,8 +221,6 @@ func NewApiKeyQueryContainer() *ApiKeyQueryContainer { return r } -// true - type ApiKeyQueryContainerVariant interface { ApiKeyQueryContainerCaster() *ApiKeyQueryContainer } diff --git a/typedapi/types/apostrophetokenfilter.go b/typedapi/types/apostrophetokenfilter.go new file mode 100644 index 0000000000..8114ca3e3a --- /dev/null +++ b/typedapi/types/apostrophetokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ApostropheTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L451-L453 +type ApostropheTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ApostropheTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ApostropheTokenFilter) MarshalJSON() ([]byte, error) { + type innerApostropheTokenFilter ApostropheTokenFilter + tmp := innerApostropheTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "apostrophe" + + return json.Marshal(tmp) +} + +// NewApostropheTokenFilter returns a ApostropheTokenFilter. +func NewApostropheTokenFilter() *ApostropheTokenFilter { + r := &ApostropheTokenFilter{} + + return r +} + +type ApostropheTokenFilterVariant interface { + ApostropheTokenFilterCaster() *ApostropheTokenFilter +} + +func (s *ApostropheTokenFilter) ApostropheTokenFilterCaster() *ApostropheTokenFilter { + return s +} + +func (s *ApostropheTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/appendprocessor.go b/typedapi/types/appendprocessor.go index 8208e22605..090d98e055 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AppendProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L329-L344 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L329-L344 type AppendProcessor struct { // AllowDuplicates If `false`, the processor does not append values already present in the // field. @@ -165,8 +165,6 @@ func NewAppendProcessor() *AppendProcessor { return r } -// true - type AppendProcessorVariant interface { AppendProcessorCaster() *AppendProcessor } diff --git a/typedapi/types/applicationglobaluserprivileges.go b/typedapi/types/applicationglobaluserprivileges.go index c3f3c35d5d..f0354200f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ApplicationGlobalUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L434-L436 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/Privileges.ts#L434-L436 type ApplicationGlobalUserPrivileges struct { Manage ManageUserPrivileges `json:"manage"` } @@ -34,8 +34,6 @@ func NewApplicationGlobalUserPrivileges() *ApplicationGlobalUserPrivileges { return r } -// true - type ApplicationGlobalUserPrivilegesVariant interface { ApplicationGlobalUserPrivilegesCaster() *ApplicationGlobalUserPrivileges } diff --git a/typedapi/types/applicationprivileges.go b/typedapi/types/applicationprivileges.go index 7408d7d4fd..ebe26103e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -91,8 +91,6 @@ func NewApplicationPrivileges() *ApplicationPrivileges { return r } -// true - type ApplicationPrivilegesVariant interface { ApplicationPrivilegesCaster() *ApplicationPrivileges } diff --git a/typedapi/types/applicationprivilegescheck.go b/typedapi/types/applicationprivilegescheck.go index edbe17810b..9d1b05c310 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/types.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/has_privileges/types.ts#L24-L32 type ApplicationPrivilegesCheck struct { // Application The name of the application. Application string `json:"application"` @@ -92,8 +92,6 @@ func NewApplicationPrivilegesCheck() *ApplicationPrivilegesCheck { return r } -// true - type ApplicationPrivilegesCheckVariant interface { ApplicationPrivilegesCheckCaster() *ApplicationPrivilegesCheck } diff --git a/typedapi/types/applicationsprivileges.go b/typedapi/types/applicationsprivileges.go index dcc356031a..2ccb346be7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ApplicationsPrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 44700c57c1..43ab050ec4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // ArabicAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L72-L77 type ArabicAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *ArabicAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *ArabicAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewArabicAnalyzer() *ArabicAnalyzer { return r } -// true - type ArabicAnalyzerVariant interface { ArabicAnalyzerCaster() *ArabicAnalyzer } @@ -128,3 +115,8 @@ type ArabicAnalyzerVariant interface { func (s *ArabicAnalyzer) ArabicAnalyzerCaster() *ArabicAnalyzer { return s } + +func (s *ArabicAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/arabicnormalizationtokenfilter.go b/typedapi/types/arabicnormalizationtokenfilter.go new file mode 100644 index 0000000000..d18a40aadf --- /dev/null +++ b/typedapi/types/arabicnormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ArabicNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L455-L457 +type ArabicNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ArabicNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ArabicNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerArabicNormalizationTokenFilter ArabicNormalizationTokenFilter + tmp := innerArabicNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "arabic_normalization" + + return json.Marshal(tmp) +} + +// NewArabicNormalizationTokenFilter returns a ArabicNormalizationTokenFilter. +func NewArabicNormalizationTokenFilter() *ArabicNormalizationTokenFilter { + r := &ArabicNormalizationTokenFilter{} + + return r +} + +type ArabicNormalizationTokenFilterVariant interface { + ArabicNormalizationTokenFilterCaster() *ArabicNormalizationTokenFilter +} + +func (s *ArabicNormalizationTokenFilter) ArabicNormalizationTokenFilterCaster() *ArabicNormalizationTokenFilter { + return s +} + +func (s *ArabicNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/arabicstemtokenfilter.go b/typedapi/types/arabicstemtokenfilter.go new file mode 100644 index 0000000000..e5ded55062 --- /dev/null +++ b/typedapi/types/arabicstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ArabicStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L547-L549 +type ArabicStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ArabicStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ArabicStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerArabicStemTokenFilter ArabicStemTokenFilter + tmp := innerArabicStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "arabic_stem" + + return json.Marshal(tmp) +} + +// NewArabicStemTokenFilter returns a ArabicStemTokenFilter. +func NewArabicStemTokenFilter() *ArabicStemTokenFilter { + r := &ArabicStemTokenFilter{} + + return r +} + +type ArabicStemTokenFilterVariant interface { + ArabicStemTokenFilterCaster() *ArabicStemTokenFilter +} + +func (s *ArabicStemTokenFilter) ArabicStemTokenFilterCaster() *ArabicStemTokenFilter { + return s +} + +func (s *ArabicStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/archive.go b/typedapi/types/archive.go index ff7239e9a4..a6f9a9527b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Archive type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L45-L47 type Archive struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -107,5 +107,3 @@ func NewArchive() *Archive { return r } - -// false diff --git a/typedapi/types/armeniananalyzer.go b/typedapi/types/armeniananalyzer.go index 4dc05af545..c1a00b2f33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // ArmenianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L79-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L79-L84 type ArmenianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *ArmenianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *ArmenianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewArmenianAnalyzer() *ArmenianAnalyzer { return r } -// true - type ArmenianAnalyzerVariant interface { ArmenianAnalyzerCaster() *ArmenianAnalyzer } @@ -128,3 +115,8 @@ type ArmenianAnalyzerVariant interface { func (s *ArmenianAnalyzer) ArmenianAnalyzerCaster() *ArmenianAnalyzer { return s } + +func (s *ArmenianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/arraycomparecondition.go b/typedapi/types/arraycomparecondition.go index 4a382a4fb1..4a0556983c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ArrayCompareCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L33-L40 type ArrayCompareCondition struct { ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"` Path string `json:"path"` @@ -127,8 +127,6 @@ func NewArrayCompareCondition() *ArrayCompareCondition { return r } -// true - type ArrayCompareConditionVariant interface { ArrayCompareConditionCaster() *ArrayCompareCondition } diff --git a/typedapi/types/arraycompareopparams.go b/typedapi/types/arraycompareopparams.go index caa44da4ef..75bffc06f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ArrayCompareOpParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L28-L31 type ArrayCompareOpParams struct { Quantifier quantifier.Quantifier `json:"quantifier"` Value FieldValue `json:"value"` @@ -75,8 +75,6 @@ func NewArrayCompareOpParams() *ArrayCompareOpParams { return r } -// true - type ArrayCompareOpParamsVariant interface { ArrayCompareOpParamsCaster() *ArrayCompareOpParams } diff --git a/typedapi/types/arraypercentilesitem.go b/typedapi/types/arraypercentilesitem.go index 6e20ffe5fc..3e9ae40df5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ArrayPercentilesItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L162-L166 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L162-L166 type ArrayPercentilesItem struct { Key string `json:"key"` Value *Float64 `json:"value,omitempty"` @@ -93,5 +93,3 @@ func NewArrayPercentilesItem() *ArrayPercentilesItem { return r } - -// false diff --git a/typedapi/types/asciifoldingtokenfilter.go b/typedapi/types/asciifoldingtokenfilter.go index 24c40e28dc..4fd9309930 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,8 +30,9 @@ import ( // AsciiFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L169-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L213-L217 type AsciiFoldingTokenFilter struct { + // PreserveOriginal If `true`, emit both original tokens and folded tokens. Defaults to `false`. PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -93,8 +94,6 @@ func NewAsciiFoldingTokenFilter() *AsciiFoldingTokenFilter { return r } -// true - type AsciiFoldingTokenFilterVariant interface { AsciiFoldingTokenFilterCaster() *AsciiFoldingTokenFilter } @@ -102,3 +101,8 @@ type AsciiFoldingTokenFilterVariant interface { func (s *AsciiFoldingTokenFilter) AsciiFoldingTokenFilterCaster() *AsciiFoldingTokenFilter { return s } + +func (s *AsciiFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/asyncsearch.go b/typedapi/types/asyncsearch.go index 4532819187..b1e4d65179 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // AsyncSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/async_search/_types/AsyncSearch.ts#L30-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -796,5 +796,3 @@ func NewAsyncSearch() *AsyncSearch { return r } - -// false diff --git a/typedapi/types/attachmentprocessor.go b/typedapi/types/attachmentprocessor.go index d3038e4749..a380ae8519 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AttachmentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L346-L387 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L346-L387 type AttachmentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -220,8 +220,6 @@ func NewAttachmentProcessor() *AttachmentProcessor { return r } -// true - type AttachmentProcessorVariant interface { AttachmentProcessorCaster() *AttachmentProcessor } diff --git a/typedapi/types/audit.go b/typedapi/types/audit.go index 5dbe1bd709..2c93a11342 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Audit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L70-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L70-L72 type Audit struct { Enabled bool `json:"enabled"` Outputs []string `json:"outputs,omitempty"` @@ -82,5 +82,3 @@ func NewAudit() *Audit { return r } - -// false diff --git a/typedapi/types/authenticateapikey.go b/typedapi/types/authenticateapikey.go index 1ced16ac3e..f458f1c566 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AuthenticateApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 type AuthenticateApiKey struct { Id string `json:"id"` Name *string `json:"name,omitempty"` @@ -72,5 +72,3 @@ func NewAuthenticateApiKey() *AuthenticateApiKey { return r } - -// false diff --git a/typedapi/types/authenticateduser.go b/typedapi/types/authenticateduser.go index 0508df17ce..5cf3f98946 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AuthenticatedUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/types.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_token/types.ts#L60-L65 type AuthenticatedUser struct { AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"` AuthenticationRealm UserRealm `json:"authentication_realm"` @@ -150,5 +150,3 @@ func NewAuthenticatedUser() *AuthenticatedUser { return r } - -// false diff --git a/typedapi/types/authenticatetoken.go b/typedapi/types/authenticatetoken.go index 670e0eb4bb..4595958def 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AuthenticateToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/authenticate/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/authenticate/types.ts#L22-L29 type AuthenticateToken struct { Name string `json:"name"` Type *string `json:"type,omitempty"` @@ -80,5 +80,3 @@ func NewAuthenticateToken() *AuthenticateToken { return r } - -// false diff --git a/typedapi/types/authentication.go b/typedapi/types/authentication.go index 854998a0a3..393406d0b3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Authentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 type Authentication struct { ApiKey map[string]string `json:"api_key,omitempty"` AuthenticationRealm AuthenticationRealm `json:"authentication_realm"` @@ -173,5 +173,3 @@ func NewAuthentication() *Authentication { return r } - -// false diff --git a/typedapi/types/authenticationprovider.go b/typedapi/types/authenticationprovider.go index c5eba69f62..809bc2db04 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AuthenticationProvider type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/types.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_token/types.ts#L55-L58 type AuthenticationProvider struct { Name string `json:"name"` Type string `json:"type"` @@ -80,5 +80,3 @@ func NewAuthenticationProvider() *AuthenticationProvider { return r } - -// false diff --git a/typedapi/types/authenticationrealm.go b/typedapi/types/authenticationrealm.go index ac436653aa..04b38a2ebb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AuthenticationRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 type AuthenticationRealm struct { Domain *string `json:"domain,omitempty"` Name string `json:"name"` @@ -100,5 +100,3 @@ func NewAuthenticationRealm() *AuthenticationRealm { return r } - -// false diff --git a/typedapi/types/autodatehistogramaggregate.go b/typedapi/types/autodatehistogramaggregate.go index b08b529653..83f048beb8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AutoDateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L393-L400 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L393-L400 type AutoDateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Interval string `json:"interval"` @@ -94,5 +94,3 @@ func NewAutoDateHistogramAggregate() *AutoDateHistogramAggregate { return r } - -// false diff --git a/typedapi/types/autodatehistogramaggregation.go b/typedapi/types/autodatehistogramaggregation.go index b36859a474..e26cfbb266 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // AutoDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L72-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L72-L110 type AutoDateHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` @@ -160,8 +160,6 @@ func NewAutoDateHistogramAggregation() *AutoDateHistogramAggregation { return r } -// true - type AutoDateHistogramAggregationVariant interface { AutoDateHistogramAggregationCaster() *AutoDateHistogramAggregation } diff --git a/typedapi/types/autofollowedcluster.go b/typedapi/types/autofollowedcluster.go index 22ad647825..3d06703650 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AutoFollowedCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/stats/types.ts.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/stats/types.ts.ts#L26-L30 type AutoFollowedCluster struct { ClusterName string `json:"cluster_name"` LastSeenMetadataVersion int64 `json:"last_seen_metadata_version"` @@ -78,5 +78,3 @@ func NewAutoFollowedCluster() *AutoFollowedCluster { return r } - -// false diff --git a/typedapi/types/autofollowpattern.go b/typedapi/types/autofollowpattern.go index b3e7fc0e1f..d8a052e598 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AutoFollowPattern type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 type AutoFollowPattern struct { Name string `json:"name"` Pattern AutoFollowPatternSummary `json:"pattern"` @@ -72,5 +72,3 @@ func NewAutoFollowPattern() *AutoFollowPattern { return r } - -// false diff --git a/typedapi/types/autofollowpatternsummary.go b/typedapi/types/autofollowpatternsummary.go index 2c22c1bc0c..fbaf017eb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AutoFollowPatternSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 type AutoFollowPatternSummary struct { Active bool `json:"active"` // FollowIndexPattern The name of follower index. @@ -131,5 +131,3 @@ func NewAutoFollowPatternSummary() *AutoFollowPatternSummary { return r } - -// false diff --git a/typedapi/types/autofollowstats.go b/typedapi/types/autofollowstats.go index f465d95ca1..d9b63870cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AutoFollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/stats/types.ts.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -130,5 +130,3 @@ func NewAutoFollowStats() *AutoFollowStats { return r } - -// false diff --git a/typedapi/types/autoscalingcapacity.go b/typedapi/types/autoscalingcapacity.go index 079c49820f..80b4d8e8f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // AutoscalingCapacity type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 type AutoscalingCapacity struct { Node AutoscalingResources `json:"node"` Total AutoscalingResources `json:"total"` @@ -34,5 +34,3 @@ func NewAutoscalingCapacity() *AutoscalingCapacity { return r } - -// false diff --git a/typedapi/types/autoscalingdecider.go b/typedapi/types/autoscalingdecider.go index 231b0b3952..d1fbb4b385 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AutoscalingDecider type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -86,5 +86,3 @@ func NewAutoscalingDecider() *AutoscalingDecider { return r } - -// false diff --git a/typedapi/types/autoscalingdeciders.go b/typedapi/types/autoscalingdeciders.go index 9517675f1b..1710b17b86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // AutoscalingDeciders type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 type AutoscalingDeciders struct { CurrentCapacity AutoscalingCapacity `json:"current_capacity"` CurrentNodes []AutoscalingNode `json:"current_nodes"` @@ -38,5 +38,3 @@ func NewAutoscalingDeciders() *AutoscalingDeciders { return r } - -// false diff --git a/typedapi/types/autoscalingnode.go b/typedapi/types/autoscalingnode.go index 903a8b6117..6d794886b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AutoscalingNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 type AutoscalingNode struct { Name string `json:"name"` } @@ -66,5 +66,3 @@ func NewAutoscalingNode() *AutoscalingNode { return r } - -// false diff --git a/typedapi/types/autoscalingpolicy.go b/typedapi/types/autoscalingpolicy.go index d0e5adbd7c..890110ad55 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // AutoscalingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 type AutoscalingPolicy struct { // Deciders Decider settings. Deciders map[string]json.RawMessage `json:"deciders"` @@ -42,8 +42,6 @@ func NewAutoscalingPolicy() *AutoscalingPolicy { return r } -// true - type AutoscalingPolicyVariant interface { AutoscalingPolicyCaster() *AutoscalingPolicy } diff --git a/typedapi/types/autoscalingresources.go b/typedapi/types/autoscalingresources.go index 14c40d73e9..418aec9b0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AutoscalingResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 type AutoscalingResources struct { Memory int `json:"memory"` Storage int `json:"storage"` @@ -95,5 +95,3 @@ func NewAutoscalingResources() *AutoscalingResources { return r } - -// false diff --git a/typedapi/types/averageaggregation.go b/typedapi/types/averageaggregation.go index 1833691e16..91e151954f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L55-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L55-L55 type AverageAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewAverageAggregation() *AverageAggregation { return r } -// true - type AverageAggregationVariant interface { AverageAggregationCaster() *AverageAggregation } diff --git a/typedapi/types/averagebucketaggregation.go b/typedapi/types/averagebucketaggregation.go index 9cfae3f62b..54565038b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // AverageBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewAverageBucketAggregation() *AverageBucketAggregation { return r } -// true - type AverageBucketAggregationVariant interface { AverageBucketAggregationCaster() *AverageBucketAggregation } diff --git a/typedapi/types/avgaggregate.go b/typedapi/types/avgaggregate.go index 74cab19265..0f85a5da65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewAvgAggregate() *AvgAggregate { return r } - -// false diff --git a/typedapi/types/azureaistudioservicesettings.go b/typedapi/types/azureaistudioservicesettings.go index 90a62175ce..cd5de40b3c 100644 --- a/typedapi/types/azureaistudioservicesettings.go +++ b/typedapi/types/azureaistudioservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AzureAiStudioServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L425-L467 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L498-L540 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 @@ -153,8 +153,6 @@ func NewAzureAiStudioServiceSettings() *AzureAiStudioServiceSettings { return r } -// true - type AzureAiStudioServiceSettingsVariant interface { AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings } diff --git a/typedapi/types/azureaistudiotasksettings.go b/typedapi/types/azureaistudiotasksettings.go index aede586943..e60abab9b4 100644 --- a/typedapi/types/azureaistudiotasksettings.go +++ b/typedapi/types/azureaistudiotasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AzureAiStudioTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L469-L497 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L542-L570 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. @@ -158,8 +158,6 @@ func NewAzureAiStudioTaskSettings() *AzureAiStudioTaskSettings { return r } -// true - type AzureAiStudioTaskSettingsVariant interface { AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings } diff --git a/typedapi/types/azureopenaiservicesettings.go b/typedapi/types/azureopenaiservicesettings.go index d94d429952..dcb20eafa3 100644 --- a/typedapi/types/azureopenaiservicesettings.go +++ b/typedapi/types/azureopenaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AzureOpenAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L508-L553 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L581-L626 type AzureOpenAIServiceSettings struct { // ApiKey A valid API key for your Azure OpenAI account. // You must specify either `api_key` or `entra_id`. @@ -162,8 +162,6 @@ func NewAzureOpenAIServiceSettings() *AzureOpenAIServiceSettings { return r } -// true - type AzureOpenAIServiceSettingsVariant interface { AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings } diff --git a/typedapi/types/azureopenaitasksettings.go b/typedapi/types/azureopenaitasksettings.go index de1ba4ef6e..ac8975e928 100644 --- a/typedapi/types/azureopenaitasksettings.go +++ b/typedapi/types/azureopenaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AzureOpenAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L555-L561 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L628-L634 type AzureOpenAITaskSettings struct { // User For a `completion` or `text_embedding` task, specify the user issuing the // request. @@ -78,8 +78,6 @@ func NewAzureOpenAITaskSettings() *AzureOpenAITaskSettings { return r } -// true - type AzureOpenAITaskSettingsVariant interface { AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings } diff --git a/typedapi/types/azurerepository.go b/typedapi/types/azurerepository.go index 2468308678..b5857ac09d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // AzureRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L40-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L40-L50 type AzureRepository struct { // Settings The repository settings. Settings *AzureRepositorySettings `json:"settings,omitempty"` @@ -95,8 +95,6 @@ func NewAzureRepository() *AzureRepository { return r } -// true - type AzureRepositoryVariant interface { AzureRepositoryCaster() *AzureRepository } @@ -104,3 +102,8 @@ type AzureRepositoryVariant interface { func (s *AzureRepository) AzureRepositoryCaster() *AzureRepository { return s } + +func (s *AzureRepository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/azurerepositorysettings.go b/typedapi/types/azurerepositorysettings.go index ba1c31f502..2ee2440dbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // AzureRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L145-L196 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L145-L196 type AzureRepositorySettings struct { // BasePath The path to the repository data within the container. // It defaults to the root directory. @@ -251,8 +251,6 @@ func NewAzureRepositorySettings() *AzureRepositorySettings { return r } -// true - type AzureRepositorySettingsVariant interface { AzureRepositorySettingsCaster() *AzureRepositorySettings } diff --git a/typedapi/types/base.go b/typedapi/types/base.go index df5aa1ae08..a64735e23e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Base type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L27-L30 type Base struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -91,5 +91,3 @@ func NewBase() *Base { return r } - -// false diff --git a/typedapi/types/basqueanalyzer.go b/typedapi/types/basqueanalyzer.go index 1c4a5534a9..2aaa88f96c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // BasqueAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L86-L91 type BasqueAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *BasqueAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *BasqueAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewBasqueAnalyzer() *BasqueAnalyzer { return r } -// true - type BasqueAnalyzerVariant interface { BasqueAnalyzerCaster() *BasqueAnalyzer } @@ -128,3 +115,8 @@ type BasqueAnalyzerVariant interface { func (s *BasqueAnalyzer) BasqueAnalyzerCaster() *BasqueAnalyzer { return s } + +func (s *BasqueAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/bengalianalyzer.go b/typedapi/types/bengalianalyzer.go index ea1c3ded1d..0367372724 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // BengaliAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L93-L98 type BengaliAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *BengaliAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *BengaliAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewBengaliAnalyzer() *BengaliAnalyzer { return r } -// true - type BengaliAnalyzerVariant interface { BengaliAnalyzerCaster() *BengaliAnalyzer } @@ -128,3 +115,8 @@ type BengaliAnalyzerVariant interface { func (s *BengaliAnalyzer) BengaliAnalyzerCaster() *BengaliAnalyzer { return s } + +func (s *BengaliAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/bengalinormalizationtokenfilter.go b/typedapi/types/bengalinormalizationtokenfilter.go new file mode 100644 index 0000000000..0a9877cb0f --- /dev/null +++ b/typedapi/types/bengalinormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// BengaliNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L490-L492 +type BengaliNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *BengaliNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BengaliNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerBengaliNormalizationTokenFilter BengaliNormalizationTokenFilter + tmp := innerBengaliNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "bengali_normalization" + + return json.Marshal(tmp) +} + +// NewBengaliNormalizationTokenFilter returns a BengaliNormalizationTokenFilter. +func NewBengaliNormalizationTokenFilter() *BengaliNormalizationTokenFilter { + r := &BengaliNormalizationTokenFilter{} + + return r +} + +type BengaliNormalizationTokenFilterVariant interface { + BengaliNormalizationTokenFilterCaster() *BengaliNormalizationTokenFilter +} + +func (s *BengaliNormalizationTokenFilter) BengaliNormalizationTokenFilterCaster() *BengaliNormalizationTokenFilter { + return s +} + +func (s *BengaliNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/binaryproperty.go b/typedapi/types/binaryproperty.go index b4cefaebe6..bb6168daf5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // BinaryProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L54-L56 type BinaryProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -241,6 +241,12 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -596,6 +602,12 @@ func (s *BinaryProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -846,8 +858,6 @@ func NewBinaryProperty() *BinaryProperty { return r } -// true - type BinaryPropertyVariant interface { BinaryPropertyCaster() *BinaryProperty } @@ -855,3 +865,8 @@ type BinaryPropertyVariant interface { func (s *BinaryProperty) BinaryPropertyCaster() *BinaryProperty { return s } + +func (s *BinaryProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/blobdetails.go b/typedapi/types/blobdetails.go index 32dccbb112..1a7255a33b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 type BlobDetails struct { // Name The name of the blob. Name string `json:"name"` @@ -174,5 +174,3 @@ func NewBlobDetails() *BlobDetails { return r } - -// false diff --git a/typedapi/types/booleanproperty.go b/typedapi/types/booleanproperty.go index c2f32d0788..6f7127eaf6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // BooleanProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L58-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L58-L73 type BooleanProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -273,6 +273,12 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -675,6 +681,12 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -952,8 +964,6 @@ func NewBooleanProperty() *BooleanProperty { return r } -// true - type BooleanPropertyVariant interface { BooleanPropertyCaster() *BooleanProperty } @@ -961,3 +971,8 @@ type BooleanPropertyVariant interface { func (s *BooleanProperty) BooleanPropertyCaster() *BooleanProperty { return s } + +func (s *BooleanProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/boolquery.go b/typedapi/types/boolquery.go index 414dd9d7f3..5d1fb40a18 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BoolQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L29-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -180,8 +180,6 @@ func NewBoolQuery() *BoolQuery { return r } -// true - type BoolQueryVariant interface { BoolQueryCaster() *BoolQuery } diff --git a/typedapi/types/boostingquery.go b/typedapi/types/boostingquery.go index 5ad7ab4d22..efeab8907d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BoostingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L58-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -130,8 +130,6 @@ func NewBoostingQuery() *BoostingQuery { return r } -// true - type BoostingQueryVariant interface { BoostingQueryCaster() *BoostingQuery } diff --git a/typedapi/types/boxplotaggregate.go b/typedapi/types/boxplotaggregate.go index a3c2a4ed7d..c841fd48a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BoxPlotAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L806-L825 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L808-L827 type BoxPlotAggregate struct { Lower Float64 `json:"lower"` LowerAsString *string `json:"lower_as_string,omitempty"` @@ -277,5 +277,3 @@ func NewBoxPlotAggregate() *BoxPlotAggregate { return r } - -// false diff --git a/typedapi/types/boxplotaggregation.go b/typedapi/types/boxplotaggregation.go index 934f4476da..b2b46b2ca7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BoxplotAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -103,8 +103,6 @@ func NewBoxplotAggregation() *BoxplotAggregation { return r } -// true - type BoxplotAggregationVariant interface { BoxplotAggregationCaster() *BoxplotAggregation } diff --git a/typedapi/types/braziliananalyzer.go b/typedapi/types/braziliananalyzer.go index 584b94d18f..85481f23d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // BrazilianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L100-L104 type BrazilianAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *BrazilianAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *BrazilianAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewBrazilianAnalyzer() *BrazilianAnalyzer { return r } -// true - type BrazilianAnalyzerVariant interface { BrazilianAnalyzerCaster() *BrazilianAnalyzer } @@ -121,3 +108,8 @@ type BrazilianAnalyzerVariant interface { func (s *BrazilianAnalyzer) BrazilianAnalyzerCaster() *BrazilianAnalyzer { return s } + +func (s *BrazilianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/brazilianstemtokenfilter.go b/typedapi/types/brazilianstemtokenfilter.go new file mode 100644 index 0000000000..9c6ee797f7 --- /dev/null +++ b/typedapi/types/brazilianstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// BrazilianStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L494-L496 +type BrazilianStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *BrazilianStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s BrazilianStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerBrazilianStemTokenFilter BrazilianStemTokenFilter + tmp := innerBrazilianStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "brazilian_stem" + + return json.Marshal(tmp) +} + +// NewBrazilianStemTokenFilter returns a BrazilianStemTokenFilter. +func NewBrazilianStemTokenFilter() *BrazilianStemTokenFilter { + r := &BrazilianStemTokenFilter{} + + return r +} + +type BrazilianStemTokenFilterVariant interface { + BrazilianStemTokenFilterCaster() *BrazilianStemTokenFilter +} + +func (s *BrazilianStemTokenFilter) BrazilianStemTokenFilterCaster() *BrazilianStemTokenFilter { + return s +} + +func (s *BrazilianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/breaker.go b/typedapi/types/breaker.go index e1eae86292..8e4c5981cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Breaker type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L470-L495 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L472-L497 type Breaker struct { // EstimatedSize Estimated memory used for the operation. EstimatedSize *string `json:"estimated_size,omitempty"` @@ -161,5 +161,3 @@ func NewBreaker() *Breaker { return r } - -// false diff --git a/typedapi/types/bucketcorrelationaggregation.go b/typedapi/types/bucketcorrelationaggregation.go index 7278cce78a..4c01115759 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // BucketCorrelationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L139-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -75,8 +75,6 @@ func NewBucketCorrelationAggregation() *BucketCorrelationAggregation { return r } -// true - type BucketCorrelationAggregationVariant interface { BucketCorrelationAggregationCaster() *BucketCorrelationAggregation } diff --git a/typedapi/types/bucketcorrelationfunction.go b/typedapi/types/bucketcorrelationfunction.go index d8401302b7..0bcc3f72ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // BucketCorrelationFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -36,8 +36,6 @@ func NewBucketCorrelationFunction() *BucketCorrelationFunction { return r } -// true - type BucketCorrelationFunctionVariant interface { BucketCorrelationFunctionCaster() *BucketCorrelationFunction } diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelation.go b/typedapi/types/bucketcorrelationfunctioncountcorrelation.go index 43882d6b74..44b524f22c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // BucketCorrelationFunctionCountCorrelation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -35,8 +35,6 @@ func NewBucketCorrelationFunctionCountCorrelation() *BucketCorrelationFunctionCo return r } -// true - type BucketCorrelationFunctionCountCorrelationVariant interface { BucketCorrelationFunctionCountCorrelationCaster() *BucketCorrelationFunctionCountCorrelation } diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go b/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go index b186cec154..6804249c99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BucketCorrelationFunctionCountCorrelationIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L160-L178 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -105,8 +105,6 @@ func NewBucketCorrelationFunctionCountCorrelationIndicator() *BucketCorrelationF return r } -// true - type BucketCorrelationFunctionCountCorrelationIndicatorVariant interface { BucketCorrelationFunctionCountCorrelationIndicatorCaster() *BucketCorrelationFunctionCountCorrelationIndicator } diff --git a/typedapi/types/bucketinfluencer.go b/typedapi/types/bucketinfluencer.go index e349ae2005..4346fd258b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BucketInfluencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Bucket.ts#L79-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -208,5 +208,3 @@ func NewBucketInfluencer() *BucketInfluencer { return r } - -// false diff --git a/typedapi/types/bucketksaggregation.go b/typedapi/types/bucketksaggregation.go index 414f16f02b..7aa80bff1a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BucketKsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L103-L137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -116,8 +116,6 @@ func NewBucketKsAggregation() *BucketKsAggregation { return r } -// true - type BucketKsAggregationVariant interface { BucketKsAggregationCaster() *BucketKsAggregation } diff --git a/typedapi/types/bucketmetricvalueaggregate.go b/typedapi/types/bucketmetricvalueaggregate.go index 3ff4827876..6bf3d6f2e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BucketMetricValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L250-L253 type BucketMetricValueAggregate struct { Keys []string `json:"keys"` Meta Metadata `json:"meta,omitempty"` @@ -95,5 +95,3 @@ func NewBucketMetricValueAggregate() *BucketMetricValueAggregate { return r } - -// false diff --git a/typedapi/types/bucketsadjacencymatrixbucket.go b/typedapi/types/bucketsadjacencymatrixbucket.go index 71d236b638..2d47fb0cf8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]AdjacencyMatrixBucket // []AdjacencyMatrixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsAdjacencyMatrixBucket any diff --git a/typedapi/types/bucketsapikeyquerycontainer.go b/typedapi/types/bucketsapikeyquerycontainer.go index 99bec73e55..77695e0bf9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // map[string]ApiKeyQueryContainer // []ApiKeyQueryContainer // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2175639789..cae719659f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]CompositeBucket // []CompositeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsCompositeBucket any diff --git a/typedapi/types/bucketscriptaggregation.go b/typedapi/types/bucketscriptaggregation.go index 6db6d9163e..042e11ab0f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // BucketScriptAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L83-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -101,8 +101,6 @@ func NewBucketScriptAggregation() *BucketScriptAggregation { return r } -// true - type BucketScriptAggregationVariant interface { BucketScriptAggregationCaster() *BucketScriptAggregation } diff --git a/typedapi/types/bucketsdatehistogrambucket.go b/typedapi/types/bucketsdatehistogrambucket.go index a73355fe09..5f3bb15086 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]DateHistogramBucket // []DateHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDateHistogramBucket any diff --git a/typedapi/types/bucketsdoubletermsbucket.go b/typedapi/types/bucketsdoubletermsbucket.go index 550a3138ce..87f7294b22 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]DoubleTermsBucket // []DoubleTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDoubleTermsBucket any diff --git a/typedapi/types/bucketselectoraggregation.go b/typedapi/types/bucketselectoraggregation.go index 4fdb988fb1..13a64b3337 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // BucketSelectorAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L93-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -101,8 +101,6 @@ func NewBucketSelectorAggregation() *BucketSelectorAggregation { return r } -// true - type BucketSelectorAggregationVariant interface { BucketSelectorAggregationCaster() *BucketSelectorAggregation } diff --git a/typedapi/types/bucketsfiltersbucket.go b/typedapi/types/bucketsfiltersbucket.go index 8ab20806fd..0ba804cff7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]FiltersBucket // []FiltersBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFiltersBucket any diff --git a/typedapi/types/bucketsfrequentitemsetsbucket.go b/typedapi/types/bucketsfrequentitemsetsbucket.go index 7455b37ee5..c5139d6c7b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]FrequentItemSetsBucket // []FrequentItemSetsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFrequentItemSetsBucket any diff --git a/typedapi/types/bucketsgeohashgridbucket.go b/typedapi/types/bucketsgeohashgridbucket.go index 63235ed3e6..cb5818b21d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHashGridBucket // []GeoHashGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHashGridBucket any diff --git a/typedapi/types/bucketsgeohexgridbucket.go b/typedapi/types/bucketsgeohexgridbucket.go index 24f99c1ede..f09c269764 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHexGridBucket // []GeoHexGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHexGridBucket any diff --git a/typedapi/types/bucketsgeotilegridbucket.go b/typedapi/types/bucketsgeotilegridbucket.go index 5e83d88424..cb849f3fcb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]GeoTileGridBucket // []GeoTileGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoTileGridBucket any diff --git a/typedapi/types/bucketshistogrambucket.go b/typedapi/types/bucketshistogrambucket.go index e417099b5b..b37d1589bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]HistogramBucket // []HistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsHistogramBucket any diff --git a/typedapi/types/bucketsipprefixbucket.go b/typedapi/types/bucketsipprefixbucket.go index 9cc9b15815..d07329a1c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]IpPrefixBucket // []IpPrefixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpPrefixBucket any diff --git a/typedapi/types/bucketsiprangebucket.go b/typedapi/types/bucketsiprangebucket.go index 4d38bcb5c4..b0cb021a56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]IpRangeBucket // []IpRangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpRangeBucket any diff --git a/typedapi/types/bucketslongraretermsbucket.go b/typedapi/types/bucketslongraretermsbucket.go index 67ff5627e1..9be5a20851 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]LongRareTermsBucket // []LongRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongRareTermsBucket any diff --git a/typedapi/types/bucketslongtermsbucket.go b/typedapi/types/bucketslongtermsbucket.go index c63a693151..4e8813c5cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]LongTermsBucket // []LongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongTermsBucket any diff --git a/typedapi/types/bucketsmultitermsbucket.go b/typedapi/types/bucketsmultitermsbucket.go index 0352761d26..0e06893d4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]MultiTermsBucket // []MultiTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsMultiTermsBucket any diff --git a/typedapi/types/bucketsortaggregation.go b/typedapi/types/bucketsortaggregation.go index b5712a1a5d..e6f1f9c343 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // BucketSortAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L180-L204 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -126,8 +126,6 @@ func NewBucketSortAggregation() *BucketSortAggregation { return r } -// true - type BucketSortAggregationVariant interface { BucketSortAggregationCaster() *BucketSortAggregation } diff --git a/typedapi/types/bucketspath.go b/typedapi/types/bucketspath.go index 8f1b64bac5..aa195078ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ package types // []string // map[string]string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e58d92aa52..700dc2645f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // map[string]Query // []Query // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 90ab1b1b17..daae8151be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]RangeBucket // []RangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsRangeBucket any diff --git a/typedapi/types/bucketssignificantlongtermsbucket.go b/typedapi/types/bucketssignificantlongtermsbucket.go index a3a8482467..e149a02189 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantLongTermsBucket // []SignificantLongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantLongTermsBucket any diff --git a/typedapi/types/bucketssignificantstringtermsbucket.go b/typedapi/types/bucketssignificantstringtermsbucket.go index 9b0081c3db..32c1fbe57b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantStringTermsBucket // []SignificantStringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantStringTermsBucket any diff --git a/typedapi/types/bucketsstringraretermsbucket.go b/typedapi/types/bucketsstringraretermsbucket.go index 68db3c5bc0..2eefcfd77b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]StringRareTermsBucket // []StringRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringRareTermsBucket any diff --git a/typedapi/types/bucketsstringtermsbucket.go b/typedapi/types/bucketsstringtermsbucket.go index 0b483a706a..b14db13bb9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]StringTermsBucket // []StringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringTermsBucket any diff --git a/typedapi/types/bucketstimeseriesbucket.go b/typedapi/types/bucketstimeseriesbucket.go index 390e2614f0..2dc80f89a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]TimeSeriesBucket // []TimeSeriesBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsTimeSeriesBucket any diff --git a/typedapi/types/bucketsummary.go b/typedapi/types/bucketsummary.go index 9c1a36e58d..a56efef92d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BucketSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Bucket.ts#L30-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -198,5 +198,3 @@ func NewBucketSummary() *BucketSummary { return r } - -// false diff --git a/typedapi/types/bucketsvariablewidthhistogrambucket.go b/typedapi/types/bucketsvariablewidthhistogrambucket.go index 94ab90b94c..856ebd564e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]VariableWidthHistogramBucket // []VariableWidthHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVariableWidthHistogramBucket any diff --git a/typedapi/types/bucketsvoid.go b/typedapi/types/bucketsvoid.go index 04e6e226aa..18be7c7444 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // map[string]any // []any // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVoid any diff --git a/typedapi/types/buildinformation.go b/typedapi/types/buildinformation.go index 01d70dd865..9ab2fd0dcb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BuildInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/info/types.ts#L24-L27 type BuildInformation struct { Date DateTime `json:"date"` Hash string `json:"hash"` @@ -80,5 +80,3 @@ func NewBuildInformation() *BuildInformation { return r } - -// false diff --git a/typedapi/types/bulgariananalyzer.go b/typedapi/types/bulgariananalyzer.go index 969f7bfd1c..8ade27e75c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // BulgarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L106-L111 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L106-L111 type BulgarianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *BulgarianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *BulgarianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewBulgarianAnalyzer() *BulgarianAnalyzer { return r } -// true - type BulgarianAnalyzerVariant interface { BulgarianAnalyzerCaster() *BulgarianAnalyzer } @@ -128,3 +115,8 @@ type BulgarianAnalyzerVariant interface { func (s *BulgarianAnalyzer) BulgarianAnalyzerCaster() *BulgarianAnalyzer { return s } + +func (s *BulgarianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/bulkerror.go b/typedapi/types/bulkerror.go index 43675b0ee7..93daec4347 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BulkError type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Bulk.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/Bulk.ts#L24-L33 type BulkError struct { // Count The number of errors Count int `json:"count"` @@ -91,5 +91,3 @@ func NewBulkError() *BulkError { return r } - -// false diff --git a/typedapi/types/bulkindexbyscrollfailure.go b/typedapi/types/bulkindexbyscrollfailure.go index 5d02908689..48bcf15d64 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BulkIndexByScrollFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Errors.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Errors.ts#L60-L65 type BulkIndexByScrollFailure struct { Cause ErrorCause `json:"cause"` Id string `json:"id"` @@ -96,5 +96,3 @@ func NewBulkIndexByScrollFailure() *BulkIndexByScrollFailure { return r } - -// false diff --git a/typedapi/types/bulkstats.go b/typedapi/types/bulkstats.go index 54985811a3..5516e08ab1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BulkStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L71-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L71-L81 type BulkStats struct { AvgSize ByteSize `json:"avg_size,omitempty"` AvgSizeInBytes int64 `json:"avg_size_in_bytes"` @@ -145,5 +145,3 @@ func NewBulkStats() *BulkStats { return r } - -// false diff --git a/typedapi/types/bytenumberproperty.go b/typedapi/types/bytenumberproperty.go index 84fa99d737..7241f0afb4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // ByteNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L185-L188 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L185-L188 type ByteNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -679,6 +685,12 @@ func (s *ByteNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -962,8 +974,6 @@ func NewByteNumberProperty() *ByteNumberProperty { return r } -// true - type ByteNumberPropertyVariant interface { ByteNumberPropertyCaster() *ByteNumberProperty } @@ -971,3 +981,8 @@ type ByteNumberPropertyVariant interface { func (s *ByteNumberProperty) ByteNumberPropertyCaster() *ByteNumberProperty { return s } + +func (s *ByteNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/bytesize.go b/typedapi/types/bytesize.go index ba474b7d4a..4ba3ffb3fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L90-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L90-L91 type ByteSize any type ByteSizeVariant interface { diff --git a/typedapi/types/bytesprocessor.go b/typedapi/types/bytesprocessor.go index 57f38f0ee3..87fb418746 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // BytesProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L556-L572 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L556-L572 type BytesProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewBytesProcessor() *BytesProcessor { return r } -// true - type BytesProcessorVariant interface { BytesProcessorCaster() *BytesProcessor } diff --git a/typedapi/types/cachequeries.go b/typedapi/types/cachequeries.go index e1879e5f8a..a793e255e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CacheQueries type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L421-L423 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L423-L425 type CacheQueries struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewCacheQueries() *CacheQueries { return r } -// true - type CacheQueriesVariant interface { CacheQueriesCaster() *CacheQueries } diff --git a/typedapi/types/cachestats.go b/typedapi/types/cachestats.go index 57fd99a514..a76c39fe74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/stats/types.ts#L38-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/stats/types.ts#L38-L50 type CacheStats struct { Count int `json:"count"` Evictions int `json:"evictions"` @@ -163,5 +163,3 @@ func NewCacheStats() *CacheStats { return r } - -// false diff --git a/typedapi/types/calendar.go b/typedapi/types/calendar.go index eee433c023..7a92ba365b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Calendar type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_calendars/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/get_calendars/types.ts#L22-L29 type Calendar struct { // CalendarId A string that uniquely identifies a calendar. CalendarId string `json:"calendar_id"` @@ -89,5 +89,3 @@ func NewCalendar() *Calendar { return r } - -// false diff --git a/typedapi/types/calendarevent.go b/typedapi/types/calendarevent.go index f8c22ce89c..109890a37b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CalendarEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/CalendarEvent.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/CalendarEvent.ts#L24-L44 type CalendarEvent struct { // CalendarId A string that uniquely identifies a calendar. CalendarId *string `json:"calendar_id,omitempty"` @@ -156,8 +156,6 @@ func NewCalendarEvent() *CalendarEvent { return r } -// true - type CalendarEventVariant interface { CalendarEventCaster() *CalendarEvent } diff --git a/typedapi/types/cardinalityaggregate.go b/typedapi/types/cardinalityaggregate.go index f2e77a8c41..fc94a6c18d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L140-L143 type CardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` @@ -83,5 +83,3 @@ func NewCardinalityAggregate() *CardinalityAggregate { return r } - -// false diff --git a/typedapi/types/cardinalityaggregation.go b/typedapi/types/cardinalityaggregation.go index 9ddd3cd5f0..720e5d3822 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L87-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -126,8 +126,6 @@ func NewCardinalityAggregation() *CardinalityAggregation { return r } -// true - type CardinalityAggregationVariant interface { CardinalityAggregationCaster() *CardinalityAggregation } diff --git a/typedapi/types/catalananalyzer.go b/typedapi/types/catalananalyzer.go index 2668bd3c1a..5bf44e5ae0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // CatalanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L113-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L113-L118 type CatalanAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *CatalanAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *CatalanAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewCatalanAnalyzer() *CatalanAnalyzer { return r } -// true - type CatalanAnalyzerVariant interface { CatalanAnalyzerCaster() *CatalanAnalyzer } @@ -128,3 +115,8 @@ type CatalanAnalyzerVariant interface { func (s *CatalanAnalyzer) CatalanAnalyzerCaster() *CatalanAnalyzer { return s } + +func (s *CatalanAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/catanonalydetectorcolumns.go b/typedapi/types/catanonalydetectorcolumns.go index 3235182659..a04983010b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // CatAnonalyDetectorColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L402-L404 type CatAnonalyDetectorColumns []catanomalydetectorcolumn.CatAnomalyDetectorColumn diff --git a/typedapi/types/catcomponenttemplate.go b/typedapi/types/catcomponenttemplate.go index 48ea094845..4bfc4591f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CatComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/component_templates/types.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/component_templates/types.ts#L20-L28 type CatComponentTemplate struct { AliasCount string `json:"alias_count"` IncludedIn string `json:"included_in"` @@ -152,5 +152,3 @@ func NewCatComponentTemplate() *CatComponentTemplate { return r } - -// false diff --git a/typedapi/types/catdatafeedcolumns.go b/typedapi/types/catdatafeedcolumns.go index 23545c0c55..13d86dc717 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // CatDatafeedColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L559-L559 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1284-L1284 type CatDatafeedColumns []catdatafeedcolumn.CatDatafeedColumn diff --git a/typedapi/types/catdfacolumns.go b/typedapi/types/catdfacolumns.go index 5cd6148891..dac280e135 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // CatDfaColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L558-L558 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1283-L1283 type CatDfaColumns []catdfacolumn.CatDfaColumn diff --git a/typedapi/types/categorizationanalyzer.go b/typedapi/types/categorizationanalyzer.go index ab43e496dc..581ab437e0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // CategorizationAnalyzerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L181-L182 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4632ccede1..0b90575cb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // CategorizationAnalyzerDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L184-L198 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -142,12 +142,60 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { switch kind["type"] { + case "apostrophe": + o := NewApostropheTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "apostrophe", err) + } + s.Filter = append(s.Filter, *o) + case "arabic_stem": + o := NewArabicStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "arabic_stem", err) + } + s.Filter = append(s.Filter, *o) + case "arabic_normalization": + o := NewArabicNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "arabic_normalization", err) + } + s.Filter = append(s.Filter, *o) case "asciifolding": o := NewAsciiFoldingTokenFilter() if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "asciifolding", err) } s.Filter = append(s.Filter, *o) + case "bengali_normalization": + o := NewBengaliNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "bengali_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "brazilian_stem": + o := NewBrazilianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "brazilian_stem", err) + } + s.Filter = append(s.Filter, *o) + case "cjk_bigram": + o := NewCjkBigramTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "cjk_bigram", err) + } + s.Filter = append(s.Filter, *o) + case "cjk_width": + o := NewCjkWidthTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "cjk_width", err) + } + s.Filter = append(s.Filter, *o) + case "classic": + o := NewClassicTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "classic", err) + } + s.Filter = append(s.Filter, *o) case "common_grams": o := NewCommonGramsTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -160,12 +208,30 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "condition", err) } s.Filter = append(s.Filter, *o) + case "czech_stem": + o := NewCzechStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "czech_stem", err) + } + s.Filter = append(s.Filter, *o) + case "decimal_digit": + o := NewDecimalDigitTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "decimal_digit", err) + } + s.Filter = append(s.Filter, *o) case "delimited_payload": o := NewDelimitedPayloadTokenFilter() if err := localDec.Decode(&o); err != nil { return fmt.Errorf("%s | %w", "delimited_payload", err) } s.Filter = append(s.Filter, *o) + case "dutch_stem": + o := NewDutchStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "dutch_stem", err) + } + s.Filter = append(s.Filter, *o) case "edge_ngram": o := NewEdgeNGramTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -184,6 +250,36 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "fingerprint", err) } s.Filter = append(s.Filter, *o) + case "flatten_graph": + o := NewFlattenGraphTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "flatten_graph", err) + } + s.Filter = append(s.Filter, *o) + case "french_stem": + o := NewFrenchStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "french_stem", err) + } + s.Filter = append(s.Filter, *o) + case "german_normalization": + o := NewGermanNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "german_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "german_stem": + o := NewGermanStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "german_stem", err) + } + s.Filter = append(s.Filter, *o) + case "hindi_normalization": + o := NewHindiNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "hindi_normalization", err) + } + s.Filter = append(s.Filter, *o) case "hunspell": o := NewHunspellTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -196,6 +292,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "hyphenation_decompounder", err) } s.Filter = append(s.Filter, *o) + case "indic_normalization": + o := NewIndicNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "indic_normalization", err) + } + s.Filter = append(s.Filter, *o) case "keep_types": o := NewKeepTypesTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -214,6 +316,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "keyword_marker", err) } s.Filter = append(s.Filter, *o) + case "keyword_repeat": + o := NewKeywordRepeatTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "keyword_repeat", err) + } + s.Filter = append(s.Filter, *o) case "kstem": o := NewKStemTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -238,6 +346,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "lowercase", err) } s.Filter = append(s.Filter, *o) + case "min_hash": + o := NewMinHashTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "min_hash", err) + } + s.Filter = append(s.Filter, *o) case "multiplexer": o := NewMultiplexerTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -268,6 +382,18 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "pattern_replace", err) } s.Filter = append(s.Filter, *o) + case "persian_normalization": + o := NewPersianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "persian_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "persian_stem": + o := NewPersianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "persian_stem", err) + } + s.Filter = append(s.Filter, *o) case "porter_stem": o := NewPorterStemTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -292,6 +418,30 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "reverse", err) } s.Filter = append(s.Filter, *o) + case "russian_stem": + o := NewRussianStemTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "russian_stem", err) + } + s.Filter = append(s.Filter, *o) + case "scandinavian_folding": + o := NewScandinavianFoldingTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "scandinavian_folding", err) + } + s.Filter = append(s.Filter, *o) + case "scandinavian_normalization": + o := NewScandinavianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "scandinavian_normalization", err) + } + s.Filter = append(s.Filter, *o) + case "serbian_normalization": + o := NewSerbianNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "serbian_normalization", err) + } + s.Filter = append(s.Filter, *o) case "shingle": o := NewShingleTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -304,6 +454,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "snowball", err) } s.Filter = append(s.Filter, *o) + case "sorani_normalization": + o := NewSoraniNormalizationTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "sorani_normalization", err) + } + s.Filter = append(s.Filter, *o) case "stemmer_override": o := NewStemmerOverrideTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -370,6 +526,12 @@ func (s *CategorizationAnalyzerDefinition) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "word_delimiter", err) } s.Filter = append(s.Filter, *o) + case "ja_stop": + o := NewJaStopTokenFilter() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "ja_stop", err) + } + s.Filter = append(s.Filter, *o) case "kuromoji_stemmer": o := NewKuromojiStemmerTokenFilter() if err := localDec.Decode(&o); err != nil { @@ -571,8 +733,6 @@ func NewCategorizationAnalyzerDefinition() *CategorizationAnalyzerDefinition { return r } -// true - type CategorizationAnalyzerDefinitionVariant interface { CategorizationAnalyzerDefinitionCaster() *CategorizationAnalyzerDefinition } @@ -580,3 +740,8 @@ type CategorizationAnalyzerDefinitionVariant interface { func (s *CategorizationAnalyzerDefinition) CategorizationAnalyzerDefinitionCaster() *CategorizationAnalyzerDefinition { return s } + +func (s *CategorizationAnalyzerDefinition) CategorizationAnalyzerCaster() *CategorizationAnalyzer { + o := CategorizationAnalyzer(s) + return &o +} diff --git a/typedapi/types/categorizetextaggregation.go b/typedapi/types/categorizetextaggregation.go index d6f44b7f73..f268835278 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CategorizeTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1117-L1183 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1117-L1183 type CategorizeTextAggregation struct { // CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized // before being categorized. @@ -270,8 +270,6 @@ func NewCategorizeTextAggregation() *CategorizeTextAggregation { return r } -// true - type CategorizeTextAggregationVariant interface { CategorizeTextAggregationCaster() *CategorizeTextAggregation } diff --git a/typedapi/types/categorizetextanalyzer.go b/typedapi/types/categorizetextanalyzer.go index e411e81add..0d4db800c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // CustomCategorizeTextAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1185-L1188 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1185-L1188 type CategorizeTextAnalyzer any type CategorizeTextAnalyzerVariant interface { diff --git a/typedapi/types/category.go b/typedapi/types/category.go index 9027515c6c..67eba4a983 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Category type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Category.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -232,5 +232,3 @@ func NewCategory() *Category { return r } - -// false diff --git a/typedapi/types/catnodecolumns.go b/typedapi/types/catnodecolumns.go new file mode 100644 index 0000000000..dc3bdfca6b --- /dev/null +++ b/typedapi/types/catnodecolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catnodecolumn" +) + +// CatNodeColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1285-L1285 +type CatNodeColumns []catnodecolumn.CatNodeColumn diff --git a/typedapi/types/catrecoverycolumns.go b/typedapi/types/catrecoverycolumns.go new file mode 100644 index 0000000000..da7e150a13 --- /dev/null +++ b/typedapi/types/catrecoverycolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catrecoverycolumn" +) + +// CatRecoveryColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1286-L1286 +type CatRecoveryColumns []catrecoverycolumn.CatRecoveryColumn diff --git a/typedapi/types/catsegmentscolumns.go b/typedapi/types/catsegmentscolumns.go new file mode 100644 index 0000000000..60124b6f07 --- /dev/null +++ b/typedapi/types/catsegmentscolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catsegmentscolumn" +) + +// CatSegmentsColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1287-L1287 +type CatSegmentsColumns []catsegmentscolumn.CatSegmentsColumn diff --git a/typedapi/types/catshardcolumns.go b/typedapi/types/catshardcolumns.go new file mode 100644 index 0000000000..820229fe23 --- /dev/null +++ b/typedapi/types/catshardcolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catshardcolumn" +) + +// CatShardColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1950-L1950 +type CatShardColumns []catshardcolumn.CatShardColumn diff --git a/typedapi/types/catsnapshotscolumns.go b/typedapi/types/catsnapshotscolumns.go new file mode 100644 index 0000000000..f7b1f89ba7 --- /dev/null +++ b/typedapi/types/catsnapshotscolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catsnapshotscolumn" +) + +// CatSnapshotsColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1288-L1288 +type CatSnapshotsColumns []catsnapshotscolumn.CatSnapshotsColumn diff --git a/typedapi/types/catthreadpoolcolumns.go b/typedapi/types/catthreadpoolcolumns.go new file mode 100644 index 0000000000..89932ed02a --- /dev/null +++ b/typedapi/types/catthreadpoolcolumns.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catthreadpoolcolumn" +) + +// CatThreadPoolColumns type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L2053-L2053 +type CatThreadPoolColumns []catthreadpoolcolumn.CatThreadPoolColumn diff --git a/typedapi/types/cattrainedmodelscolumns.go b/typedapi/types/cattrainedmodelscolumns.go index 3aef53ddce..1b39f217c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // CatTrainedModelsColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L636-L638 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1365-L1367 type CatTrainedModelsColumns []cattrainedmodelscolumn.CatTrainedModelsColumn diff --git a/typedapi/types/cattransformcolumns.go b/typedapi/types/cattransformcolumns.go index e2c2d4dcb8..28be103087 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // CatTransformColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1574-L1574 type CatTransformColumns []cattransformcolumn.CatTransformColumn diff --git a/typedapi/types/ccr.go b/typedapi/types/ccr.go index acfe13808b..31142d97e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Ccr type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L344-L347 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L344-L347 type Ccr struct { AutoFollowPatternsCount int `json:"auto_follow_patterns_count"` Available bool `json:"available"` @@ -125,5 +125,3 @@ func NewCcr() *Ccr { return r } - -// false diff --git a/typedapi/types/ccrshardstats.go b/typedapi/types/ccrshardstats.go index b6a32960f8..ea795a4eae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CcrShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/_types/FollowIndexStats.ts#L37-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -451,5 +451,3 @@ func NewCcrShardStats() *CcrShardStats { return r } - -// false diff --git a/typedapi/types/ccsstats.go b/typedapi/types/ccsstats.go new file mode 100644 index 0000000000..a1053b2559 --- /dev/null +++ b/typedapi/types/ccsstats.go @@ -0,0 +1,44 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +// CCSStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L769-L784 +type CCSStats struct { + // Clusters Contains remote cluster settings and metrics collected from them. + // The keys are cluster names, and the values are per-cluster data. + // Only present if `include_remotes` option is set to true. + Clusters map[string]RemoteClusterInfo `json:"clusters,omitempty"` + // Esql_ Information about ES|QL cross-cluster query usage. + Esql_ *CCSUsageStats `json:"_esql,omitempty"` + // Search_ Information about cross-cluster search usage. + Search_ CCSUsageStats `json:"_search"` +} + +// NewCCSStats returns a CCSStats. +func NewCCSStats() *CCSStats { + r := &CCSStats{ + Clusters: make(map[string]RemoteClusterInfo), + } + + return r +} diff --git a/typedapi/types/ccsusageclusterstats.go b/typedapi/types/ccsusageclusterstats.go new file mode 100644 index 0000000000..db2dcf6c87 --- /dev/null +++ b/typedapi/types/ccsusageclusterstats.go @@ -0,0 +1,110 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CCSUsageClusterStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L855-L862 +type CCSUsageClusterStats struct { + // Skipped The total number of cross-cluster search requests for which this cluster was + // skipped. + Skipped int `json:"skipped"` + // Took Statistics about the time taken to execute requests against this cluster. + Took CCSUsageTimeValue `json:"took"` + // Total The total number of successful (not skipped) cross-cluster search requests + // that were executed against this cluster. This may include requests where + // partial results were returned, but not requests in which the cluster has been + // skipped entirely. + Total int `json:"total"` +} + +func (s *CCSUsageClusterStats) 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 "skipped": + + 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", "Skipped", err) + } + s.Skipped = value + case float64: + f := int(v) + s.Skipped = f + } + + case "took": + if err := dec.Decode(&s.Took); err != nil { + return fmt.Errorf("%s | %w", "Took", err) + } + + case "total": + + 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", "Total", err) + } + s.Total = value + case float64: + f := int(v) + s.Total = f + } + + } + } + return nil +} + +// NewCCSUsageClusterStats returns a CCSUsageClusterStats. +func NewCCSUsageClusterStats() *CCSUsageClusterStats { + r := &CCSUsageClusterStats{} + + return r +} diff --git a/typedapi/types/ccsusagestats.go b/typedapi/types/ccsusagestats.go new file mode 100644 index 0000000000..a3cb636c88 --- /dev/null +++ b/typedapi/types/ccsusagestats.go @@ -0,0 +1,236 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// CCSUsageStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L819-L844 +type CCSUsageStats struct { + // Clients Statistics about the clients that executed cross-cluster search requests. The + // keys are the names of the clients, and the values are the number of requests + // that were executed by that client. Only known clients (such as `kibana` or + // `elasticsearch`) are counted. + Clients map[string]int `json:"clients"` + // Clusters Statistics about the clusters that were queried in cross-cluster search + // requests. The keys are cluster names, and the values are per-cluster + // telemetry data. This also includes the local cluster itself, which uses the + // name `(local)`. + Clusters map[string]CCSUsageClusterStats `json:"clusters"` + // FailureReasons Statistics about the reasons for cross-cluster search request failures. The + // keys are the failure reason names and the values are the number of requests + // that failed for that reason. + FailureReasons map[string]int `json:"failure_reasons"` + // Features The keys are the names of the search feature, and the values are the number + // of requests that used that feature. Single request can use more than one + // feature (e.g. both `async` and `wildcard`). + Features map[string]int `json:"features"` + // RemotesPerSearchAvg The average number of remote clusters that were queried in a single + // cross-cluster search request. + RemotesPerSearchAvg Float64 `json:"remotes_per_search_avg"` + // RemotesPerSearchMax The maximum number of remote clusters that were queried in a single + // cross-cluster search request. + RemotesPerSearchMax int `json:"remotes_per_search_max"` + // Skipped The total number of cross-cluster search requests (successful or failed) that + // had at least one remote cluster skipped. + Skipped int `json:"skipped"` + // Success The total number of cross-cluster search requests that have been successfully + // executed by the cluster. + Success int `json:"success"` + // Took Statistics about the time taken to execute cross-cluster search requests. + Took CCSUsageTimeValue `json:"took"` + // TookMrtFalse Statistics about the time taken to execute cross-cluster search requests for + // which the `ccs_minimize_roundtrips` setting was set to `false`. + TookMrtFalse *CCSUsageTimeValue `json:"took_mrt_false,omitempty"` + // TookMrtTrue Statistics about the time taken to execute cross-cluster search requests for + // which the `ccs_minimize_roundtrips` setting was set to `true`. + TookMrtTrue *CCSUsageTimeValue `json:"took_mrt_true,omitempty"` + // Total The total number of cross-cluster search requests that have been executed by + // the cluster. + Total int `json:"total"` +} + +func (s *CCSUsageStats) 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 "clients": + if s.Clients == nil { + s.Clients = make(map[string]int, 0) + } + if err := dec.Decode(&s.Clients); err != nil { + return fmt.Errorf("%s | %w", "Clients", err) + } + + case "clusters": + if s.Clusters == nil { + s.Clusters = make(map[string]CCSUsageClusterStats, 0) + } + if err := dec.Decode(&s.Clusters); err != nil { + return fmt.Errorf("%s | %w", "Clusters", err) + } + + case "failure_reasons": + if s.FailureReasons == nil { + s.FailureReasons = make(map[string]int, 0) + } + if err := dec.Decode(&s.FailureReasons); err != nil { + return fmt.Errorf("%s | %w", "FailureReasons", err) + } + + case "features": + if s.Features == nil { + s.Features = make(map[string]int, 0) + } + if err := dec.Decode(&s.Features); err != nil { + return fmt.Errorf("%s | %w", "Features", err) + } + + case "remotes_per_search_avg": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 64) + if err != nil { + return fmt.Errorf("%s | %w", "RemotesPerSearchAvg", err) + } + f := Float64(value) + s.RemotesPerSearchAvg = f + case float64: + f := Float64(v) + s.RemotesPerSearchAvg = f + } + + case "remotes_per_search_max": + + 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", "RemotesPerSearchMax", err) + } + s.RemotesPerSearchMax = value + case float64: + f := int(v) + s.RemotesPerSearchMax = f + } + + case "skipped": + + 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", "Skipped", err) + } + s.Skipped = value + case float64: + f := int(v) + s.Skipped = f + } + + case "success": + + 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", "Success", err) + } + s.Success = value + case float64: + f := int(v) + s.Success = f + } + + case "took": + if err := dec.Decode(&s.Took); err != nil { + return fmt.Errorf("%s | %w", "Took", err) + } + + case "took_mrt_false": + if err := dec.Decode(&s.TookMrtFalse); err != nil { + return fmt.Errorf("%s | %w", "TookMrtFalse", err) + } + + case "took_mrt_true": + if err := dec.Decode(&s.TookMrtTrue); err != nil { + return fmt.Errorf("%s | %w", "TookMrtTrue", err) + } + + case "total": + + 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", "Total", err) + } + s.Total = value + case float64: + f := int(v) + s.Total = f + } + + } + } + return nil +} + +// NewCCSUsageStats returns a CCSUsageStats. +func NewCCSUsageStats() *CCSUsageStats { + r := &CCSUsageStats{ + Clients: make(map[string]int), + Clusters: make(map[string]CCSUsageClusterStats), + FailureReasons: make(map[string]int), + Features: make(map[string]int), + } + + return r +} diff --git a/typedapi/types/ccsusagetimevalue.go b/typedapi/types/ccsusagetimevalue.go new file mode 100644 index 0000000000..87a6b4966d --- /dev/null +++ b/typedapi/types/ccsusagetimevalue.go @@ -0,0 +1,83 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// CCSUsageTimeValue type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L846-L853 +type CCSUsageTimeValue struct { + // Avg The average time taken to execute a request, in milliseconds. + Avg int64 `json:"avg"` + // Max The maximum time taken to execute a request, in milliseconds. + Max int64 `json:"max"` + // P90 The 90th percentile of the time taken to execute requests, in milliseconds. + P90 int64 `json:"p90"` +} + +func (s *CCSUsageTimeValue) 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 "avg": + if err := dec.Decode(&s.Avg); err != nil { + return fmt.Errorf("%s | %w", "Avg", err) + } + + case "max": + if err := dec.Decode(&s.Max); err != nil { + return fmt.Errorf("%s | %w", "Max", err) + } + + case "p90": + if err := dec.Decode(&s.P90); err != nil { + return fmt.Errorf("%s | %w", "P90", err) + } + + } + } + return nil +} + +// NewCCSUsageTimeValue returns a CCSUsageTimeValue. +func NewCCSUsageTimeValue() *CCSUsageTimeValue { + r := &CCSUsageTimeValue{} + + return r +} diff --git a/typedapi/types/certificateinformation.go b/typedapi/types/certificateinformation.go index a91c1dbbb9..3a59796353 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CertificateInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ssl/certificates/types.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -172,5 +172,3 @@ func NewCertificateInformation() *CertificateInformation { return r } - -// false diff --git a/typedapi/types/cgroup.go b/typedapi/types/cgroup.go index 2ce72fbe3b..b643c3ec78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Cgroup type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L497-L510 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L499-L512 type Cgroup struct { // Cpu Contains statistics about `cpu` control group for the node. Cpu *CgroupCpu `json:"cpu,omitempty"` @@ -38,5 +38,3 @@ func NewCgroup() *Cgroup { return r } - -// false diff --git a/typedapi/types/cgroupcpu.go b/typedapi/types/cgroupcpu.go index 8544ad72fb..7bee9de5a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CgroupCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L523-L540 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L525-L542 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 @@ -122,5 +122,3 @@ func NewCgroupCpu() *CgroupCpu { return r } - -// false diff --git a/typedapi/types/cgroupcpustat.go b/typedapi/types/cgroupcpustat.go index 5d45a25793..8825230472 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CgroupCpuStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L542-L555 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L544-L557 type CgroupCpuStat struct { // NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that // have elapsed. @@ -105,5 +105,3 @@ func NewCgroupCpuStat() *CgroupCpuStat { return r } - -// false diff --git a/typedapi/types/cgroupmemory.go b/typedapi/types/cgroupmemory.go index f4eefed177..23ae378d3f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CgroupMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L557-L573 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L559-L575 type CgroupMemory struct { // ControlGroup The `memory` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` @@ -111,5 +111,3 @@ func NewCgroupMemory() *CgroupMemory { return r } - -// false diff --git a/typedapi/types/chaininput.go b/typedapi/types/chaininput.go index 68ec26c234..7c59776d74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ChainInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L35-L37 type ChainInput struct { Inputs []map[string]WatcherInput `json:"inputs"` } @@ -34,8 +34,6 @@ func NewChainInput() *ChainInput { return r } -// true - type ChainInputVariant interface { ChainInputCaster() *ChainInput } diff --git a/typedapi/types/charfilter.go b/typedapi/types/charfilter.go index b281c6c352..68dfcd57d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // CharFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/char_filters.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6e074f8f49..d9e44f5fac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ package types // IcuNormalizationCharFilter // KuromojiIterationMarkCharFilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/char_filters.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fc776161af..933845d525 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CharFilterDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L46-L49 type CharFilterDetail struct { FilteredText []string `json:"filtered_text"` Name string `json:"name"` @@ -80,5 +80,3 @@ func NewCharFilterDetail() *CharFilterDetail { return r } - -// false diff --git a/typedapi/types/charfiltertypes.go b/typedapi/types/charfiltertypes.go index 38236e7b1a..b112ed07d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // CharFilterTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L228-L261 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L315-L352 type CharFilterTypes struct { // AnalyzerTypes Contains statistics about analyzer types used in selected nodes. AnalyzerTypes []FieldTypes `json:"analyzer_types"` @@ -38,15 +38,17 @@ type CharFilterTypes struct { CharFilterTypes []FieldTypes `json:"char_filter_types"` // FilterTypes Contains statistics about token filter types used in selected nodes. FilterTypes []FieldTypes `json:"filter_types"` + // Synonyms Contains statistics about synonyms types used in selected nodes. + Synonyms map[string]SynonymsStats `json:"synonyms"` // TokenizerTypes Contains statistics about tokenizer types used in selected nodes. TokenizerTypes []FieldTypes `json:"tokenizer_types"` } // NewCharFilterTypes returns a CharFilterTypes. func NewCharFilterTypes() *CharFilterTypes { - r := &CharFilterTypes{} + r := &CharFilterTypes{ + Synonyms: make(map[string]SynonymsStats), + } return r } - -// false diff --git a/typedapi/types/chargrouptokenizer.go b/typedapi/types/chargrouptokenizer.go index eb7ba4463c..7026e576d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CharGroupTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L31-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L31-L38 type CharGroupTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` TokenizeOnChars []string `json:"tokenize_on_chars"` @@ -112,8 +112,6 @@ func NewCharGroupTokenizer() *CharGroupTokenizer { return r } -// true - type CharGroupTokenizerVariant interface { CharGroupTokenizerCaster() *CharGroupTokenizer } @@ -121,3 +119,8 @@ type CharGroupTokenizerVariant interface { func (s *CharGroupTokenizer) CharGroupTokenizerCaster() *CharGroupTokenizer { return s } + +func (s *CharGroupTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/checkpointing.go b/typedapi/types/checkpointing.go index 68f2342af3..3878517b74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Checkpointing type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L102-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/get_transform_stats/types.ts#L102-L110 type Checkpointing struct { ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"` ChangesLastDetectedAtString DateTime `json:"changes_last_detected_at_string,omitempty"` @@ -133,5 +133,3 @@ func NewCheckpointing() *Checkpointing { return r } - -// false diff --git a/typedapi/types/checkpointstats.go b/typedapi/types/checkpointstats.go index d3fc088d93..94a2824b2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CheckpointStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L93-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/get_transform_stats/types.ts#L93-L100 type CheckpointStats struct { Checkpoint int64 `json:"checkpoint"` CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"` @@ -107,5 +107,3 @@ func NewCheckpointStats() *CheckpointStats { return r } - -// false diff --git a/typedapi/types/childrenaggregate.go b/typedapi/types/childrenaggregate.go index 865b648e41..5502215664 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ChildrenAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L888-L892 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L890-L894 type ChildrenAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewChildrenAggregate() *ChildrenAggregate { return r } - -// false diff --git a/typedapi/types/childrenaggregation.go b/typedapi/types/childrenaggregation.go index 40828626b1..6361abc7c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ChildrenAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L121-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L121-L126 type ChildrenAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` @@ -68,8 +68,6 @@ func NewChildrenAggregation() *ChildrenAggregation { return r } -// true - type ChildrenAggregationVariant interface { ChildrenAggregationCaster() *ChildrenAggregation } diff --git a/typedapi/types/chineseanalyzer.go b/typedapi/types/chineseanalyzer.go index b5a7bdeced..86b780e06e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // ChineseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L120-L124 type ChineseAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *ChineseAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *ChineseAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewChineseAnalyzer() *ChineseAnalyzer { return r } -// true - type ChineseAnalyzerVariant interface { ChineseAnalyzerCaster() *ChineseAnalyzer } @@ -121,3 +108,8 @@ type ChineseAnalyzerVariant interface { func (s *ChineseAnalyzer) ChineseAnalyzerCaster() *ChineseAnalyzer { return s } + +func (s *ChineseAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/chisquareheuristic.go b/typedapi/types/chisquareheuristic.go index 1ad8fda99d..64461e55ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ChiSquareHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L782-L791 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -96,8 +96,6 @@ func NewChiSquareHeuristic() *ChiSquareHeuristic { return r } -// true - type ChiSquareHeuristicVariant interface { ChiSquareHeuristicCaster() *ChiSquareHeuristic } diff --git a/typedapi/types/chunkingconfig.go b/typedapi/types/chunkingconfig.go index 3d9daf1c25..4c6124a7a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ChunkingConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L251-L264 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -83,8 +83,6 @@ func NewChunkingConfig() *ChunkingConfig { return r } -// true - type ChunkingConfigVariant interface { ChunkingConfigCaster() *ChunkingConfig } diff --git a/typedapi/types/circleprocessor.go b/typedapi/types/circleprocessor.go index f92a3688de..924a4a4c54 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CircleProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L574-L597 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L574-L597 type CircleProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -185,8 +185,6 @@ func NewCircleProcessor() *CircleProcessor { return r } -// true - type CircleProcessorVariant interface { CircleProcessorCaster() *CircleProcessor } diff --git a/typedapi/types/cjkanalyzer.go b/typedapi/types/cjkanalyzer.go index 492f630784..6f2896e0c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // CjkAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L126-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L126-L130 type CjkAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *CjkAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *CjkAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewCjkAnalyzer() *CjkAnalyzer { return r } -// true - type CjkAnalyzerVariant interface { CjkAnalyzerCaster() *CjkAnalyzer } @@ -121,3 +108,8 @@ type CjkAnalyzerVariant interface { func (s *CjkAnalyzer) CjkAnalyzerCaster() *CjkAnalyzer { return s } + +func (s *CjkAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/cjkbigramtokenfilter.go b/typedapi/types/cjkbigramtokenfilter.go new file mode 100644 index 0000000000..3956dc5c33 --- /dev/null +++ b/typedapi/types/cjkbigramtokenfilter.go @@ -0,0 +1,130 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cjkbigramignoredscript" +) + +// CjkBigramTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L466-L472 +type CjkBigramTokenFilter struct { + // IgnoredScripts Array of character scripts for which to disable bigrams. + IgnoredScripts []cjkbigramignoredscript.CjkBigramIgnoredScript `json:"ignored_scripts,omitempty"` + // OutputUnigrams If `true`, emit tokens in both bigram and unigram form. If `false`, a CJK + // character is output in unigram form when it has no adjacent characters. + // Defaults to `false`. + OutputUnigrams *bool `json:"output_unigrams,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *CjkBigramTokenFilter) 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 "ignored_scripts": + if err := dec.Decode(&s.IgnoredScripts); err != nil { + return fmt.Errorf("%s | %w", "IgnoredScripts", err) + } + + case "output_unigrams": + 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", "OutputUnigrams", err) + } + s.OutputUnigrams = &value + case bool: + s.OutputUnigrams = &v + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CjkBigramTokenFilter) MarshalJSON() ([]byte, error) { + type innerCjkBigramTokenFilter CjkBigramTokenFilter + tmp := innerCjkBigramTokenFilter{ + IgnoredScripts: s.IgnoredScripts, + OutputUnigrams: s.OutputUnigrams, + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "cjk_bigram" + + return json.Marshal(tmp) +} + +// NewCjkBigramTokenFilter returns a CjkBigramTokenFilter. +func NewCjkBigramTokenFilter() *CjkBigramTokenFilter { + r := &CjkBigramTokenFilter{} + + return r +} + +type CjkBigramTokenFilterVariant interface { + CjkBigramTokenFilterCaster() *CjkBigramTokenFilter +} + +func (s *CjkBigramTokenFilter) CjkBigramTokenFilterCaster() *CjkBigramTokenFilter { + return s +} + +func (s *CjkBigramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/cjkwidthtokenfilter.go b/typedapi/types/cjkwidthtokenfilter.go new file mode 100644 index 0000000000..b807803c30 --- /dev/null +++ b/typedapi/types/cjkwidthtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// CjkWidthTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L474-L476 +type CjkWidthTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *CjkWidthTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CjkWidthTokenFilter) MarshalJSON() ([]byte, error) { + type innerCjkWidthTokenFilter CjkWidthTokenFilter + tmp := innerCjkWidthTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "cjk_width" + + return json.Marshal(tmp) +} + +// NewCjkWidthTokenFilter returns a CjkWidthTokenFilter. +func NewCjkWidthTokenFilter() *CjkWidthTokenFilter { + r := &CjkWidthTokenFilter{} + + return r +} + +type CjkWidthTokenFilterVariant interface { + CjkWidthTokenFilterCaster() *CjkWidthTokenFilter +} + +func (s *CjkWidthTokenFilter) CjkWidthTokenFilterCaster() *CjkWidthTokenFilter { + return s +} + +func (s *CjkWidthTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/classictokenfilter.go b/typedapi/types/classictokenfilter.go new file mode 100644 index 0000000000..bf258583b0 --- /dev/null +++ b/typedapi/types/classictokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ClassicTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L478-L480 +type ClassicTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ClassicTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ClassicTokenFilter) MarshalJSON() ([]byte, error) { + type innerClassicTokenFilter ClassicTokenFilter + tmp := innerClassicTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "classic" + + return json.Marshal(tmp) +} + +// NewClassicTokenFilter returns a ClassicTokenFilter. +func NewClassicTokenFilter() *ClassicTokenFilter { + r := &ClassicTokenFilter{} + + return r +} + +type ClassicTokenFilterVariant interface { + ClassicTokenFilterCaster() *ClassicTokenFilter +} + +func (s *ClassicTokenFilter) ClassicTokenFilterCaster() *ClassicTokenFilter { + return s +} + +func (s *ClassicTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/classictokenizer.go b/typedapi/types/classictokenizer.go index f1e659d8ce..de038da079 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClassicTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L40-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L40-L46 type ClassicTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewClassicTokenizer() *ClassicTokenizer { return r } -// true - type ClassicTokenizerVariant interface { ClassicTokenizerCaster() *ClassicTokenizer } @@ -114,3 +112,8 @@ type ClassicTokenizerVariant interface { func (s *ClassicTokenizer) ClassicTokenizerCaster() *ClassicTokenizer { return s } + +func (s *ClassicTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/classificationinferenceoptions.go b/typedapi/types/classificationinferenceoptions.go index 453a93242f..8496f91857 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L118-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -144,8 +144,6 @@ func NewClassificationInferenceOptions() *ClassificationInferenceOptions { return r } -// true - type ClassificationInferenceOptionsVariant interface { ClassificationInferenceOptionsCaster() *ClassificationInferenceOptions } diff --git a/typedapi/types/cleanuprepositoryresults.go b/typedapi/types/cleanuprepositoryresults.go index 2fcfefeb16..f6a9598d38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CleanupRepositoryResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37 type CleanupRepositoryResults struct { // DeletedBlobs The number of binary large objects (blobs) removed from the snapshot // repository during cleanup operations. @@ -98,5 +98,3 @@ func NewCleanupRepositoryResults() *CleanupRepositoryResults { return r } - -// false diff --git a/typedapi/types/client.go b/typedapi/types/client.go index 10760cc610..807d5494bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Client type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L720-L767 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L722-L769 type Client struct { // Agent Reported agent for the HTTP client. // If unavailable, this property is not included in the response. @@ -235,5 +235,3 @@ func NewClient() *Client { return r } - -// false diff --git a/typedapi/types/closeindexresult.go b/typedapi/types/closeindexresult.go index ca0a57f54a..c8e4263713 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CloseIndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/close/CloseIndexResponse.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/close/CloseIndexResponse.ts#L32-L35 type CloseIndexResult struct { Closed bool `json:"closed"` Shards map[string]CloseShardResult `json:"shards,omitempty"` @@ -87,5 +87,3 @@ func NewCloseIndexResult() *CloseIndexResult { return r } - -// false diff --git a/typedapi/types/closeshardresult.go b/typedapi/types/closeshardresult.go index 0b7932bbb5..56bbb376bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // CloseShardResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/close/CloseIndexResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/close/CloseIndexResponse.ts#L37-L39 type CloseShardResult struct { Failures []ShardFailure `json:"failures"` } @@ -33,5 +33,3 @@ func NewCloseShardResult() *CloseShardResult { return r } - -// false diff --git a/typedapi/types/clusterappliedstats.go b/typedapi/types/clusterappliedstats.go index 6a5f5f7119..86abf7528f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterAppliedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L221-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L223-L225 type ClusterAppliedStats struct { Recordings []Recording `json:"recordings,omitempty"` } @@ -33,5 +33,3 @@ func NewClusterAppliedStats() *ClusterAppliedStats { return r } - -// false diff --git a/typedapi/types/clustercomponenttemplate.go b/typedapi/types/clustercomponenttemplate.go index 188591ec34..1f5a88a6ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ClusterComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/_types/ComponentTemplate.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/_types/ComponentTemplate.ts#L27-L30 type ClusterComponentTemplate struct { ComponentTemplate ComponentTemplateNode `json:"component_template"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewClusterComponentTemplate() *ClusterComponentTemplate { return r } - -// false diff --git a/typedapi/types/clusterdetails.go b/typedapi/types/clusterdetails.go index 6f103848f1..176f79511c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L45-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L45-L52 type ClusterDetails struct { Failures []ShardFailure `json:"failures,omitempty"` Indices string `json:"indices"` @@ -115,5 +115,3 @@ func NewClusterDetails() *ClusterDetails { return r } - -// false diff --git a/typedapi/types/clusterfilesystem.go b/typedapi/types/clusterfilesystem.go index c15e3c9db1..27f9e7ab77 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,19 +31,42 @@ import ( // ClusterFileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L34-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L35-L75 type ClusterFileSystem struct { + // Available Total number of bytes available to JVM in file stores across all selected + // nodes. + // Depending on operating system or process-level restrictions, this number may + // be less than `nodes.fs.free_in_byes`. + // This is the actual amount of free disk space the selected Elasticsearch nodes + // can use. + Available ByteSize `json:"available,omitempty"` // AvailableInBytes Total number of bytes available to JVM in file stores across all selected // nodes. // Depending on operating system or process-level restrictions, this number may // be less than `nodes.fs.free_in_byes`. // This is the actual amount of free disk space the selected Elasticsearch nodes // can use. - AvailableInBytes int64 `json:"available_in_bytes"` - // FreeInBytes Total number of unallocated bytes in file stores across all selected nodes. - FreeInBytes int64 `json:"free_in_bytes"` + AvailableInBytes *int64 `json:"available_in_bytes,omitempty"` + FloodStageFreeSpace ByteSize `json:"flood_stage_free_space,omitempty"` + FloodStageFreeSpaceInBytes *int64 `json:"flood_stage_free_space_in_bytes,omitempty"` + // Free Total number of unallocated bytes in file stores across all selected nodes. + Free ByteSize `json:"free,omitempty"` + // FreeInBytes Total number, in bytes, of unallocated bytes in file stores across all + // selected nodes. + FreeInBytes *int64 `json:"free_in_bytes,omitempty"` + FrozenFloodStageFreeSpace ByteSize `json:"frozen_flood_stage_free_space,omitempty"` + FrozenFloodStageFreeSpaceInBytes *int64 `json:"frozen_flood_stage_free_space_in_bytes,omitempty"` + HighWatermarkFreeSpace ByteSize `json:"high_watermark_free_space,omitempty"` + HighWatermarkFreeSpaceInBytes *int64 `json:"high_watermark_free_space_in_bytes,omitempty"` + LowWatermarkFreeSpace ByteSize `json:"low_watermark_free_space,omitempty"` + LowWatermarkFreeSpaceInBytes *int64 `json:"low_watermark_free_space_in_bytes,omitempty"` + Mount *string `json:"mount,omitempty"` + Path *string `json:"path,omitempty"` + // Total Total size of all file stores across all selected nodes. + Total ByteSize `json:"total,omitempty"` // TotalInBytes Total size, in bytes, of all file stores across all selected nodes. - TotalInBytes int64 `json:"total_in_bytes"` + TotalInBytes *int64 `json:"total_in_bytes,omitempty"` + Type *string `json:"type,omitempty"` } func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error { @@ -61,6 +84,11 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error { switch t { + case "available": + if err := dec.Decode(&s.Available); err != nil { + return fmt.Errorf("%s | %w", "Available", err) + } + case "available_in_bytes": var tmp any dec.Decode(&tmp) @@ -70,10 +98,35 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "AvailableInBytes", err) } - s.AvailableInBytes = value + s.AvailableInBytes = &value case float64: f := int64(v) - s.AvailableInBytes = f + s.AvailableInBytes = &f + } + + case "flood_stage_free_space": + if err := dec.Decode(&s.FloodStageFreeSpace); err != nil { + return fmt.Errorf("%s | %w", "FloodStageFreeSpace", err) + } + + case "flood_stage_free_space_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "FloodStageFreeSpaceInBytes", err) + } + s.FloodStageFreeSpaceInBytes = &value + case float64: + f := int64(v) + s.FloodStageFreeSpaceInBytes = &f + } + + case "free": + if err := dec.Decode(&s.Free); err != nil { + return fmt.Errorf("%s | %w", "Free", err) } case "free_in_bytes": @@ -85,10 +138,99 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "FreeInBytes", err) } - s.FreeInBytes = value + s.FreeInBytes = &value + case float64: + f := int64(v) + s.FreeInBytes = &f + } + + case "frozen_flood_stage_free_space": + if err := dec.Decode(&s.FrozenFloodStageFreeSpace); err != nil { + return fmt.Errorf("%s | %w", "FrozenFloodStageFreeSpace", err) + } + + case "frozen_flood_stage_free_space_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "FrozenFloodStageFreeSpaceInBytes", err) + } + s.FrozenFloodStageFreeSpaceInBytes = &value case float64: f := int64(v) - s.FreeInBytes = f + s.FrozenFloodStageFreeSpaceInBytes = &f + } + + case "high_watermark_free_space": + if err := dec.Decode(&s.HighWatermarkFreeSpace); err != nil { + return fmt.Errorf("%s | %w", "HighWatermarkFreeSpace", err) + } + + case "high_watermark_free_space_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "HighWatermarkFreeSpaceInBytes", err) + } + s.HighWatermarkFreeSpaceInBytes = &value + case float64: + f := int64(v) + s.HighWatermarkFreeSpaceInBytes = &f + } + + case "low_watermark_free_space": + if err := dec.Decode(&s.LowWatermarkFreeSpace); err != nil { + return fmt.Errorf("%s | %w", "LowWatermarkFreeSpace", err) + } + + case "low_watermark_free_space_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "LowWatermarkFreeSpaceInBytes", err) + } + s.LowWatermarkFreeSpaceInBytes = &value + case float64: + f := int64(v) + s.LowWatermarkFreeSpaceInBytes = &f + } + + case "mount": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Mount", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Mount = &o + + case "path": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Path", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Path = &o + + case "total": + if err := dec.Decode(&s.Total); err != nil { + return fmt.Errorf("%s | %w", "Total", err) } case "total_in_bytes": @@ -100,12 +242,24 @@ func (s *ClusterFileSystem) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "TotalInBytes", err) } - s.TotalInBytes = value + s.TotalInBytes = &value case float64: f := int64(v) - s.TotalInBytes = f + s.TotalInBytes = &f } + 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 @@ -117,5 +271,3 @@ func NewClusterFileSystem() *ClusterFileSystem { return r } - -// false diff --git a/typedapi/types/clusterindexingpressure.go b/typedapi/types/clusterindexingpressure.go index bbde7daf6c..b6f8989ed4 100644 --- a/typedapi/types/clusterindexingpressure.go +++ b/typedapi/types/clusterindexingpressure.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L765-L767 type ClusterIndexingPressure struct { - Memory ClusterPressureMemory `json:"memory"` + Memory NodesIndexingPressureMemory `json:"memory"` } // NewClusterIndexingPressure returns a ClusterIndexingPressure. @@ -33,5 +33,3 @@ func NewClusterIndexingPressure() *ClusterIndexingPressure { return r } - -// false diff --git a/typedapi/types/clusterindices.go b/typedapi/types/clusterindices.go index d8339d19bb..71851f265b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,27 +31,37 @@ import ( // ClusterIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L74-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L100-L147 type ClusterIndices struct { // Analysis Contains statistics about analyzers and analyzer components used in selected // nodes. - Analysis CharFilterTypes `json:"analysis"` + Analysis *CharFilterTypes `json:"analysis,omitempty"` // Completion Contains statistics about memory used for completion in selected nodes. Completion CompletionStats `json:"completion"` // Count Total number of indices with shards assigned to selected nodes. Count int64 `json:"count"` + // DenseVector Contains statistics about indexed dense vector + DenseVector DenseVectorStats `json:"dense_vector"` // Docs Contains counts for documents in selected nodes. Docs DocStats `json:"docs"` // Fielddata Contains statistics about the field data cache of selected nodes. Fielddata FielddataStats `json:"fielddata"` // Mappings Contains statistics about field mappings in selected nodes. - Mappings FieldTypesMappings `json:"mappings"` + Mappings *FieldTypesMappings `json:"mappings,omitempty"` // QueryCache Contains statistics about the query cache of selected nodes. QueryCache QueryCacheStats `json:"query_cache"` + // Search Holds a snapshot of the search usage statistics. + // Used to hold the stats for a single node that's part of a + // ClusterStatsNodeResponse, as well as to + // accumulate stats for the entire cluster and return them as part of the + // ClusterStatsResponse. + Search SearchUsageStats `json:"search"` // Segments Contains statistics about segments in selected nodes. Segments SegmentsStats `json:"segments"` // Shards Contains statistics about indices with shards assigned to selected nodes. Shards ClusterIndicesShards `json:"shards"` + // SparseVector Contains statistics about indexed sparse vector + SparseVector SparseVectorStats `json:"sparse_vector"` // Store Contains statistics about the size of shards assigned to selected nodes. Store StoreStats `json:"store"` // Versions Contains statistics about analyzers and analyzer components used in selected @@ -99,6 +109,11 @@ func (s *ClusterIndices) UnmarshalJSON(data []byte) error { s.Count = f } + case "dense_vector": + if err := dec.Decode(&s.DenseVector); err != nil { + return fmt.Errorf("%s | %w", "DenseVector", err) + } + case "docs": if err := dec.Decode(&s.Docs); err != nil { return fmt.Errorf("%s | %w", "Docs", err) @@ -119,6 +134,11 @@ func (s *ClusterIndices) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "QueryCache", err) } + case "search": + if err := dec.Decode(&s.Search); err != nil { + return fmt.Errorf("%s | %w", "Search", err) + } + case "segments": if err := dec.Decode(&s.Segments); err != nil { return fmt.Errorf("%s | %w", "Segments", err) @@ -129,6 +149,11 @@ func (s *ClusterIndices) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Shards", err) } + case "sparse_vector": + if err := dec.Decode(&s.SparseVector); err != nil { + return fmt.Errorf("%s | %w", "SparseVector", err) + } + case "store": if err := dec.Decode(&s.Store); err != nil { return fmt.Errorf("%s | %w", "Store", err) @@ -150,5 +175,3 @@ func NewClusterIndices() *ClusterIndices { return r } - -// false diff --git a/typedapi/types/clusterindicesshards.go b/typedapi/types/clusterindicesshards.go index ed9fd5f585..1da1cfb4ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterIndicesShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L86-L98 type ClusterIndicesShards struct { // Index Contains statistics about shards assigned to selected nodes. Index *ClusterIndicesShardsIndex `json:"index,omitempty"` @@ -122,5 +122,3 @@ func NewClusterIndicesShards() *ClusterIndicesShards { return r } - -// false diff --git a/typedapi/types/clusterindicesshardsindex.go b/typedapi/types/clusterindicesshardsindex.go index f23b742763..4150152b97 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterIndicesShardsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L51-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L77-L84 type ClusterIndicesShardsIndex struct { // Primaries Contains statistics about the number of primary shards assigned to selected // nodes. @@ -40,5 +40,3 @@ func NewClusterIndicesShardsIndex() *ClusterIndicesShardsIndex { return r } - -// false diff --git a/typedapi/types/clusterinfo.go b/typedapi/types/clusterinfo.go index b8b0182247..2fe1344e51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L49-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L49-L55 type ClusterInfo struct { Nodes map[string]NodeDiskUsage `json:"nodes"` ReservedSizes []ReservedSize `json:"reserved_sizes"` @@ -42,5 +42,3 @@ func NewClusterInfo() *ClusterInfo { return r } - -// false diff --git a/typedapi/types/clusterinfotargets.go b/typedapi/types/clusterinfotargets.go index 37d86076a4..50f5d2112b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // ClusterInfoTargets type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L386-L386 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L388-L388 type ClusterInfoTargets []clusterinfotarget.ClusterInfoTarget diff --git a/typedapi/types/clusteringest.go b/typedapi/types/clusteringest.go index 62f1dc431b..022c33d628 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L367-L370 type ClusterIngest struct { NumberOfPipelines int `json:"number_of_pipelines"` ProcessorStats map[string]ClusterProcessor `json:"processor_stats"` @@ -89,5 +89,3 @@ func NewClusterIngest() *ClusterIngest { return r } - -// false diff --git a/typedapi/types/clusterjvm.go b/typedapi/types/clusterjvm.go index 85ddca67d3..2fcce81d58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,8 +31,10 @@ import ( // ClusterJvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L275-L292 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L372-L393 type ClusterJvm struct { + // MaxUptime Uptime duration since JVM last started. + MaxUptime Duration `json:"max_uptime,omitempty"` // MaxUptimeInMillis Uptime duration, in milliseconds, since JVM last started. MaxUptimeInMillis int64 `json:"max_uptime_in_millis"` // Mem Contains statistics about memory used by selected nodes. @@ -58,6 +60,11 @@ func (s *ClusterJvm) UnmarshalJSON(data []byte) error { switch t { + case "max_uptime": + if err := dec.Decode(&s.MaxUptime); err != nil { + return fmt.Errorf("%s | %w", "MaxUptime", err) + } + case "max_uptime_in_millis": if err := dec.Decode(&s.MaxUptimeInMillis); err != nil { return fmt.Errorf("%s | %w", "MaxUptimeInMillis", err) @@ -99,5 +106,3 @@ func NewClusterJvm() *ClusterJvm { return r } - -// false diff --git a/typedapi/types/clusterjvmmemory.go b/typedapi/types/clusterjvmmemory.go index c3a2e5454e..646d67a822 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,16 @@ import ( // ClusterJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L294-L303 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L395-L412 type ClusterJvmMemory struct { + // HeapMax Maximum amount of memory available for use by the heap across all selected + // nodes. + HeapMax ByteSize `json:"heap_max,omitempty"` // HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap across all // selected nodes. HeapMaxInBytes int64 `json:"heap_max_in_bytes"` + // HeapUsed Memory currently in use by the heap across all selected nodes. + HeapUsed ByteSize `json:"heap_used,omitempty"` // HeapUsedInBytes Memory, in bytes, currently in use by the heap across all selected nodes. HeapUsedInBytes int64 `json:"heap_used_in_bytes"` } @@ -55,6 +60,11 @@ func (s *ClusterJvmMemory) UnmarshalJSON(data []byte) error { switch t { + case "heap_max": + if err := dec.Decode(&s.HeapMax); err != nil { + return fmt.Errorf("%s | %w", "HeapMax", err) + } + case "heap_max_in_bytes": var tmp any dec.Decode(&tmp) @@ -70,6 +80,11 @@ func (s *ClusterJvmMemory) UnmarshalJSON(data []byte) error { s.HeapMaxInBytes = f } + case "heap_used": + if err := dec.Decode(&s.HeapUsed); err != nil { + return fmt.Errorf("%s | %w", "HeapUsed", err) + } + case "heap_used_in_bytes": var tmp any dec.Decode(&tmp) @@ -96,5 +111,3 @@ func NewClusterJvmMemory() *ClusterJvmMemory { return r } - -// false diff --git a/typedapi/types/clusterjvmversion.go b/typedapi/types/clusterjvmversion.go index 9cc86b40ff..9a9e8b6569 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmVersion type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L305-L335 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L414-L444 type ClusterJvmVersion struct { // BundledJdk Always `true`. All distributions come with a bundled Java Development Kit // (JDK). @@ -156,5 +156,3 @@ func NewClusterJvmVersion() *ClusterJvmVersion { return r } - -// false diff --git a/typedapi/types/clusternetworktypes.go b/typedapi/types/clusternetworktypes.go index b6f4286bde..87096ab6bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterNetworkTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L446-L455 type ClusterNetworkTypes struct { // HttpTypes Contains statistics about the HTTP network types used by selected nodes. HttpTypes map[string]int `json:"http_types"` @@ -39,5 +39,3 @@ func NewClusterNetworkTypes() *ClusterNetworkTypes { return r } - -// false diff --git a/typedapi/types/clusternode.go b/typedapi/types/clusternode.go index 83cbeb0d4b..d24cb17dec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ClusterNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/ClusterNode.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/ClusterNode.ts#L22-L24 type ClusterNode struct { Name string `json:"name"` } @@ -66,5 +66,3 @@ func NewClusterNode() *ClusterNode { return r } - -// false diff --git a/typedapi/types/clusternodecount.go b/typedapi/types/clusternodecount.go index 0f9287377f..27a4dc748c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,22 +31,24 @@ import ( // ClusterNodeCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L348-L367 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L457-L478 type ClusterNodeCount struct { - CoordinatingOnly int `json:"coordinating_only"` - Data int `json:"data"` - DataCold int `json:"data_cold"` - DataContent int `json:"data_content"` + CoordinatingOnly *int `json:"coordinating_only,omitempty"` + Data *int `json:"data,omitempty"` + DataCold *int `json:"data_cold,omitempty"` + DataContent *int `json:"data_content,omitempty"` DataFrozen *int `json:"data_frozen,omitempty"` - DataHot int `json:"data_hot"` - DataWarm int `json:"data_warm"` - Ingest int `json:"ingest"` - Master int `json:"master"` - Ml int `json:"ml"` - RemoteClusterClient int `json:"remote_cluster_client"` + DataHot *int `json:"data_hot,omitempty"` + DataWarm *int `json:"data_warm,omitempty"` + Index *int `json:"index,omitempty"` + Ingest *int `json:"ingest,omitempty"` + Master *int `json:"master,omitempty"` + Ml *int `json:"ml,omitempty"` + RemoteClusterClient *int `json:"remote_cluster_client,omitempty"` + Search *int `json:"search,omitempty"` Total int `json:"total"` - Transform int `json:"transform"` - VotingOnly int `json:"voting_only"` + Transform *int `json:"transform,omitempty"` + VotingOnly *int `json:"voting_only,omitempty"` } func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { @@ -74,10 +76,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "CoordinatingOnly", err) } - s.CoordinatingOnly = value + s.CoordinatingOnly = &value case float64: f := int(v) - s.CoordinatingOnly = f + s.CoordinatingOnly = &f } case "data": @@ -90,10 +92,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Data", err) } - s.Data = value + s.Data = &value case float64: f := int(v) - s.Data = f + s.Data = &f } case "data_cold": @@ -106,10 +108,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "DataCold", err) } - s.DataCold = value + s.DataCold = &value case float64: f := int(v) - s.DataCold = f + s.DataCold = &f } case "data_content": @@ -122,10 +124,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "DataContent", err) } - s.DataContent = value + s.DataContent = &value case float64: f := int(v) - s.DataContent = f + s.DataContent = &f } case "data_frozen": @@ -154,10 +156,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "DataHot", err) } - s.DataHot = value + s.DataHot = &value case float64: f := int(v) - s.DataHot = f + s.DataHot = &f } case "data_warm": @@ -170,10 +172,26 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "DataWarm", err) } - s.DataWarm = value + s.DataWarm = &value case float64: f := int(v) - s.DataWarm = f + s.DataWarm = &f + } + + case "index": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "Index", err) + } + s.Index = &value + case float64: + f := int(v) + s.Index = &f } case "ingest": @@ -186,10 +204,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Ingest", err) } - s.Ingest = value + s.Ingest = &value case float64: f := int(v) - s.Ingest = f + s.Ingest = &f } case "master": @@ -202,10 +220,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Master", err) } - s.Master = value + s.Master = &value case float64: f := int(v) - s.Master = f + s.Master = &f } case "ml": @@ -218,10 +236,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Ml", err) } - s.Ml = value + s.Ml = &value case float64: f := int(v) - s.Ml = f + s.Ml = &f } case "remote_cluster_client": @@ -234,10 +252,26 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "RemoteClusterClient", err) } - s.RemoteClusterClient = value + s.RemoteClusterClient = &value case float64: f := int(v) - s.RemoteClusterClient = f + s.RemoteClusterClient = &f + } + + case "search": + + 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", "Search", err) + } + s.Search = &value + case float64: + f := int(v) + s.Search = &f } case "total": @@ -266,10 +300,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "Transform", err) } - s.Transform = value + s.Transform = &value case float64: f := int(v) - s.Transform = f + s.Transform = &f } case "voting_only": @@ -282,10 +316,10 @@ func (s *ClusterNodeCount) UnmarshalJSON(data []byte) error { if err != nil { return fmt.Errorf("%s | %w", "VotingOnly", err) } - s.VotingOnly = value + s.VotingOnly = &value case float64: f := int(v) - s.VotingOnly = f + s.VotingOnly = &f } } @@ -299,5 +333,3 @@ func NewClusterNodeCount() *ClusterNodeCount { return r } - -// false diff --git a/typedapi/types/clusternodes.go b/typedapi/types/clusternodes.go index 3aef06fc5b..17489b99f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterNodes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L369-L402 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L480-L513 type ClusterNodes struct { // Count Contains counts for nodes selected by the request’s node filters. Count ClusterNodeCount `json:"count"` @@ -60,5 +60,3 @@ func NewClusterNodes() *ClusterNodes { return r } - -// false diff --git a/typedapi/types/clusteroperatingsystem.go b/typedapi/types/clusteroperatingsystem.go index e419a4e78c..0c37ba6207 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L415-L442 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L526-L553 type ClusterOperatingSystem struct { // AllocatedProcessors Number of processors used to calculate thread pool size across all selected // nodes. @@ -130,5 +130,3 @@ func NewClusterOperatingSystem() *ClusterOperatingSystem { return r } - -// false diff --git a/typedapi/types/clusteroperatingsystemarchitecture.go b/typedapi/types/clusteroperatingsystemarchitecture.go index feb28920bc..5bbde16bba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemArchitecture type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L404-L413 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L515-L524 type ClusterOperatingSystemArchitecture struct { // Arch Name of an architecture used by one or more selected nodes. Arch string `json:"arch"` @@ -93,5 +93,3 @@ func NewClusterOperatingSystemArchitecture() *ClusterOperatingSystemArchitecture return r } - -// false diff --git a/typedapi/types/clusteroperatingsystemname.go b/typedapi/types/clusteroperatingsystemname.go index 1bdc1d8eab..bf117f442b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemName type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L444-L453 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L555-L564 type ClusterOperatingSystemName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` @@ -86,5 +86,3 @@ func NewClusterOperatingSystemName() *ClusterOperatingSystemName { return r } - -// false diff --git a/typedapi/types/clusteroperatingsystemprettyname.go b/typedapi/types/clusteroperatingsystemprettyname.go index 2e60988d8f..92a6fdff47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemPrettyName type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L455-L464 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L566-L575 type ClusterOperatingSystemPrettyName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` @@ -87,5 +87,3 @@ func NewClusterOperatingSystemPrettyName() *ClusterOperatingSystemPrettyName { return r } - -// false diff --git a/typedapi/types/clusterprocess.go b/typedapi/types/clusterprocess.go index 9b13c34bc9..251925bcc0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ClusterProcess type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L466-L475 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L577-L586 type ClusterProcess struct { // Cpu Contains statistics about CPU used by selected nodes. Cpu ClusterProcessCpu `json:"cpu"` @@ -36,5 +36,3 @@ func NewClusterProcess() *ClusterProcess { return r } - -// false diff --git a/typedapi/types/clusterprocesscpu.go b/typedapi/types/clusterprocesscpu.go index b7f5e23e19..a5008b9456 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L477-L483 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L588-L594 type ClusterProcessCpu struct { // Percent Percentage of CPU used across all selected nodes. // Returns `-1` if not supported. @@ -80,5 +80,3 @@ func NewClusterProcessCpu() *ClusterProcessCpu { return r } - -// false diff --git a/typedapi/types/clusterprocessopenfiledescriptors.go b/typedapi/types/clusterprocessopenfiledescriptors.go index 952fdddb45..8a4041435f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessOpenFileDescriptors type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L485-L501 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L596-L612 type ClusterProcessOpenFileDescriptors struct { // Avg Average number of concurrently open file descriptors. // Returns `-1` if not supported. @@ -117,5 +117,3 @@ func NewClusterProcessOpenFileDescriptors() *ClusterProcessOpenFileDescriptors { return r } - -// false diff --git a/typedapi/types/clusterprocessor.go b/typedapi/types/clusterprocessor.go index 071eb8830c..2c84bb6bae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L503-L509 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L614-L620 type ClusterProcessor struct { Count int64 `json:"count"` Current int64 `json:"current"` @@ -121,5 +121,3 @@ func NewClusterProcessor() *ClusterProcessor { return r } - -// false diff --git a/typedapi/types/clusterremoteinfo.go b/typedapi/types/clusterremoteinfo.go index dab8a58330..8375ab5464 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // ClusterRemoteSniffInfo // ClusterRemoteProxyInfo // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 type ClusterRemoteInfo any diff --git a/typedapi/types/clusterremoteproxyinfo.go b/typedapi/types/clusterremoteproxyinfo.go index 4c87669961..2c9ce37886 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteProxyInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -214,5 +214,3 @@ func NewClusterRemoteProxyInfo() *ClusterRemoteProxyInfo { return r } - -// false diff --git a/typedapi/types/clusterremotesniffinfo.go b/typedapi/types/clusterremotesniffinfo.go index 29edc20546..9d9a6a3b59 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteSniffInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -176,5 +176,3 @@ func NewClusterRemoteSniffInfo() *ClusterRemoteSniffInfo { return r } - -// false diff --git a/typedapi/types/clusterruntimefieldtypes.go b/typedapi/types/clusterruntimefieldtypes.go index a34dc4a1a0..8bacbc6bff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L169-L226 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L256-L313 type ClusterRuntimeFieldTypes struct { // CharsMax Maximum number of characters for a single runtime field script. CharsMax int `json:"chars_max"` @@ -296,5 +296,3 @@ func NewClusterRuntimeFieldTypes() *ClusterRuntimeFieldTypes { return r } - -// false diff --git a/typedapi/types/clustershardmetrics.go b/typedapi/types/clustershardmetrics.go index 99bdae8ffc..f43fde419d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterShardMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L511-L524 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L622-L635 type ClusterShardMetrics struct { // Avg Mean number of shards in an index, counting only shards assigned to selected // nodes. @@ -118,5 +118,3 @@ func NewClusterShardMetrics() *ClusterShardMetrics { return r } - -// false diff --git a/typedapi/types/clustersnapshotstats.go b/typedapi/types/clustersnapshotstats.go new file mode 100644 index 0000000000..fd67e9add4 --- /dev/null +++ b/typedapi/types/clustersnapshotstats.go @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +// ClusterSnapshotStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L637-L640 +type ClusterSnapshotStats struct { + CurrentCounts SnapshotCurrentCounts `json:"current_counts"` + Repositories map[string]PerRepositoryStats `json:"repositories"` +} + +// NewClusterSnapshotStats returns a ClusterSnapshotStats. +func NewClusterSnapshotStats() *ClusterSnapshotStats { + r := &ClusterSnapshotStats{ + Repositories: make(map[string]PerRepositoryStats), + } + + return r +} diff --git a/typedapi/types/clusterstatequeue.go b/typedapi/types/clusterstatequeue.go index c33cfef12a..eb91293397 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterStateQueue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L248-L261 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L250-L263 type ClusterStateQueue struct { // Committed Number of committed cluster states in queue. Committed *int64 `json:"committed,omitempty"` @@ -112,5 +112,3 @@ func NewClusterStateQueue() *ClusterStateQueue { return r } - -// false diff --git a/typedapi/types/clusterstateupdate.go b/typedapi/types/clusterstateupdate.go index 3465573be2..d8ecfbc548 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterStateUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L278-L343 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L280-L345 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 @@ -216,5 +216,3 @@ func NewClusterStateUpdate() *ClusterStateUpdate { return r } - -// false diff --git a/typedapi/types/clusterstatistics.go b/typedapi/types/clusterstatistics.go index 43f3adf43e..66cccf9327 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ClusterStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L27-L35 type ClusterStatistics struct { Details map[string]ClusterDetails `json:"details,omitempty"` Failed int `json:"failed"` @@ -174,5 +174,3 @@ func NewClusterStatistics() *ClusterStatistics { return r } - -// false diff --git a/typedapi/types/cohereservicesettings.go b/typedapi/types/cohereservicesettings.go index a382494802..8c07658492 100644 --- a/typedapi/types/cohereservicesettings.go +++ b/typedapi/types/cohereservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // CohereServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L572-L613 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L645-L686 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 @@ -141,8 +141,6 @@ func NewCohereServiceSettings() *CohereServiceSettings { return r } -// true - type CohereServiceSettingsVariant interface { CohereServiceSettingsCaster() *CohereServiceSettings } diff --git a/typedapi/types/coheretasksettings.go b/typedapi/types/coheretasksettings.go index 187633b8e7..1de3eff633 100644 --- a/typedapi/types/coheretasksettings.go +++ b/typedapi/types/coheretasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // CohereTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L650-L682 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L723-L755 type CohereTaskSettings struct { // InputType For a `text_embedding` task, the type of input passed to the model. // Valid values are: @@ -136,8 +136,6 @@ func NewCohereTaskSettings() *CohereTaskSettings { return r } -// true - type CohereTaskSettingsVariant interface { CohereTaskSettingsCaster() *CohereTaskSettings } diff --git a/typedapi/types/collector.go b/typedapi/types/collector.go index 0e3b3969fa..237c744b6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Collector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L94-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L94-L99 type Collector struct { Children []Collector `json:"children,omitempty"` Name string `json:"name"` @@ -99,5 +99,3 @@ func NewCollector() *Collector { return r } - -// false diff --git a/typedapi/types/column.go b/typedapi/types/column.go index 7de00f45b7..4bffd60857 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Column type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/_types/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/sql/_types/types.ts#L23-L26 type Column struct { Name string `json:"name"` Type string `json:"type"` @@ -80,5 +80,3 @@ func NewColumn() *Column { return r } - -// false diff --git a/typedapi/types/combinedfieldsquery.go b/typedapi/types/combinedfieldsquery.go index 6ddd3f62da..30cd1425cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // CombinedFieldsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L472-L506 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/abstractions.ts#L472-L506 type CombinedFieldsQuery struct { // AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term // synonyms. @@ -163,8 +163,6 @@ func NewCombinedFieldsQuery() *CombinedFieldsQuery { return r } -// true - type CombinedFieldsQueryVariant interface { CombinedFieldsQueryCaster() *CombinedFieldsQuery } diff --git a/typedapi/types/command.go b/typedapi/types/command.go index fa07222ba9..a47075612c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Command type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -67,8 +67,6 @@ func NewCommand() *Command { return r } -// true - type CommandVariant interface { CommandCaster() *Command } diff --git a/typedapi/types/commandallocateprimaryaction.go b/typedapi/types/commandallocateprimaryaction.go index 0926761d0e..1aeeb9f200 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CommandAllocatePrimaryAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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, @@ -116,8 +116,6 @@ func NewCommandAllocatePrimaryAction() *CommandAllocatePrimaryAction { return r } -// true - type CommandAllocatePrimaryActionVariant interface { CommandAllocatePrimaryActionCaster() *CommandAllocatePrimaryAction } diff --git a/typedapi/types/commandallocatereplicaaction.go b/typedapi/types/commandallocatereplicaaction.go index 207842990d..5c57d6065b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CommandAllocateReplicaAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L69-L76 type CommandAllocateReplicaAction struct { Index string `json:"index"` Node string `json:"node"` @@ -98,8 +98,6 @@ func NewCommandAllocateReplicaAction() *CommandAllocateReplicaAction { return r } -// true - type CommandAllocateReplicaActionVariant interface { CommandAllocateReplicaActionCaster() *CommandAllocateReplicaAction } diff --git a/typedapi/types/commandcancelaction.go b/typedapi/types/commandcancelaction.go index 103a7fa76c..6775ca4ce9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CommandCancelAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L45-L50 type CommandCancelAction struct { AllowPrimary *bool `json:"allow_primary,omitempty"` Index string `json:"index"` @@ -113,8 +113,6 @@ func NewCommandCancelAction() *CommandCancelAction { return r } -// true - type CommandCancelActionVariant interface { CommandCancelActionCaster() *CommandCancelAction } diff --git a/typedapi/types/commandmoveaction.go b/typedapi/types/commandmoveaction.go index 853848e8b9..998d012eb2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CommandMoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L60-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L60-L67 type CommandMoveAction struct { // FromNode The node to move the shard from FromNode string `json:"from_node"` @@ -113,8 +113,6 @@ func NewCommandMoveAction() *CommandMoveAction { return r } -// true - type CommandMoveActionVariant interface { CommandMoveActionCaster() *CommandMoveAction } diff --git a/typedapi/types/commongramstokenfilter.go b/typedapi/types/commongramstokenfilter.go index 2118f4cf9d..c4f52bdd77 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,14 +31,29 @@ import ( // CommonGramsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L174-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L219-L235 type CommonGramsTokenFilter struct { - CommonWords []string `json:"common_words,omitempty"` - CommonWordsPath *string `json:"common_words_path,omitempty"` - IgnoreCase *bool `json:"ignore_case,omitempty"` - QueryMode *bool `json:"query_mode,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // CommonWords A list of tokens. The filter generates bigrams for these tokens. + // Either this or the `common_words_path` parameter is required. + CommonWords []string `json:"common_words,omitempty"` + // CommonWordsPath Path to a file containing a list of tokens. The filter generates bigrams for + // these tokens. + // This path must be absolute or relative to the `config` location. The file + // must be UTF-8 encoded. Each token in the file must be separated by a line + // break. + // Either this or the `common_words` parameter is required. + CommonWordsPath *string `json:"common_words_path,omitempty"` + // IgnoreCase If `true`, matches for common words matching are case-insensitive. Defaults + // to `false`. + IgnoreCase *bool `json:"ignore_case,omitempty"` + // QueryMode If `true`, the filter excludes the following tokens from the output: + // - Unigrams for common words + // - Unigrams for terms followed by common words + // Defaults to `false`. We recommend enabling this parameter for search + // analyzers. + QueryMode *bool `json:"query_mode,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *CommonGramsTokenFilter) UnmarshalJSON(data []byte) error { @@ -140,8 +155,6 @@ func NewCommonGramsTokenFilter() *CommonGramsTokenFilter { return r } -// true - type CommonGramsTokenFilterVariant interface { CommonGramsTokenFilterCaster() *CommonGramsTokenFilter } @@ -149,3 +162,8 @@ type CommonGramsTokenFilterVariant interface { func (s *CommonGramsTokenFilter) CommonGramsTokenFilterCaster() *CommonGramsTokenFilter { return s } + +func (s *CommonGramsTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/commontermsquery.go b/typedapi/types/commontermsquery.go index 2c9d8ed555..8eb7fe4be9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CommonTermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L34-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -172,8 +172,6 @@ func NewCommonTermsQuery() *CommonTermsQuery { return r } -// true - type CommonTermsQueryVariant interface { CommonTermsQueryCaster() *CommonTermsQuery } diff --git a/typedapi/types/communityidprocessor.go b/typedapi/types/communityidprocessor.go index 7b374ca63e..600845d0a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CommunityIDProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L599-L660 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L599-L660 type CommunityIDProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -225,8 +225,6 @@ func NewCommunityIDProcessor() *CommunityIDProcessor { return r } -// true - type CommunityIDProcessorVariant interface { CommunityIDProcessorCaster() *CommunityIDProcessor } diff --git a/typedapi/types/compactnodeinfo.go b/typedapi/types/compactnodeinfo.go index a33b322ff2..142e76fe7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // CompactNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40 type CompactNodeInfo struct { // Name A human-readable name for the node. // You can set this name using the `node.name` property in `elasticsearch.yml`. @@ -69,5 +69,3 @@ func NewCompactNodeInfo() *CompactNodeInfo { return r } - -// false diff --git a/typedapi/types/completioncontext.go b/typedapi/types/completioncontext.go index 425c94a9e4..6b9fbd9d91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L236-L265 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L236-L265 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. @@ -130,8 +130,6 @@ func NewCompletionContext() *CompletionContext { return r } -// true - type CompletionContextVariant interface { CompletionContextCaster() *CompletionContext } diff --git a/typedapi/types/completionproperty.go b/typedapi/types/completionproperty.go index 618a535e0f..ccba49f998 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // CompletionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L33-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L33-L41 type CompletionProperty struct { Analyzer *string `json:"analyzer,omitempty"` Contexts []SuggestContext `json:"contexts,omitempty"` @@ -264,6 +264,12 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -663,6 +669,12 @@ func (s *CompletionProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -931,8 +943,6 @@ func NewCompletionProperty() *CompletionProperty { return r } -// true - type CompletionPropertyVariant interface { CompletionPropertyCaster() *CompletionProperty } @@ -940,3 +950,8 @@ type CompletionPropertyVariant interface { func (s *CompletionProperty) CompletionPropertyCaster() *CompletionProperty { return s } + +func (s *CompletionProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/completionresult.go b/typedapi/types/completionresult.go index 10ce61c808..e3493b2ca9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Results.ts#L77-L82 type CompletionResult struct { Result string `json:"result"` } @@ -74,5 +74,3 @@ func NewCompletionResult() *CompletionResult { return r } - -// false diff --git a/typedapi/types/completionstats.go b/typedapi/types/completionstats.go index b9043206a9..815a2dd3f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L83-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -98,5 +98,3 @@ func NewCompletionStats() *CompletionStats { return r } - -// false diff --git a/typedapi/types/completionsuggest.go b/typedapi/types/completionsuggest.go index e9cf82bbda..95e7976812 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L49-L56 type CompletionSuggest struct { Length int `json:"length"` Offset int `json:"offset"` @@ -125,5 +125,3 @@ func NewCompletionSuggest() *CompletionSuggest { return r } - -// false diff --git a/typedapi/types/completionsuggester.go b/typedapi/types/completionsuggester.go index 9f7a24fc84..b895cb147c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L164-L182 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L164-L182 type CompletionSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. @@ -164,8 +164,6 @@ func NewCompletionSuggester() *CompletionSuggester { return r } -// true - type CompletionSuggesterVariant interface { CompletionSuggesterCaster() *CompletionSuggester } diff --git a/typedapi/types/completionsuggestoption.go b/typedapi/types/completionsuggestoption.go index ed73ed281f..d17d7d9614 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L74-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L74-L85 type CompletionSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Contexts map[string][]Context `json:"contexts,omitempty"` @@ -175,5 +175,3 @@ func NewCompletionSuggestOption() *CompletionSuggestOption { return r } - -// false diff --git a/typedapi/types/completiontool.go b/typedapi/types/completiontool.go index cb5c1ef7f5..64294344ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionTool type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L205-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L278-L290 type CompletionTool struct { // Function The function definition. Function CompletionToolFunction `json:"function"` @@ -83,8 +83,6 @@ func NewCompletionTool() *CompletionTool { return r } -// true - type CompletionToolVariant interface { CompletionToolCaster() *CompletionTool } diff --git a/typedapi/types/completiontoolchoice.go b/typedapi/types/completiontoolchoice.go index 3a5c36d3a2..9db48e8434 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoice type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L168-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L241-L253 type CompletionToolChoice struct { // Function The tool choice function. Function CompletionToolChoiceFunction `json:"function"` @@ -83,8 +83,6 @@ func NewCompletionToolChoice() *CompletionToolChoice { return r } -// true - type CompletionToolChoiceVariant interface { CompletionToolChoiceCaster() *CompletionToolChoice } @@ -92,3 +90,8 @@ type CompletionToolChoiceVariant interface { func (s *CompletionToolChoice) CompletionToolChoiceCaster() *CompletionToolChoice { return s } + +func (s *CompletionToolChoice) CompletionToolTypeCaster() *CompletionToolType { + o := CompletionToolType(s) + return &o +} diff --git a/typedapi/types/completiontoolchoicefunction.go b/typedapi/types/completiontoolchoicefunction.go index 67f29c46f0..f923a4ce62 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoiceFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L157-L166 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L230-L239 type CompletionToolChoiceFunction struct { // Name The name of the function to call. Name string `json:"name"` @@ -76,8 +76,6 @@ func NewCompletionToolChoiceFunction() *CompletionToolChoiceFunction { return r } -// true - type CompletionToolChoiceFunctionVariant interface { CompletionToolChoiceFunctionCaster() *CompletionToolChoiceFunction } diff --git a/typedapi/types/completiontoolfunction.go b/typedapi/types/completiontoolfunction.go index 7bf1dea94b..ee98c0f5a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompletionToolFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L182-L203 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L255-L276 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. @@ -115,8 +115,6 @@ func NewCompletionToolFunction() *CompletionToolFunction { return r } -// true - type CompletionToolFunctionVariant interface { CompletionToolFunctionCaster() *CompletionToolFunction } diff --git a/typedapi/types/completiontooltype.go b/typedapi/types/completiontooltype.go index fd0d2db2d1..4a99cf6afd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // CompletionToolChoice // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L79-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L118-L121 type CompletionToolType any type CompletionToolTypeVariant interface { diff --git a/typedapi/types/componenttemplatenode.go b/typedapi/types/componenttemplatenode.go index 94e68baa5e..83a7bddcfd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ComponentTemplateNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/_types/ComponentTemplate.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/_types/ComponentTemplate.ts#L32-L41 type ComponentTemplateNode struct { Deprecated *bool `json:"deprecated,omitempty"` Meta_ Metadata `json:"_meta,omitempty"` @@ -95,8 +95,6 @@ func NewComponentTemplateNode() *ComponentTemplateNode { return r } -// true - type ComponentTemplateNodeVariant interface { ComponentTemplateNodeCaster() *ComponentTemplateNode } diff --git a/typedapi/types/componenttemplatesummary.go b/typedapi/types/componenttemplatesummary.go index 3b3fad3bf0..2861567189 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/_types/ComponentTemplate.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/_types/ComponentTemplate.ts#L43-L55 type ComponentTemplateSummary struct { Aliases map[string]AliasDefinition `json:"aliases,omitempty"` Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` @@ -106,8 +106,6 @@ func NewComponentTemplateSummary() *ComponentTemplateSummary { return r } -// true - type ComponentTemplateSummaryVariant interface { ComponentTemplateSummaryCaster() *ComponentTemplateSummary } diff --git a/typedapi/types/compositeaggregate.go b/typedapi/types/compositeaggregate.go index 17d636f562..a3233f6a5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // CompositeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L698-L703 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L700-L705 type CompositeAggregate struct { AfterKey CompositeAggregateKey `json:"after_key,omitempty"` Buckets BucketsCompositeBucket `json:"buckets"` @@ -94,5 +94,3 @@ func NewCompositeAggregate() *CompositeAggregate { return r } - -// false diff --git a/typedapi/types/compositeaggregatekey.go b/typedapi/types/compositeaggregatekey.go index 8479c30605..36e678eae3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // CompositeAggregateKey type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9401954721..d76b001c00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CompositeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L130-L149 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -96,8 +96,6 @@ func NewCompositeAggregation() *CompositeAggregation { return r } -// true - type CompositeAggregationVariant interface { CompositeAggregationCaster() *CompositeAggregation } diff --git a/typedapi/types/compositeaggregationsource.go b/typedapi/types/compositeaggregationsource.go index 901dca4292..5907994577 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // CompositeAggregationSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L151-L168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L151-L168 type CompositeAggregationSource struct { // DateHistogram A date histogram aggregation. DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"` @@ -41,8 +41,6 @@ func NewCompositeAggregationSource() *CompositeAggregationSource { return r } -// true - type CompositeAggregationSourceVariant interface { CompositeAggregationSourceCaster() *CompositeAggregationSource } diff --git a/typedapi/types/compositebucket.go b/typedapi/types/compositebucket.go index 50641ce897..4d1b5cde21 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // CompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L705-L707 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L707-L709 type CompositeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewCompositeBucket() *CompositeBucket { return r } - -// false diff --git a/typedapi/types/compositedatehistogramaggregation.go b/typedapi/types/compositedatehistogramaggregation.go index 56d7633274..a581e0d2dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // CompositeDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L187-L195 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -152,8 +152,6 @@ func NewCompositeDateHistogramAggregation() *CompositeDateHistogramAggregation { return r } -// true - type CompositeDateHistogramAggregationVariant interface { CompositeDateHistogramAggregationCaster() *CompositeDateHistogramAggregation } diff --git a/typedapi/types/compositegeotilegridaggregation.go b/typedapi/types/compositegeotilegridaggregation.go index d6a26a33ec..427ddd4fcf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // CompositeGeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L197-L200 type CompositeGeoTileGridAggregation struct { Bounds GeoBounds `json:"bounds,omitempty"` // Field Either `field` or `script` must be present @@ -194,8 +194,6 @@ func NewCompositeGeoTileGridAggregation() *CompositeGeoTileGridAggregation { return r } -// true - type CompositeGeoTileGridAggregationVariant interface { CompositeGeoTileGridAggregationCaster() *CompositeGeoTileGridAggregation } diff --git a/typedapi/types/compositehistogramaggregation.go b/typedapi/types/compositehistogramaggregation.go index f797646b2f..60e1a39f7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // CompositeHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L183-L185 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L183-L185 type CompositeHistogramAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` @@ -130,8 +130,6 @@ func NewCompositeHistogramAggregation() *CompositeHistogramAggregation { return r } -// true - type CompositeHistogramAggregationVariant interface { CompositeHistogramAggregationCaster() *CompositeHistogramAggregation } diff --git a/typedapi/types/compositesubfield.go b/typedapi/types/compositesubfield.go index 545d7786f0..bb56365f3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // CompositeSubField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/RuntimeFields.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/RuntimeFields.ts#L52-L54 type CompositeSubField struct { Type runtimefieldtype.RuntimeFieldType `json:"type"` } @@ -38,8 +38,6 @@ func NewCompositeSubField() *CompositeSubField { return r } -// true - type CompositeSubFieldVariant interface { CompositeSubFieldCaster() *CompositeSubField } diff --git a/typedapi/types/compositetermsaggregation.go b/typedapi/types/compositetermsaggregation.go index d410369b12..d2eea1cb3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // CompositeTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L181-L181 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L181-L181 type CompositeTermsAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` @@ -113,8 +113,6 @@ func NewCompositeTermsAggregation() *CompositeTermsAggregation { return r } -// true - type CompositeTermsAggregationVariant interface { CompositeTermsAggregationCaster() *CompositeTermsAggregation } diff --git a/typedapi/types/conditiontokenfilter.go b/typedapi/types/conditiontokenfilter.go index 99920557df..9914fbf89e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,12 +30,17 @@ import ( // ConditionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L182-L186 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L237-L243 type ConditionTokenFilter struct { - Filter []string `json:"filter"` - Script Script `json:"script"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // Filter Array of token filters. If a token matches the predicate script in the + // `script` parameter, these filters are applied to the token in the order + // provided. + Filter []string `json:"filter"` + // Script Predicate script used to apply token filters. If a token matches this script, + // the filters in the `filter` parameter are applied to the token. + Script Script `json:"script"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *ConditionTokenFilter) UnmarshalJSON(data []byte) error { @@ -100,8 +105,6 @@ func NewConditionTokenFilter() *ConditionTokenFilter { return r } -// true - type ConditionTokenFilterVariant interface { ConditionTokenFilterCaster() *ConditionTokenFilter } @@ -109,3 +112,8 @@ type ConditionTokenFilterVariant interface { func (s *ConditionTokenFilter) ConditionTokenFilterCaster() *ConditionTokenFilter { return s } + +func (s *ConditionTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/configuration.go b/typedapi/types/configuration.go index d11921ec34..2fdcb4c08d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Configuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L109-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -159,8 +159,6 @@ func NewConfiguration() *Configuration { return r } -// true - type ConfigurationVariant interface { ConfigurationCaster() *Configuration } diff --git a/typedapi/types/confusionmatrixitem.go b/typedapi/types/confusionmatrixitem.go index 3146623fa2..352e6eeef9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L125-L130 type ConfusionMatrixItem struct { ActualClass string `json:"actual_class"` ActualClassDocCount int `json:"actual_class_doc_count"` @@ -107,5 +107,3 @@ func NewConfusionMatrixItem() *ConfusionMatrixItem { return r } - -// false diff --git a/typedapi/types/confusionmatrixprediction.go b/typedapi/types/confusionmatrixprediction.go index a0268fdd82..06a9f99456 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixPrediction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L132-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L132-L135 type ConfusionMatrixPrediction struct { Count int `json:"count"` PredictedClass string `json:"predicted_class"` @@ -84,5 +84,3 @@ func NewConfusionMatrixPrediction() *ConfusionMatrixPrediction { return r } - -// false diff --git a/typedapi/types/confusionmatrixthreshold.go b/typedapi/types/confusionmatrixthreshold.go index 6ca69ccb65..872117061c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixThreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L137-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L137-L158 type ConfusionMatrixThreshold struct { // FalseNegative False Negative FalseNegative int `json:"fn"` @@ -133,5 +133,3 @@ func NewConfusionMatrixThreshold() *ConfusionMatrixThreshold { return r } - -// false diff --git a/typedapi/types/connection.go b/typedapi/types/connection.go index e456aea1cb..b6c03398d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Connection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/Connection.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/graph/_types/Connection.ts#L22-L27 type Connection struct { DocCount int64 `json:"doc_count"` Source int64 `json:"source"` @@ -126,5 +126,3 @@ func NewConnection() *Connection { return r } - -// false diff --git a/typedapi/types/connector.go b/typedapi/types/connector.go index 90075ed387..6b95362b9a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // Connector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L252-L284 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L252-L284 type Connector struct { ApiKeyId *string `json:"api_key_id,omitempty"` ApiKeySecretId *string `json:"api_key_secret_id,omitempty"` @@ -360,5 +360,3 @@ func NewConnector() *Connector { return r } - -// false diff --git a/typedapi/types/connectorconfigproperties.go b/typedapi/types/connectorconfigproperties.go index 57efc5356c..afafe7a66a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ConnectorConfigProperties type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L83-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L83-L99 type ConnectorConfigProperties struct { Category *string `json:"category,omitempty"` DefaultValue ScalarValue `json:"default_value"` @@ -260,8 +260,6 @@ func NewConnectorConfigProperties() *ConnectorConfigProperties { return r } -// true - type ConnectorConfigPropertiesVariant interface { ConnectorConfigPropertiesCaster() *ConnectorConfigProperties } diff --git a/typedapi/types/connectorconfiguration.go b/typedapi/types/connectorconfiguration.go index 5667975e7f..be022797c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ConnectorConfiguration type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a805421df8..edda230baf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ConnectorCustomScheduling type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1552de2d0f..2af54a186f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ConnectorFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L230-L244 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -40,8 +40,6 @@ func NewConnectorFeatures() *ConnectorFeatures { return r } -// true - type ConnectorFeaturesVariant interface { ConnectorFeaturesCaster() *ConnectorFeatures } diff --git a/typedapi/types/connectorscheduling.go b/typedapi/types/connectorscheduling.go index 3c3ac5341a..69c78b169d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ConnectorScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L106-L110 type ConnectorScheduling struct { Enabled bool `json:"enabled"` // Interval The interval is expressed using the crontab syntax @@ -91,8 +91,6 @@ func NewConnectorScheduling() *ConnectorScheduling { return r } -// true - type ConnectorSchedulingVariant interface { ConnectorSchedulingCaster() *ConnectorScheduling } diff --git a/typedapi/types/connectorsyncjob.go b/typedapi/types/connectorsyncjob.go index 343b2d48c2..679bfe6e3f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // ConnectorSyncJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/SyncJob.ts#L53-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/SyncJob.ts#L53-L72 type ConnectorSyncJob struct { CancelationRequestedAt DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt DateTime `json:"canceled_at,omitempty"` @@ -232,5 +232,3 @@ func NewConnectorSyncJob() *ConnectorSyncJob { return r } - -// false diff --git a/typedapi/types/constantkeywordproperty.go b/typedapi/types/constantkeywordproperty.go index 3b40fe1089..9548d88689 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ConstantKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L50-L53 type ConstantKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -564,6 +570,12 @@ func (s *ConstantKeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -803,8 +815,6 @@ func NewConstantKeywordProperty() *ConstantKeywordProperty { return r } -// true - type ConstantKeywordPropertyVariant interface { ConstantKeywordPropertyCaster() *ConstantKeywordProperty } @@ -812,3 +822,8 @@ type ConstantKeywordPropertyVariant interface { func (s *ConstantKeywordProperty) ConstantKeywordPropertyCaster() *ConstantKeywordProperty { return s } + +func (s *ConstantKeywordProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/constantscorequery.go b/typedapi/types/constantscorequery.go index 79f9133ad3..b040431a1c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ConstantScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L76-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -107,8 +107,6 @@ func NewConstantScoreQuery() *ConstantScoreQuery { return r } -// true - type ConstantScoreQueryVariant interface { ConstantScoreQueryCaster() *ConstantScoreQuery } diff --git a/typedapi/types/contentobject.go b/typedapi/types/contentobject.go index 07e9e3f73e..ae604f542a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ContentObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L84-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L123-L135 type ContentObject struct { // Text The text content. Text string `json:"text"` @@ -90,8 +90,6 @@ func NewContentObject() *ContentObject { return r } -// true - type ContentObjectVariant interface { ContentObjectCaster() *ContentObject } diff --git a/typedapi/types/context.go b/typedapi/types/context.go index 89effac862..c7b19e6e3d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // GeoLocation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L229-L234 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L229-L234 type Context any type ContextVariant interface { diff --git a/typedapi/types/contextmethod.go b/typedapi/types/contextmethod.go index f677d187ca..4110578c80 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ContextMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_context/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/get_script_context/types.ts#L27-L31 type ContextMethod struct { Name string `json:"name"` Params []ContextMethodParam `json:"params"` @@ -86,5 +86,3 @@ func NewContextMethod() *ContextMethod { return r } - -// false diff --git a/typedapi/types/contextmethodparam.go b/typedapi/types/contextmethodparam.go index 632e6985de..6c26be106c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ContextMethodParam type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_context/types.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/get_script_context/types.ts#L33-L36 type ContextMethodParam struct { Name string `json:"name"` Type string `json:"type"` @@ -80,5 +80,3 @@ func NewContextMethodParam() *ContextMethodParam { return r } - -// false diff --git a/typedapi/types/convertprocessor.go b/typedapi/types/convertprocessor.go index 50bb6d8117..cc49adbe3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ConvertProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L673-L693 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L673-L693 type ConvertProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -163,8 +163,6 @@ func NewConvertProcessor() *ConvertProcessor { return r } -// true - type ConvertProcessorVariant interface { ConvertProcessorCaster() *ConvertProcessor } diff --git a/typedapi/types/coordinatorstats.go b/typedapi/types/coordinatorstats.go index 4ebc401261..d93809cc5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CoordinatorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/stats/types.ts#L30-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/stats/types.ts#L30-L36 type CoordinatorStats struct { ExecutedSearchesTotal int64 `json:"executed_searches_total"` NodeId string `json:"node_id"` @@ -133,5 +133,3 @@ func NewCoordinatorStats() *CoordinatorStats { return r } - -// false diff --git a/typedapi/types/coordsgeobounds.go b/typedapi/types/coordsgeobounds.go index a90dd38ac6..d726075f8c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CoordsGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L154-L159 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L154-L159 type CoordsGeoBounds struct { Bottom Float64 `json:"bottom"` Left Float64 `json:"left"` @@ -130,8 +130,6 @@ func NewCoordsGeoBounds() *CoordsGeoBounds { return r } -// true - type CoordsGeoBoundsVariant interface { CoordsGeoBoundsCaster() *CoordsGeoBounds } @@ -139,3 +137,8 @@ type CoordsGeoBoundsVariant interface { func (s *CoordsGeoBounds) CoordsGeoBoundsCaster() *CoordsGeoBounds { return s } + +func (s *CoordsGeoBounds) GeoBoundsCaster() *GeoBounds { + o := GeoBounds(s) + return &o +} diff --git a/typedapi/types/countedkeywordproperty.go b/typedapi/types/countedkeywordproperty.go index ec0d6d97a9..3a33de5668 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // CountedKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L55-L62 type CountedKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *CountedKeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -578,6 +584,12 @@ func (s *CountedKeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -812,8 +824,6 @@ func NewCountedKeywordProperty() *CountedKeywordProperty { return r } -// true - type CountedKeywordPropertyVariant interface { CountedKeywordPropertyCaster() *CountedKeywordProperty } @@ -821,3 +831,8 @@ type CountedKeywordPropertyVariant interface { func (s *CountedKeywordProperty) CountedKeywordPropertyCaster() *CountedKeywordProperty { return s } + +func (s *CountedKeywordProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/counter.go b/typedapi/types/counter.go index c31c99f05a..b1d4f00ac7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Counter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L32-L35 type Counter struct { Active int64 `json:"active"` Total int64 `json:"total"` @@ -93,5 +93,3 @@ func NewCounter() *Counter { return r } - -// false diff --git a/typedapi/types/countrecord.go b/typedapi/types/countrecord.go index d83e0d3a64..b68e70bb08 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CountRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/count/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/count/types.ts#L23-L39 type CountRecord struct { // Count the document count Count *string `json:"count,omitempty"` @@ -89,5 +89,3 @@ func NewCountRecord() *CountRecord { return r } - -// false diff --git a/typedapi/types/cpu.go b/typedapi/types/cpu.go index 5a300c0369..b1c6e17483 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Cpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L575-L584 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L577-L586 type Cpu struct { LoadAverage map[string]Float64 `json:"load_average,omitempty"` Percent *int `json:"percent,omitempty"` @@ -125,5 +125,3 @@ func NewCpu() *Cpu { return r } - -// false diff --git a/typedapi/types/cpuacct.go b/typedapi/types/cpuacct.go index f689a4ae55..4c4a262acc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CpuAcct type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L512-L521 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L514-L523 type CpuAcct struct { // ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` @@ -83,5 +83,3 @@ func NewCpuAcct() *CpuAcct { return r } - -// false diff --git a/typedapi/types/createdstatus.go b/typedapi/types/createdstatus.go index 12188863da..8872f8efcf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CreatedStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/CreatedStatus.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/CreatedStatus.ts#L20-L22 type CreatedStatus struct { Created bool `json:"created"` } @@ -76,5 +76,3 @@ func NewCreatedStatus() *CreatedStatus { return r } - -// false diff --git a/typedapi/types/createfrom.go b/typedapi/types/createfrom.go index ee66bbda4d..50badc69f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CreateFrom type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -92,8 +92,6 @@ func NewCreateFrom() *CreateFrom { return r } -// true - type CreateFromVariant interface { CreateFromCaster() *CreateFrom } diff --git a/typedapi/types/createoperation.go b/typedapi/types/createoperation.go index 465d271d20..402040fdfd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CreateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L140-L140 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -170,8 +170,6 @@ func NewCreateOperation() *CreateOperation { return r } -// true - type CreateOperationVariant interface { CreateOperationCaster() *CreateOperation } diff --git a/typedapi/types/csvprocessor.go b/typedapi/types/csvprocessor.go index 548c24af89..89fe0fe0cb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CsvProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L695-L728 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L695-L728 type CsvProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -218,8 +218,6 @@ func NewCsvProcessor() *CsvProcessor { return r } -// true - type CsvProcessorVariant interface { CsvProcessorCaster() *CsvProcessor } diff --git a/typedapi/types/cumulativecardinalityaggregate.go b/typedapi/types/cumulativecardinalityaggregate.go index 75c06621ca..3fe73e67d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CumulativeCardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L856-L864 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L858-L866 type CumulativeCardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` @@ -96,5 +96,3 @@ func NewCumulativeCardinalityAggregate() *CumulativeCardinalityAggregate { return r } - -// false diff --git a/typedapi/types/cumulativecardinalityaggregation.go b/typedapi/types/cumulativecardinalityaggregation.go index f300f57239..06e888e7d6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CumulativeCardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L206-L209 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewCumulativeCardinalityAggregation() *CumulativeCardinalityAggregation { return r } -// true - type CumulativeCardinalityAggregationVariant interface { CumulativeCardinalityAggregationCaster() *CumulativeCardinalityAggregation } diff --git a/typedapi/types/cumulativesumaggregation.go b/typedapi/types/cumulativesumaggregation.go index 6afcdd7c22..112950c9b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CumulativeSumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewCumulativeSumAggregation() *CumulativeSumAggregation { return r } -// true - type CumulativeSumAggregationVariant interface { CumulativeSumAggregationCaster() *CumulativeSumAggregation } diff --git a/typedapi/types/currentnode.go b/typedapi/types/currentnode.go index d3a957a6f8..a49c48e644 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // CurrentNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L79-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L79-L90 type CurrentNode struct { Attributes map[string]string `json:"attributes"` Id string `json:"id"` @@ -115,5 +115,3 @@ func NewCurrentNode() *CurrentNode { return r } - -// false diff --git a/typedapi/types/customanalyzer.go b/typedapi/types/customanalyzer.go index d12248bd33..07190aec17 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CustomAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L28-L35 type CustomAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` @@ -166,8 +166,6 @@ func NewCustomAnalyzer() *CustomAnalyzer { return r } -// true - type CustomAnalyzerVariant interface { CustomAnalyzerCaster() *CustomAnalyzer } @@ -175,3 +173,8 @@ type CustomAnalyzerVariant interface { func (s *CustomAnalyzer) CustomAnalyzerCaster() *CustomAnalyzer { return s } + +func (s *CustomAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/customcategorizetextanalyzer.go b/typedapi/types/customcategorizetextanalyzer.go index ddef9d5b25..6364ef4af9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CustomCategorizeTextAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1190-L1194 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1190-L1194 type CustomCategorizeTextAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` @@ -87,8 +87,6 @@ func NewCustomCategorizeTextAnalyzer() *CustomCategorizeTextAnalyzer { return r } -// true - type CustomCategorizeTextAnalyzerVariant interface { CustomCategorizeTextAnalyzerCaster() *CustomCategorizeTextAnalyzer } @@ -96,3 +94,8 @@ type CustomCategorizeTextAnalyzerVariant interface { func (s *CustomCategorizeTextAnalyzer) CustomCategorizeTextAnalyzerCaster() *CustomCategorizeTextAnalyzer { return s } + +func (s *CustomCategorizeTextAnalyzer) CategorizeTextAnalyzerCaster() *CategorizeTextAnalyzer { + o := CategorizeTextAnalyzer(s) + return &o +} diff --git a/typedapi/types/customnormalizer.go b/typedapi/types/customnormalizer.go index 08837e22ea..d3b53ee73a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // CustomNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/normalizers.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/normalizers.ts#L30-L34 type CustomNormalizer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` @@ -54,8 +54,6 @@ func NewCustomNormalizer() *CustomNormalizer { return r } -// true - type CustomNormalizerVariant interface { CustomNormalizerCaster() *CustomNormalizer } @@ -63,3 +61,8 @@ type CustomNormalizerVariant interface { func (s *CustomNormalizer) CustomNormalizerCaster() *CustomNormalizer { return s } + +func (s *CustomNormalizer) NormalizerCaster() *Normalizer { + o := Normalizer(s) + return &o +} diff --git a/typedapi/types/customscheduling.go b/typedapi/types/customscheduling.go index 0741f005b1..a82bb73e52 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CustomScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L120-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L120-L126 type CustomScheduling struct { ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"` Enabled bool `json:"enabled"` @@ -114,5 +114,3 @@ func NewCustomScheduling() *CustomScheduling { return r } - -// false diff --git a/typedapi/types/customschedulingconfigurationoverrides.go b/typedapi/types/customschedulingconfigurationoverrides.go index 632d4e79f4..d876577216 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // CustomSchedulingConfigurationOverrides type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L112-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L112-L118 type CustomSchedulingConfigurationOverrides struct { DomainAllowlist []string `json:"domain_allowlist,omitempty"` MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"` @@ -111,5 +111,3 @@ func NewCustomSchedulingConfigurationOverrides() *CustomSchedulingConfigurationO return r } - -// false diff --git a/typedapi/types/czechanalyzer.go b/typedapi/types/czechanalyzer.go index 5345e87495..d9f07e5cc5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // CzechAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L132-L137 type CzechAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *CzechAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *CzechAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewCzechAnalyzer() *CzechAnalyzer { return r } -// true - type CzechAnalyzerVariant interface { CzechAnalyzerCaster() *CzechAnalyzer } @@ -128,3 +115,8 @@ type CzechAnalyzerVariant interface { func (s *CzechAnalyzer) CzechAnalyzerCaster() *CzechAnalyzer { return s } + +func (s *CzechAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/czechstemtokenfilter.go b/typedapi/types/czechstemtokenfilter.go new file mode 100644 index 0000000000..94c289b538 --- /dev/null +++ b/typedapi/types/czechstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// CzechStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L551-L553 +type CzechStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *CzechStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s CzechStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerCzechStemTokenFilter CzechStemTokenFilter + tmp := innerCzechStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "czech_stem" + + return json.Marshal(tmp) +} + +// NewCzechStemTokenFilter returns a CzechStemTokenFilter. +func NewCzechStemTokenFilter() *CzechStemTokenFilter { + r := &CzechStemTokenFilter{} + + return r +} + +type CzechStemTokenFilterVariant interface { + CzechStemTokenFilterCaster() *CzechStemTokenFilter +} + +func (s *CzechStemTokenFilter) CzechStemTokenFilterCaster() *CzechStemTokenFilter { + return s +} + +func (s *CzechStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/dailyschedule.go b/typedapi/types/dailyschedule.go index a5212fcc8f..d35493fa64 100644 --- a/typedapi/types/dailyschedule.go +++ b/typedapi/types/dailyschedule.go @@ -16,17 +16,50 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + // DailySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L33-L35 type DailySchedule struct { At []ScheduleTimeOfDay `json:"at"` } +func (s *DailySchedule) 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 "at": + if err := dec.Decode(&s.At); err != nil { + return fmt.Errorf("%s | %w", "At", err) + } + + } + } + return nil +} + // NewDailySchedule returns a DailySchedule. func NewDailySchedule() *DailySchedule { r := &DailySchedule{} @@ -34,8 +67,6 @@ func NewDailySchedule() *DailySchedule { return r } -// true - type DailyScheduleVariant interface { DailyScheduleCaster() *DailySchedule } diff --git a/typedapi/types/danglingindex.go b/typedapi/types/danglingindex.go index 2f33227298..5967155154 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DanglingIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 type DanglingIndex struct { CreationDateMillis int64 `json:"creation_date_millis"` IndexName string `json:"index_name"` @@ -110,5 +110,3 @@ func NewDanglingIndex() *DanglingIndex { return r } - -// false diff --git a/typedapi/types/danishanalyzer.go b/typedapi/types/danishanalyzer.go index 4a9fde94be..aca529d425 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // DanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L139-L143 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L139-L143 type DanishAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *DanishAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *DanishAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewDanishAnalyzer() *DanishAnalyzer { return r } -// true - type DanishAnalyzerVariant interface { DanishAnalyzerCaster() *DanishAnalyzer } @@ -121,3 +108,8 @@ type DanishAnalyzerVariant interface { func (s *DanishAnalyzer) DanishAnalyzerCaster() *DanishAnalyzer { return s } + +func (s *DanishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/databaseconfiguration.go b/typedapi/types/databaseconfiguration.go index ad7ff379ef..d9efdef489 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L22-L37 type DatabaseConfiguration struct { AdditionalDatabaseConfigurationProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` @@ -125,8 +125,6 @@ func NewDatabaseConfiguration() *DatabaseConfiguration { return r } -// true - type DatabaseConfigurationVariant interface { DatabaseConfigurationCaster() *DatabaseConfiguration } diff --git a/typedapi/types/databaseconfigurationfull.go b/typedapi/types/databaseconfigurationfull.go index 355065e50f..bb3bcad643 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfigurationFull type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L39-L53 type DatabaseConfigurationFull struct { AdditionalDatabaseConfigurationFullProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` @@ -136,5 +136,3 @@ func NewDatabaseConfigurationFull() *DatabaseConfigurationFull { return r } - -// false diff --git a/typedapi/types/datacounts.go b/typedapi/types/datacounts.go index 19b6a7b298..b1c3d463ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L352-L372 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Job.ts#L352-L372 type DataCounts struct { BucketCount int64 `json:"bucket_count"` EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"` @@ -355,5 +355,3 @@ func NewDataCounts() *DataCounts { return r } - -// false diff --git a/typedapi/types/datadescription.go b/typedapi/types/datadescription.go index e469a2509a..79338b4f2a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataDescription type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L374-L390 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -118,8 +118,6 @@ func NewDataDescription() *DataDescription { return r } -// true - type DataDescriptionVariant interface { DataDescriptionCaster() *DataDescription } diff --git a/typedapi/types/dataemailattachment.go b/typedapi/types/dataemailattachment.go index 3b0b392beb..0922ea3eed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // DataEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L234-L236 type DataEmailAttachment struct { Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"` } @@ -38,8 +38,6 @@ func NewDataEmailAttachment() *DataEmailAttachment { return r } -// true - type DataEmailAttachmentVariant interface { DataEmailAttachmentCaster() *DataEmailAttachment } diff --git a/typedapi/types/datafeedauthorization.go b/typedapi/types/datafeedauthorization.go index 215d1ce510..d3d3431094 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DatafeedAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Authorization.ts#L31-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -92,5 +92,3 @@ func NewDatafeedAuthorization() *DatafeedAuthorization { return r } - -// false diff --git a/typedapi/types/datafeedconfig.go b/typedapi/types/datafeedconfig.go index 241f90d2e8..a057d944bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DatafeedConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -240,8 +240,6 @@ func NewDatafeedConfig() *DatafeedConfig { return r } -// true - type DatafeedConfigVariant interface { DatafeedConfigCaster() *DatafeedConfig } diff --git a/typedapi/types/datafeedrunningstate.go b/typedapi/types/datafeedrunningstate.go index e5de9a388f..b3f44b8390 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DatafeedRunningState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L210-L224 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -104,5 +104,3 @@ func NewDatafeedRunningState() *DatafeedRunningState { return r } - -// false diff --git a/typedapi/types/datafeeds.go b/typedapi/types/datafeeds.go index 07cd1dba05..129dd32917 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Datafeeds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/types.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/info/types.ts#L42-L44 type Datafeeds struct { ScrollSize int `json:"scroll_size"` } @@ -78,5 +78,3 @@ func NewDatafeeds() *Datafeeds { return r } - -// false diff --git a/typedapi/types/datafeedsrecord.go b/typedapi/types/datafeedsrecord.go index 03793b4be6..c7503dce65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DatafeedsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_datafeeds/types.ts#L22-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -233,5 +233,3 @@ func NewDatafeedsRecord() *DatafeedsRecord { return r } - -// false diff --git a/typedapi/types/datafeedstats.go b/typedapi/types/datafeedstats.go index 0987e411d8..6311b02425 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DatafeedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L143-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Datafeed.ts#L143-L172 type DatafeedStats struct { // AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a // node. @@ -120,5 +120,3 @@ func NewDatafeedStats() *DatafeedStats { return r } - -// false diff --git a/typedapi/types/datafeedtimingstats.go b/typedapi/types/datafeedtimingstats.go index c43adf554b..2258f0d0bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DatafeedTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L174-L202 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -129,5 +129,3 @@ func NewDatafeedTimingStats() *DatafeedTimingStats { return r } - -// false diff --git a/typedapi/types/dataframeanalysisanalyzedfields.go b/typedapi/types/dataframeanalysisanalyzedfields.go index e89898bd50..7b75e616c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisAnalyzedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L238-L244 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -88,8 +88,6 @@ func NewDataframeAnalysisAnalyzedFields() *DataframeAnalysisAnalyzedFields { return r } -// true - type DataframeAnalysisAnalyzedFieldsVariant interface { DataframeAnalysisAnalyzedFieldsCaster() *DataframeAnalysisAnalyzedFields } diff --git a/typedapi/types/dataframeanalysisclassification.go b/typedapi/types/dataframeanalysisclassification.go index ff6da64737..4871b65376 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L227-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -461,8 +461,6 @@ func NewDataframeAnalysisClassification() *DataframeAnalysisClassification { return r } -// true - type DataframeAnalysisClassificationVariant interface { DataframeAnalysisClassificationCaster() *DataframeAnalysisClassification } diff --git a/typedapi/types/dataframeanalysiscontainer.go b/typedapi/types/dataframeanalysiscontainer.go index 76f11e83fd..1f1bdc1003 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L84-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L84-L101 type DataframeAnalysisContainer struct { AdditionalDataframeAnalysisContainerProperty map[string]json.RawMessage `json:"-"` // Classification The configuration information necessary to perform classification. @@ -84,8 +84,6 @@ func NewDataframeAnalysisContainer() *DataframeAnalysisContainer { return r } -// true - type DataframeAnalysisContainerVariant interface { DataframeAnalysisContainerCaster() *DataframeAnalysisContainer } diff --git a/typedapi/types/dataframeanalysisfeatureprocessor.go b/typedapi/types/dataframeanalysisfeatureprocessor.go index 4254b9b239..fdf364bc6f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisFeatureProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L246-L258 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -85,8 +85,6 @@ func NewDataframeAnalysisFeatureProcessor() *DataframeAnalysisFeatureProcessor { return r } -// true - type DataframeAnalysisFeatureProcessorVariant interface { DataframeAnalysisFeatureProcessorCaster() *DataframeAnalysisFeatureProcessor } diff --git a/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go index fd910670e8..d1322ed85d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisFeatureProcessorFrequencyEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L260-L267 type DataframeAnalysisFeatureProcessorFrequencyEncoding struct { // FeatureName The resulting feature name. FeatureName string `json:"feature_name"` @@ -87,8 +87,6 @@ func NewDataframeAnalysisFeatureProcessorFrequencyEncoding() *DataframeAnalysisF return r } -// true - type DataframeAnalysisFeatureProcessorFrequencyEncodingVariant interface { DataframeAnalysisFeatureProcessorFrequencyEncodingCaster() *DataframeAnalysisFeatureProcessorFrequencyEncoding } diff --git a/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go b/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go index 78a1913970..1c1ab2d057 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataframeAnalysisFeatureProcessorMultiEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -35,8 +35,6 @@ func NewDataframeAnalysisFeatureProcessorMultiEncoding() *DataframeAnalysisFeatu return r } -// true - type DataframeAnalysisFeatureProcessorMultiEncodingVariant interface { DataframeAnalysisFeatureProcessorMultiEncodingCaster() *DataframeAnalysisFeatureProcessorMultiEncoding } diff --git a/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go index f1fb18155d..2ec1340af9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorNGramEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L274-L286 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L274-L286 type DataframeAnalysisFeatureProcessorNGramEncoding struct { Custom *bool `json:"custom,omitempty"` // FeaturePrefix The feature name prefix. Defaults to ngram__. @@ -144,8 +144,6 @@ func NewDataframeAnalysisFeatureProcessorNGramEncoding() *DataframeAnalysisFeatu return r } -// true - type DataframeAnalysisFeatureProcessorNGramEncodingVariant interface { DataframeAnalysisFeatureProcessorNGramEncodingCaster() *DataframeAnalysisFeatureProcessorNGramEncoding } diff --git a/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go b/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go index 9d342f6af2..d5ccfeca51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorOneHotEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L288-L293 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L288-L293 type DataframeAnalysisFeatureProcessorOneHotEncoding struct { // Field The name of the field to encode. Field string `json:"field"` @@ -83,8 +83,6 @@ func NewDataframeAnalysisFeatureProcessorOneHotEncoding() *DataframeAnalysisFeat return r } -// true - type DataframeAnalysisFeatureProcessorOneHotEncodingVariant interface { DataframeAnalysisFeatureProcessorOneHotEncodingCaster() *DataframeAnalysisFeatureProcessorOneHotEncoding } diff --git a/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go b/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go index 5c780d21f0..237b715fee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorTargetMeanEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L295-L304 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -106,8 +106,6 @@ func NewDataframeAnalysisFeatureProcessorTargetMeanEncoding() *DataframeAnalysis return r } -// true - type DataframeAnalysisFeatureProcessorTargetMeanEncodingVariant interface { DataframeAnalysisFeatureProcessorTargetMeanEncodingCaster() *DataframeAnalysisFeatureProcessorTargetMeanEncoding } diff --git a/typedapi/types/dataframeanalysisoutlierdetection.go b/typedapi/types/dataframeanalysisoutlierdetection.go index 7095769c9e..e58e8e1b83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L103-L132 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewDataframeAnalysisOutlierDetection() *DataframeAnalysisOutlierDetection { return r } -// true - type DataframeAnalysisOutlierDetectionVariant interface { DataframeAnalysisOutlierDetectionCaster() *DataframeAnalysisOutlierDetection } diff --git a/typedapi/types/dataframeanalysisregression.go b/typedapi/types/dataframeanalysisregression.go index 5bfd0a612e..4a30f6f99f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -458,8 +458,6 @@ func NewDataframeAnalysisRegression() *DataframeAnalysisRegression { return r } -// true - type DataframeAnalysisRegressionVariant interface { DataframeAnalysisRegressionCaster() *DataframeAnalysisRegression } diff --git a/typedapi/types/dataframeanalytics.go b/typedapi/types/dataframeanalytics.go index 21dc2d79ec..078e2327dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DataframeAnalytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L325-L345 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -131,5 +131,3 @@ func NewDataframeAnalytics() *DataframeAnalytics { return r } - -// false diff --git a/typedapi/types/dataframeanalyticsauthorization.go b/typedapi/types/dataframeanalyticsauthorization.go index 1336da4f01..bc071e546c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Authorization.ts#L45-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -92,5 +92,3 @@ func NewDataframeAnalyticsAuthorization() *DataframeAnalyticsAuthorization { return r } - -// false diff --git a/typedapi/types/dataframeanalyticsdestination.go b/typedapi/types/dataframeanalyticsdestination.go index daabdca874..9672053a7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -77,8 +77,6 @@ func NewDataframeAnalyticsDestination() *DataframeAnalyticsDestination { return r } -// true - type DataframeAnalyticsDestinationVariant interface { DataframeAnalyticsDestinationCaster() *DataframeAnalyticsDestination } diff --git a/typedapi/types/dataframeanalyticsfieldselection.go b/typedapi/types/dataframeanalyticsfieldselection.go index 4867a48680..6aacf4e1d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsFieldSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -136,5 +136,3 @@ func NewDataframeAnalyticsFieldSelection() *DataframeAnalyticsFieldSelection { return r } - -// false diff --git a/typedapi/types/dataframeanalyticsmemoryestimation.go b/typedapi/types/dataframeanalyticsmemoryestimation.go index 9e9e19ae64..d745da997a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsMemoryEstimation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -93,5 +93,3 @@ func NewDataframeAnalyticsMemoryEstimation() *DataframeAnalyticsMemoryEstimation return r } - -// false diff --git a/typedapi/types/dataframeanalyticsrecord.go b/typedapi/types/dataframeanalyticsrecord.go index c63f5bf739..64afab0070 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataFrameAnalyticsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -237,5 +237,3 @@ func NewDataFrameAnalyticsRecord() *DataFrameAnalyticsRecord { return r } - -// false diff --git a/typedapi/types/dataframeanalyticssource.go b/typedapi/types/dataframeanalyticssource.go index d05f487017..91d63ad7a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -110,8 +110,6 @@ func NewDataframeAnalyticsSource() *DataframeAnalyticsSource { return r } -// true - type DataframeAnalyticsSourceVariant interface { DataframeAnalyticsSourceCaster() *DataframeAnalyticsSource } diff --git a/typedapi/types/dataframeanalyticsstatscontainer.go b/typedapi/types/dataframeanalyticsstatscontainer.go index 2c296cc986..93b8e7e02c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalyticsStatsContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L374-L382 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -75,5 +75,3 @@ func NewDataframeAnalyticsStatsContainer() *DataframeAnalyticsStatsContainer { return r } - -// false diff --git a/typedapi/types/dataframeanalyticsstatsdatacounts.go b/typedapi/types/dataframeanalyticsstatsdatacounts.go index 9e2b0389e1..de6c87a838 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsDataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L365-L372 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -120,5 +120,3 @@ func NewDataframeAnalyticsStatsDataCounts() *DataframeAnalyticsStatsDataCounts { return r } - -// false diff --git a/typedapi/types/dataframeanalyticsstatshyperparameters.go b/typedapi/types/dataframeanalyticsstatshyperparameters.go index e92f7b72f4..fec63cfad5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsHyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L384-L403 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -108,5 +108,3 @@ func NewDataframeAnalyticsStatsHyperparameters() *DataframeAnalyticsStatsHyperpa return r } - -// false diff --git a/typedapi/types/dataframeanalyticsstatsmemoryusage.go b/typedapi/types/dataframeanalyticsstatsmemoryusage.go index 5305806d71..9fe8978597 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L354-L363 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -117,5 +117,3 @@ func NewDataframeAnalyticsStatsMemoryUsage() *DataframeAnalyticsStatsMemoryUsage return r } - -// false diff --git a/typedapi/types/dataframeanalyticsstatsoutlierdetection.go b/typedapi/types/dataframeanalyticsstatsoutlierdetection.go index 953b5703b6..bd96243bf1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsStatsOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L405-L418 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -83,5 +83,3 @@ func NewDataframeAnalyticsStatsOutlierDetection() *DataframeAnalyticsStatsOutlie return r } - -// false diff --git a/typedapi/types/dataframeanalyticsstatsprogress.go b/typedapi/types/dataframeanalyticsstatsprogress.go index 2335c01b09..9b9f3c0520 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L347-L352 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L347-L352 type DataframeAnalyticsStatsProgress struct { // Phase Defines the phase of the data frame analytics job. Phase string `json:"phase"` @@ -94,5 +94,3 @@ func NewDataframeAnalyticsStatsProgress() *DataframeAnalyticsStatsProgress { return r } - -// false diff --git a/typedapi/types/dataframeanalyticssummary.go b/typedapi/types/dataframeanalyticssummary.go index a0d4bce8db..db9157dfac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L306-L323 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L306-L323 type DataframeAnalyticsSummary struct { AllowLazyStart *bool `json:"allow_lazy_start,omitempty"` Analysis DataframeAnalysisContainer `json:"analysis"` @@ -176,5 +176,3 @@ func NewDataframeAnalyticsSummary() *DataframeAnalyticsSummary { return r } - -// false diff --git a/typedapi/types/dataframeclassificationsummary.go b/typedapi/types/dataframeclassificationsummary.go index 07db6e4f0c..c5331d396e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataframeClassificationSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L44-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -45,5 +45,3 @@ func NewDataframeClassificationSummary() *DataframeClassificationSummary { return r } - -// false diff --git a/typedapi/types/dataframeclassificationsummaryaccuracy.go b/typedapi/types/dataframeclassificationsummaryaccuracy.go index 839e72a69f..17bb4f46ee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryAccuracy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L111-L114 type DataframeClassificationSummaryAccuracy struct { Classes []DataframeEvaluationClass `json:"classes"` OverallAccuracy Float64 `json:"overall_accuracy"` @@ -84,5 +84,3 @@ func NewDataframeClassificationSummaryAccuracy() *DataframeClassificationSummary return r } - -// false diff --git a/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go b/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go index 77ce105217..90e719722c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryMulticlassConfusionMatrix type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L120-L123 type DataframeClassificationSummaryMulticlassConfusionMatrix struct { ConfusionMatrix []ConfusionMatrixItem `json:"confusion_matrix"` OtherActualClassCount int `json:"other_actual_class_count"` @@ -84,5 +84,3 @@ func NewDataframeClassificationSummaryMulticlassConfusionMatrix() *DataframeClas return r } - -// false diff --git a/typedapi/types/dataframeclassificationsummaryprecision.go b/typedapi/types/dataframeclassificationsummaryprecision.go index 2c0d16c91e..8190aad461 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L101-L104 type DataframeClassificationSummaryPrecision struct { AvgPrecision Float64 `json:"avg_precision"` Classes []DataframeEvaluationClass `json:"classes"` @@ -84,5 +84,3 @@ func NewDataframeClassificationSummaryPrecision() *DataframeClassificationSummar return r } - -// false diff --git a/typedapi/types/dataframeclassificationsummaryrecall.go b/typedapi/types/dataframeclassificationsummaryrecall.go index 090883b914..002481f0a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L106-L109 type DataframeClassificationSummaryRecall struct { AvgRecall Float64 `json:"avg_recall"` Classes []DataframeEvaluationClass `json:"classes"` @@ -84,5 +84,3 @@ func NewDataframeClassificationSummaryRecall() *DataframeClassificationSummaryRe return r } - -// false diff --git a/typedapi/types/dataframeevaluationclass.go b/typedapi/types/dataframeevaluationclass.go index 9e2b0de44a..794b90c490 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L116-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L116-L118 type DataframeEvaluationClass struct { ClassName string `json:"class_name"` Value Float64 `json:"value"` @@ -84,5 +84,3 @@ func NewDataframeEvaluationClass() *DataframeEvaluationClass { return r } - -// false diff --git a/typedapi/types/dataframeevaluationclassification.go b/typedapi/types/dataframeevaluationclassification.go index ec288368cf..b08fb49d9f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -94,8 +94,6 @@ func NewDataframeEvaluationClassification() *DataframeEvaluationClassification { return r } -// true - type DataframeEvaluationClassificationVariant interface { DataframeEvaluationClassificationCaster() *DataframeEvaluationClassification } diff --git a/typedapi/types/dataframeevaluationclassificationmetrics.go b/typedapi/types/dataframeevaluationclassificationmetrics.go index 19d92dfaf0..71d676014b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationClassificationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -54,8 +54,6 @@ func NewDataframeEvaluationClassificationMetrics() *DataframeEvaluationClassific return r } -// true - type DataframeEvaluationClassificationMetricsVariant interface { DataframeEvaluationClassificationMetricsCaster() *DataframeEvaluationClassificationMetrics } diff --git a/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go b/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go index 7c629094a4..9658e632cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClassificationMetricsAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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). @@ -89,8 +89,6 @@ func NewDataframeEvaluationClassificationMetricsAucRoc() *DataframeEvaluationCla return r } -// true - type DataframeEvaluationClassificationMetricsAucRocVariant interface { DataframeEvaluationClassificationMetricsAucRocCaster() *DataframeEvaluationClassificationMetricsAucRoc } diff --git a/typedapi/types/dataframeevaluationcontainer.go b/typedapi/types/dataframeevaluationcontainer.go index 4c2020fd49..7743758ef4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // DataframeEvaluationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -80,8 +80,6 @@ func NewDataframeEvaluationContainer() *DataframeEvaluationContainer { return r } -// true - type DataframeEvaluationContainerVariant interface { DataframeEvaluationContainerCaster() *DataframeEvaluationContainer } diff --git a/typedapi/types/dataframeevaluationoutlierdetection.go b/typedapi/types/dataframeevaluationoutlierdetection.go index e37ec40429..d639266edf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L46-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -86,8 +86,6 @@ func NewDataframeEvaluationOutlierDetection() *DataframeEvaluationOutlierDetecti return r } -// true - type DataframeEvaluationOutlierDetectionVariant interface { DataframeEvaluationOutlierDetectionCaster() *DataframeEvaluationOutlierDetection } diff --git a/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go b/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go index 27c337a3a8..afc97bdbce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationOutlierDetectionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L80-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -51,8 +51,6 @@ func NewDataframeEvaluationOutlierDetectionMetrics() *DataframeEvaluationOutlier return r } -// true - type DataframeEvaluationOutlierDetectionMetricsVariant interface { DataframeEvaluationOutlierDetectionMetricsCaster() *DataframeEvaluationOutlierDetectionMetrics } diff --git a/typedapi/types/dataframeevaluationregression.go b/typedapi/types/dataframeevaluationregression.go index 408656a59b..a82fe863c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -86,8 +86,6 @@ func NewDataframeEvaluationRegression() *DataframeEvaluationRegression { return r } -// true - type DataframeEvaluationRegressionVariant interface { DataframeEvaluationRegressionCaster() *DataframeEvaluationRegression } diff --git a/typedapi/types/dataframeevaluationregressionmetrics.go b/typedapi/types/dataframeevaluationregressionmetrics.go index 651d7d2b89..0ae82a3d3b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationRegressionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L92-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeEvaluation.ts#L92-L110 type DataframeEvaluationRegressionMetrics struct { // Huber Pseudo Huber loss function. Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"` @@ -51,8 +51,6 @@ func NewDataframeEvaluationRegressionMetrics() *DataframeEvaluationRegressionMet return r } -// true - type DataframeEvaluationRegressionMetricsVariant interface { DataframeEvaluationRegressionMetricsCaster() *DataframeEvaluationRegressionMetrics } diff --git a/typedapi/types/dataframeevaluationregressionmetricshuber.go b/typedapi/types/dataframeevaluationregressionmetricshuber.go index 1794e27015..2e12ba0d7b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsHuber type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L117-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -82,8 +82,6 @@ func NewDataframeEvaluationRegressionMetricsHuber() *DataframeEvaluationRegressi return r } -// true - type DataframeEvaluationRegressionMetricsHuberVariant interface { DataframeEvaluationRegressionMetricsHuberCaster() *DataframeEvaluationRegressionMetricsHuber } diff --git a/typedapi/types/dataframeevaluationregressionmetricsmsle.go b/typedapi/types/dataframeevaluationregressionmetricsmsle.go index 8c77a1fb74..4dbfe7817b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsMsle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeEvaluation.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -81,8 +81,6 @@ func NewDataframeEvaluationRegressionMetricsMsle() *DataframeEvaluationRegressio return r } -// true - type DataframeEvaluationRegressionMetricsMsleVariant interface { DataframeEvaluationRegressionMetricsMsleCaster() *DataframeEvaluationRegressionMetricsMsle } diff --git a/typedapi/types/dataframeevaluationsummaryaucroc.go b/typedapi/types/dataframeevaluationsummaryaucroc.go index f5c9ddefdc..a182bf1bd2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L91-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L91-L93 type DataframeEvaluationSummaryAucRoc struct { Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"` Value Float64 `json:"value"` @@ -84,5 +84,3 @@ func NewDataframeEvaluationSummaryAucRoc() *DataframeEvaluationSummaryAucRoc { return r } - -// false diff --git a/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go b/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go index 9d6704656d..23fd22eb7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRocCurveItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L95-L99 type DataframeEvaluationSummaryAucRocCurveItem struct { Fpr Float64 `json:"fpr"` Threshold Float64 `json:"threshold"` @@ -112,5 +112,3 @@ func NewDataframeEvaluationSummaryAucRocCurveItem() *DataframeEvaluationSummaryA return r } - -// false diff --git a/typedapi/types/dataframeevaluationvalue.go b/typedapi/types/dataframeevaluationvalue.go index aa1bad9feb..9798897b99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L87-L89 type DataframeEvaluationValue struct { Value Float64 `json:"value"` } @@ -78,5 +78,3 @@ func NewDataframeEvaluationValue() *DataframeEvaluationValue { return r } - -// false diff --git a/typedapi/types/dataframeoutlierdetectionsummary.go b/typedapi/types/dataframeoutlierdetectionsummary.go index e077e982d0..fe114c282f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataframeOutlierDetectionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -49,5 +49,3 @@ func NewDataframeOutlierDetectionSummary() *DataframeOutlierDetectionSummary { return r } - -// false diff --git a/typedapi/types/dataframepreviewconfig.go b/typedapi/types/dataframepreviewconfig.go index f0819dd09f..e16cf2d52c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataframePreviewConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 type DataframePreviewConfig struct { Analysis DataframeAnalysisContainer `json:"analysis"` AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"` @@ -110,8 +110,6 @@ func NewDataframePreviewConfig() *DataframePreviewConfig { return r } -// true - type DataframePreviewConfigVariant interface { DataframePreviewConfigCaster() *DataframePreviewConfig } diff --git a/typedapi/types/dataframeregressionsummary.go b/typedapi/types/dataframeregressionsummary.go index f571a09094..2000ec5abb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataframeRegressionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/evaluate_data_frame/types.ts#L68-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/evaluate_data_frame/types.ts#L68-L85 type DataframeRegressionSummary struct { // Huber Pseudo Huber loss function. Huber *DataframeEvaluationValue `json:"huber,omitempty"` @@ -43,5 +43,3 @@ func NewDataframeRegressionSummary() *DataframeRegressionSummary { return r } - -// false diff --git a/typedapi/types/datapathstats.go b/typedapi/types/datapathstats.go index ef1038eadf..99aafcb0c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataPathStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L586-L630 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L588-L632 type DataPathStats struct { // Available Total amount of disk space available to this Java virtual machine on this // file store. @@ -301,5 +301,3 @@ func NewDataPathStats() *DataPathStats { return r } - -// false diff --git a/typedapi/types/datastream.go b/typedapi/types/datastream.go index d41c2f6b95..77357c824c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // DataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L45-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -271,5 +271,3 @@ func NewDataStream() *DataStream { return r } - -// false diff --git a/typedapi/types/datastreamindex.go b/typedapi/types/datastreamindex.go index e271ef60f3..4af2b36c1e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DataStreamIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L136-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -108,5 +108,3 @@ func NewDataStreamIndex() *DataStreamIndex { return r } - -// false diff --git a/typedapi/types/datastreamlifecycle.go b/typedapi/types/datastreamlifecycle.go index 3efe6755a3..311b03e5b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStreamLifecycle.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -98,8 +98,6 @@ func NewDataStreamLifecycle() *DataStreamLifecycle { return r } -// true - type DataStreamLifecycleVariant interface { DataStreamLifecycleCaster() *DataStreamLifecycle } diff --git a/typedapi/types/datastreamlifecycledetails.go b/typedapi/types/datastreamlifecycledetails.go index e6e87f7e00..f6affd2c61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L153-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L154-L158 type DataStreamLifecycleDetails struct { StagnatingBackingIndices []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"` StagnatingBackingIndicesCount int `json:"stagnating_backing_indices_count"` @@ -101,5 +101,3 @@ func NewDataStreamLifecycleDetails() *DataStreamLifecycleDetails { return r } - -// false diff --git a/typedapi/types/datastreamlifecycledownsampling.go b/typedapi/types/datastreamlifecycledownsampling.go index 6b3f8e2d0b..2fb9322d0e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataStreamLifecycleDownsampling type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 type DataStreamLifecycleDownsampling struct { // Rounds The list of downsampling rounds to execute as part of this downsampling // configuration @@ -36,8 +36,6 @@ func NewDataStreamLifecycleDownsampling() *DataStreamLifecycleDownsampling { return r } -// true - type DataStreamLifecycleDownsamplingVariant interface { DataStreamLifecycleDownsamplingCaster() *DataStreamLifecycleDownsampling } diff --git a/typedapi/types/datastreamlifecycleexplain.go b/typedapi/types/datastreamlifecycleexplain.go index 0212317564..097b4e99d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleExplain type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 type DataStreamLifecycleExplain struct { Error *string `json:"error,omitempty"` GenerationTime Duration `json:"generation_time,omitempty"` @@ -131,5 +131,3 @@ func NewDataStreamLifecycleExplain() *DataStreamLifecycleExplain { return r } - -// false diff --git a/typedapi/types/datastreamlifecycleindicator.go b/typedapi/types/datastreamlifecycleindicator.go index 0d8c32eb4c..9e61b2e9de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DataStreamLifecycleIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L148-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L149-L153 type DataStreamLifecycleIndicator struct { Details *DataStreamLifecycleDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewDataStreamLifecycleIndicator() *DataStreamLifecycleIndicator { return r } - -// false diff --git a/typedapi/types/datastreamlifecyclerolloverconditions.go b/typedapi/types/datastreamlifecyclerolloverconditions.go index 7b30f8c89e..533a021300 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleRolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 type DataStreamLifecycleRolloverConditions struct { MaxAge *string `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` @@ -169,8 +169,6 @@ func NewDataStreamLifecycleRolloverConditions() *DataStreamLifecycleRolloverCond return r } -// true - type DataStreamLifecycleRolloverConditionsVariant interface { DataStreamLifecycleRolloverConditionsCaster() *DataStreamLifecycleRolloverConditions } diff --git a/typedapi/types/datastreamlifecyclewithrollover.go b/typedapi/types/datastreamlifecyclewithrollover.go index 09225705f8..e900041070 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleWithRollover type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStreamLifecycle.ts#L47-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -109,8 +109,6 @@ func NewDataStreamLifecycleWithRollover() *DataStreamLifecycleWithRollover { return r } -// true - type DataStreamLifecycleWithRolloverVariant interface { DataStreamLifecycleWithRolloverCaster() *DataStreamLifecycleWithRollover } diff --git a/typedapi/types/datastreamnames.go b/typedapi/types/datastreamnames.go index 7b249172e3..68462f11d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DataStreamNames type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L88-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L88-L88 type DataStreamNames []string diff --git a/typedapi/types/datastreams.go b/typedapi/types/datastreams.go index c55486ac04..8971e24e94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreams type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L78-L81 type DataStreams struct { Available bool `json:"available"` DataStreams int64 `json:"data_streams"` @@ -123,5 +123,3 @@ func NewDataStreams() *DataStreams { return r } - -// false diff --git a/typedapi/types/datastreamsstatsitem.go b/typedapi/types/datastreamsstatsitem.go index 583e149cde..848337f652 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamsStatsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -124,5 +124,3 @@ func NewDataStreamsStatsItem() *DataStreamsStatsItem { return r } - -// false diff --git a/typedapi/types/datastreamstats.go b/typedapi/types/datastreamstats.go index 8b70bd7e21..710c98998b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -105,5 +105,3 @@ func NewDataStreamStats() *DataStreamStats { return r } - -// false diff --git a/typedapi/types/datastreamtimestamp.go b/typedapi/types/datastreamtimestamp.go index c2ee545bab..a3caafbd34 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamTimestamp type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/TypeMapping.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/TypeMapping.ts#L59-L61 type DataStreamTimestamp struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewDataStreamTimestamp() *DataStreamTimestamp { return r } -// true - type DataStreamTimestampVariant interface { DataStreamTimestampCaster() *DataStreamTimestamp } diff --git a/typedapi/types/datastreamtimestampfield.go b/typedapi/types/datastreamtimestampfield.go index 1457a8adce..de8770b252 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataStreamTimestampField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L129-L134 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -69,5 +69,3 @@ func NewDataStreamTimestampField() *DataStreamTimestampField { return r } - -// false diff --git a/typedapi/types/datastreamvisibility.go b/typedapi/types/datastreamvisibility.go index 57cf9a6d27..ce79dabc76 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataStreamVisibility type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L159-L162 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/DataStream.ts#L159-L162 type DataStreamVisibility struct { AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` Hidden *bool `json:"hidden,omitempty"` @@ -92,8 +92,6 @@ func NewDataStreamVisibility() *DataStreamVisibility { return r } -// true - type DataStreamVisibilityVariant interface { DataStreamVisibilityCaster() *DataStreamVisibility } diff --git a/typedapi/types/datastreamwithlifecycle.go b/typedapi/types/datastreamwithlifecycle.go index 137ca52760..5d6bc40f50 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DataStreamWithLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 type DataStreamWithLifecycle struct { Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewDataStreamWithLifecycle() *DataStreamWithLifecycle { return r } - -// false diff --git a/typedapi/types/datatierphasestatistics.go b/typedapi/types/datatierphasestatistics.go index f22282cec8..54e508e8c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataTierPhaseStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L83-L94 type DataTierPhaseStatistics struct { DocCount int64 `json:"doc_count"` IndexCount int64 `json:"index_count"` @@ -221,5 +221,3 @@ func NewDataTierPhaseStatistics() *DataTierPhaseStatistics { return r } - -// false diff --git a/typedapi/types/datatiers.go b/typedapi/types/datatiers.go index 9286ce73d0..8c1a08c50d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DataTiers type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L349-L359 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L349-L359 type DataTiers struct { Available bool `json:"available"` DataCold DataTierPhaseStatistics `json:"data_cold"` @@ -121,5 +121,3 @@ func NewDataTiers() *DataTiers { return r } - -// false diff --git a/typedapi/types/datedecayfunction.go b/typedapi/types/datedecayfunction.go index 8d14085954..131868c451 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // DateDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L209-L209 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -75,8 +75,6 @@ func NewDateDecayFunction() *DateDecayFunction { return r } -// true - type DateDecayFunctionVariant interface { DateDecayFunctionCaster() *DateDecayFunction } @@ -84,3 +82,8 @@ type DateDecayFunctionVariant interface { func (s *DateDecayFunction) DateDecayFunctionCaster() *DateDecayFunction { return s } + +func (s *DateDecayFunction) DecayFunctionCaster() *DecayFunction { + o := DecayFunction(s) + return &o +} diff --git a/typedapi/types/datedistancefeaturequery.go b/typedapi/types/datedistancefeaturequery.go index e82aded8ff..d740c34a5e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -132,8 +132,6 @@ func NewDateDistanceFeatureQuery() *DateDistanceFeatureQuery { return r } -// true - type DateDistanceFeatureQueryVariant interface { DateDistanceFeatureQueryCaster() *DateDistanceFeatureQuery } @@ -141,3 +139,8 @@ type DateDistanceFeatureQueryVariant interface { func (s *DateDistanceFeatureQuery) DateDistanceFeatureQueryCaster() *DateDistanceFeatureQuery { return s } + +func (s *DateDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery { + o := DistanceFeatureQuery(s) + return &o +} diff --git a/typedapi/types/datehistogramaggregate.go b/typedapi/types/datehistogramaggregate.go index d7e2c52b1c..a7c5842b6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L383-L386 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L383-L386 type DateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewDateHistogramAggregate() *DateHistogramAggregate { return r } - -// false diff --git a/typedapi/types/datehistogramaggregation.go b/typedapi/types/datehistogramaggregation.go index b8ce865e7c..5c7571c1e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // DateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L202-L260 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -226,8 +226,6 @@ func NewDateHistogramAggregation() *DateHistogramAggregation { return r } -// true - type DateHistogramAggregationVariant interface { DateHistogramAggregationCaster() *DateHistogramAggregation } diff --git a/typedapi/types/datehistogrambucket.go b/typedapi/types/datehistogrambucket.go index 23f680a976..99c12035e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // DateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L388-L391 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L388-L391 type DateHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -649,5 +649,3 @@ func NewDateHistogramBucket() *DateHistogramBucket { return r } - -// false diff --git a/typedapi/types/datehistogramgrouping.go b/typedapi/types/datehistogramgrouping.go index 0f99ce8d8c..bdb79cbd59 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateHistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Groupings.ts#L42-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -125,8 +125,6 @@ func NewDateHistogramGrouping() *DateHistogramGrouping { return r } -// true - type DateHistogramGroupingVariant interface { DateHistogramGroupingCaster() *DateHistogramGrouping } diff --git a/typedapi/types/dateindexnameprocessor.go b/typedapi/types/dateindexnameprocessor.go index 67cf33b50b..c77e932796 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateIndexNameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L730-L768 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L730-L768 type DateIndexNameProcessor struct { // DateFormats An array of the expected date formats for parsing dates / timestamps in the // document being preprocessed. @@ -218,8 +218,6 @@ func NewDateIndexNameProcessor() *DateIndexNameProcessor { return r } -// true - type DateIndexNameProcessorVariant interface { DateIndexNameProcessorCaster() *DateIndexNameProcessor } diff --git a/typedapi/types/datenanosproperty.go b/typedapi/types/datenanosproperty.go index 79249987cf..96787c715d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // DateNanosProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L89-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L89-L99 type DateNanosProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -266,6 +266,12 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -687,6 +693,12 @@ func (s *DateNanosProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -950,8 +962,6 @@ func NewDateNanosProperty() *DateNanosProperty { return r } -// true - type DateNanosPropertyVariant interface { DateNanosPropertyCaster() *DateNanosProperty } @@ -959,3 +969,8 @@ type DateNanosPropertyVariant interface { func (s *DateNanosProperty) DateNanosPropertyCaster() *DateNanosProperty { return s } + +func (s *DateNanosProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/dateprocessor.go b/typedapi/types/dateprocessor.go index 0c38d191ba..7ce6e4f40d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L770-L803 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L770-L803 type DateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -191,8 +191,6 @@ func NewDateProcessor() *DateProcessor { return r } -// true - type DateProcessorVariant interface { DateProcessorCaster() *DateProcessor } diff --git a/typedapi/types/dateproperty.go b/typedapi/types/dateproperty.go index d5a310f1b0..34c8c83aff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // DateProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L75-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L75-L87 type DateProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -273,6 +273,12 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -706,6 +712,12 @@ func (s *DateProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -971,8 +983,6 @@ func NewDateProperty() *DateProperty { return r } -// true - type DatePropertyVariant interface { DatePropertyCaster() *DateProperty } @@ -980,3 +990,8 @@ type DatePropertyVariant interface { func (s *DateProperty) DatePropertyCaster() *DateProperty { return s } + +func (s *DateProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/daterangeaggregate.go b/typedapi/types/daterangeaggregate.go index b33f983ab8..92c958b009 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DateRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L609-L615 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L609-L615 type DateRangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewDateRangeAggregate() *DateRangeAggregate { return r } - -// false diff --git a/typedapi/types/daterangeaggregation.go b/typedapi/types/daterangeaggregation.go index 4195429651..e982e5c4a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L281-L307 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -122,8 +122,6 @@ func NewDateRangeAggregation() *DateRangeAggregation { return r } -// true - type DateRangeAggregationVariant interface { DateRangeAggregationCaster() *DateRangeAggregation } diff --git a/typedapi/types/daterangeexpression.go b/typedapi/types/daterangeexpression.go index 90403b7f9d..25c280e072 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DateRangeExpression type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L318-L331 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L318-L331 type DateRangeExpression struct { // From Start of the range (inclusive). From FieldDateMath `json:"from,omitempty"` @@ -90,8 +90,6 @@ func NewDateRangeExpression() *DateRangeExpression { return r } -// true - type DateRangeExpressionVariant interface { DateRangeExpressionCaster() *DateRangeExpression } diff --git a/typedapi/types/daterangeproperty.go b/typedapi/types/daterangeproperty.go index a857966eb8..2590038ccd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // DateRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L29-L32 type DateRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -275,6 +275,12 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -656,6 +662,12 @@ func (s *DateRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -910,8 +922,6 @@ func NewDateRangeProperty() *DateRangeProperty { return r } -// true - type DateRangePropertyVariant interface { DateRangePropertyCaster() *DateRangeProperty } @@ -919,3 +929,8 @@ type DateRangePropertyVariant interface { func (s *DateRangeProperty) DateRangePropertyCaster() *DateRangeProperty { return s } + +func (s *DateRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/daterangequery.go b/typedapi/types/daterangequery.go index 6bc38a6f2e..d3cd985137 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DateRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L161-L170 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L157-L166 type DateRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -43,7 +43,6 @@ type DateRangeQuery struct { Boost *float32 `json:"boost,omitempty"` // Format Date format used to convert `date` values in the query. Format *string `json:"format,omitempty"` - From *string `json:"from,omitempty"` // Gt Greater than. Gt *string `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -58,7 +57,6 @@ type DateRangeQuery struct { // TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert // `date` values in the query to UTC. TimeZone *string `json:"time_zone,omitempty"` - To *string `json:"to,omitempty"` } func (s *DateRangeQuery) UnmarshalJSON(data []byte) error { @@ -97,11 +95,6 @@ func (s *DateRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Format", err) } - case "from": - if err := dec.Decode(&s.From); err != nil { - return fmt.Errorf("%s | %w", "From", err) - } - case "gt": if err := dec.Decode(&s.Gt); err != nil { return fmt.Errorf("%s | %w", "Gt", err) @@ -144,11 +137,6 @@ func (s *DateRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "TimeZone", err) } - case "to": - if err := dec.Decode(&s.To); err != nil { - return fmt.Errorf("%s | %w", "To", err) - } - } } return nil @@ -161,8 +149,6 @@ func NewDateRangeQuery() *DateRangeQuery { return r } -// true - type DateRangeQueryVariant interface { DateRangeQueryCaster() *DateRangeQuery } @@ -170,3 +156,8 @@ type DateRangeQueryVariant interface { func (s *DateRangeQuery) DateRangeQueryCaster() *DateRangeQuery { return s } + +func (s *DateRangeQuery) RangeQueryCaster() *RangeQuery { + o := RangeQuery(s) + return &o +} diff --git a/typedapi/types/datetime.go b/typedapi/types/datetime.go index d746d72561..cdb1329a06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // int64 // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b46ffa730b..8743b65d90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ package types // NumericDecayFunction // GeoDecayFunction // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L215-L224 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0bc5328771..bf659d2177 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DecayPlacement type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -104,8 +104,6 @@ func NewDecayPlacement() *DecayPlacement { return r } -// true - type DecayPlacementVariant interface { DecayPlacementCaster() *DecayPlacement } diff --git a/typedapi/types/decayplacementdatemathduration.go b/typedapi/types/decayplacementdatemathduration.go index 85eba8d288..ef708a1cf3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -104,8 +104,6 @@ func NewDecayPlacementDateMathDuration() *DecayPlacementDateMathDuration { return r } -// true - type DecayPlacementDateMathDurationVariant interface { DecayPlacementDateMathDurationCaster() *DecayPlacementDateMathDuration } diff --git a/typedapi/types/decayplacementdoubledouble.go b/typedapi/types/decayplacementdoubledouble.go index 35c4757e29..830779ca5b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementdoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -137,8 +137,6 @@ func NewDecayPlacementdoubledouble() *DecayPlacementdoubledouble { return r } -// true - type DecayPlacementdoubledoubleVariant interface { DecayPlacementdoubledoubleCaster() *DecayPlacementdoubledouble } diff --git a/typedapi/types/decayplacementgeolocationdistance.go b/typedapi/types/decayplacementgeolocationdistance.go index b264685ea2..71b15711ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -144,8 +144,6 @@ func NewDecayPlacementGeoLocationDistance() *DecayPlacementGeoLocationDistance { return r } -// true - type DecayPlacementGeoLocationDistanceVariant interface { DecayPlacementGeoLocationDistanceCaster() *DecayPlacementGeoLocationDistance } diff --git a/typedapi/types/decimaldigittokenfilter.go b/typedapi/types/decimaldigittokenfilter.go new file mode 100644 index 0000000000..a2eb7bd57b --- /dev/null +++ b/typedapi/types/decimaldigittokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// DecimalDigitTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L482-L484 +type DecimalDigitTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *DecimalDigitTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s DecimalDigitTokenFilter) MarshalJSON() ([]byte, error) { + type innerDecimalDigitTokenFilter DecimalDigitTokenFilter + tmp := innerDecimalDigitTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "decimal_digit" + + return json.Marshal(tmp) +} + +// NewDecimalDigitTokenFilter returns a DecimalDigitTokenFilter. +func NewDecimalDigitTokenFilter() *DecimalDigitTokenFilter { + r := &DecimalDigitTokenFilter{} + + return r +} + +type DecimalDigitTokenFilterVariant interface { + DecimalDigitTokenFilterCaster() *DecimalDigitTokenFilter +} + +func (s *DecimalDigitTokenFilter) DecimalDigitTokenFilterCaster() *DecimalDigitTokenFilter { + return s +} + +func (s *DecimalDigitTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/defaults.go b/typedapi/types/defaults.go index 494b78806c..e57d9d32f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Defaults type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/info/types.ts#L24-L27 type Defaults struct { AnomalyDetectors AnomalyDetectors `json:"anomaly_detectors"` Datafeeds Datafeeds `json:"datafeeds"` @@ -34,5 +34,3 @@ func NewDefaults() *Defaults { return r } - -// false diff --git a/typedapi/types/definition.go b/typedapi/types/definition.go index 8ebdb05deb..6bd7751b52 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Definition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L24-L29 type Definition struct { // Preprocessors Collection of preprocessors Preprocessors []Preprocessor `json:"preprocessors,omitempty"` @@ -37,8 +37,6 @@ func NewDefinition() *Definition { return r } -// true - type DefinitionVariant interface { DefinitionCaster() *Definition } diff --git a/typedapi/types/delayeddatacheckconfig.go b/typedapi/types/delayeddatacheckconfig.go index 2c1a7f3884..31f4d7bdee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DelayedDataCheckConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L122-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -90,8 +90,6 @@ func NewDelayedDataCheckConfig() *DelayedDataCheckConfig { return r } -// true - type DelayedDataCheckConfigVariant interface { DelayedDataCheckConfigCaster() *DelayedDataCheckConfig } diff --git a/typedapi/types/deleteaction.go b/typedapi/types/deleteaction.go index 6d894fc27f..e0fad3e312 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DeleteAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L149-L151 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L149-L151 type DeleteAction struct { DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"` } @@ -77,8 +77,6 @@ func NewDeleteAction() *DeleteAction { return r } -// true - type DeleteActionVariant interface { DeleteActionCaster() *DeleteAction } diff --git a/typedapi/types/deleteoperation.go b/typedapi/types/deleteoperation.go index a8c5554e82..7d37ca0677 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DeleteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L144-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/bulk/types.ts#L144-L144 type DeleteOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` @@ -119,8 +119,6 @@ func NewDeleteOperation() *DeleteOperation { return r } -// true - type DeleteOperationVariant interface { DeleteOperationCaster() *DeleteOperation } diff --git a/typedapi/types/delimitedpayloadtokenfilter.go b/typedapi/types/delimitedpayloadtokenfilter.go index ec9032d59d..57483085a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,12 +33,14 @@ import ( // DelimitedPayloadTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L84-L90 type DelimitedPayloadTokenFilter struct { - Delimiter *string `json:"delimiter,omitempty"` - Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // Delimiter Character used to separate tokens from payloads. Defaults to `|`. + Delimiter *string `json:"delimiter,omitempty"` + // Encoding Data type for the stored payload. + Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *DelimitedPayloadTokenFilter) UnmarshalJSON(data []byte) error { @@ -110,8 +112,6 @@ func NewDelimitedPayloadTokenFilter() *DelimitedPayloadTokenFilter { return r } -// true - type DelimitedPayloadTokenFilterVariant interface { DelimitedPayloadTokenFilterCaster() *DelimitedPayloadTokenFilter } @@ -119,3 +119,8 @@ type DelimitedPayloadTokenFilterVariant interface { func (s *DelimitedPayloadTokenFilter) DelimitedPayloadTokenFilterCaster() *DelimitedPayloadTokenFilter { return s } + +func (s *DelimitedPayloadTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/densevectorindexoptions.go b/typedapi/types/densevectorindexoptions.go index a706099bcf..744605e761 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DenseVectorIndexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/DenseVectorProperty.ts#L129-L162 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -148,8 +148,6 @@ func NewDenseVectorIndexOptions() *DenseVectorIndexOptions { return r } -// true - type DenseVectorIndexOptionsVariant interface { DenseVectorIndexOptionsCaster() *DenseVectorIndexOptions } diff --git a/typedapi/types/densevectoroffheapstats.go b/typedapi/types/densevectoroffheapstats.go new file mode 100644 index 0000000000..d7ea962c4a --- /dev/null +++ b/typedapi/types/densevectoroffheapstats.go @@ -0,0 +1,184 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DenseVectorOffHeapStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L166-L178 +type DenseVectorOffHeapStats struct { + Fielddata map[string]map[string]int64 `json:"fielddata,omitempty"` + TotalSize ByteSize `json:"total_size,omitempty"` + TotalSizeBytes int64 `json:"total_size_bytes"` + TotalVebSize ByteSize `json:"total_veb_size,omitempty"` + TotalVebSizeBytes int64 `json:"total_veb_size_bytes"` + TotalVecSize ByteSize `json:"total_vec_size,omitempty"` + TotalVecSizeBytes int64 `json:"total_vec_size_bytes"` + TotalVeqSize ByteSize `json:"total_veq_size,omitempty"` + TotalVeqSizeBytes int64 `json:"total_veq_size_bytes"` + TotalVexSize ByteSize `json:"total_vex_size,omitempty"` + TotalVexSizeBytes int64 `json:"total_vex_size_bytes"` +} + +func (s *DenseVectorOffHeapStats) 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 "fielddata": + if s.Fielddata == nil { + s.Fielddata = make(map[string]map[string]int64, 0) + } + if err := dec.Decode(&s.Fielddata); err != nil { + return fmt.Errorf("%s | %w", "Fielddata", err) + } + + case "total_size": + if err := dec.Decode(&s.TotalSize); err != nil { + return fmt.Errorf("%s | %w", "TotalSize", err) + } + + case "total_size_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalSizeBytes", err) + } + s.TotalSizeBytes = value + case float64: + f := int64(v) + s.TotalSizeBytes = f + } + + case "total_veb_size": + if err := dec.Decode(&s.TotalVebSize); err != nil { + return fmt.Errorf("%s | %w", "TotalVebSize", err) + } + + case "total_veb_size_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalVebSizeBytes", err) + } + s.TotalVebSizeBytes = value + case float64: + f := int64(v) + s.TotalVebSizeBytes = f + } + + case "total_vec_size": + if err := dec.Decode(&s.TotalVecSize); err != nil { + return fmt.Errorf("%s | %w", "TotalVecSize", err) + } + + case "total_vec_size_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalVecSizeBytes", err) + } + s.TotalVecSizeBytes = value + case float64: + f := int64(v) + s.TotalVecSizeBytes = f + } + + case "total_veq_size": + if err := dec.Decode(&s.TotalVeqSize); err != nil { + return fmt.Errorf("%s | %w", "TotalVeqSize", err) + } + + case "total_veq_size_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalVeqSizeBytes", err) + } + s.TotalVeqSizeBytes = value + case float64: + f := int64(v) + s.TotalVeqSizeBytes = f + } + + case "total_vex_size": + if err := dec.Decode(&s.TotalVexSize); err != nil { + return fmt.Errorf("%s | %w", "TotalVexSize", err) + } + + case "total_vex_size_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalVexSizeBytes", err) + } + s.TotalVexSizeBytes = value + case float64: + f := int64(v) + s.TotalVexSizeBytes = f + } + + } + } + return nil +} + +// NewDenseVectorOffHeapStats returns a DenseVectorOffHeapStats. +func NewDenseVectorOffHeapStats() *DenseVectorOffHeapStats { + r := &DenseVectorOffHeapStats{ + Fielddata: make(map[string]map[string]int64), + } + + return r +} diff --git a/typedapi/types/densevectorproperty.go b/typedapi/types/densevectorproperty.go index e65cbb529d..c2cb652742 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // DenseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/DenseVectorProperty.ts#L23-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -263,6 +263,12 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -637,6 +643,12 @@ func (s *DenseVectorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -880,8 +892,6 @@ func NewDenseVectorProperty() *DenseVectorProperty { return r } -// true - type DenseVectorPropertyVariant interface { DenseVectorPropertyCaster() *DenseVectorProperty } @@ -889,3 +899,8 @@ type DenseVectorPropertyVariant interface { func (s *DenseVectorProperty) DenseVectorPropertyCaster() *DenseVectorProperty { return s } + +func (s *DenseVectorProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/clusterpressurememory.go b/typedapi/types/densevectorstats.go similarity index 55% rename from typedapi/types/clusterpressurememory.go rename to typedapi/types/densevectorstats.go index 5ba160bbb2..9e4e91945f 100644 --- a/typedapi/types/clusterpressurememory.go +++ b/typedapi/types/densevectorstats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,16 +29,15 @@ import ( "strconv" ) -// ClusterPressureMemory type. +// DenseVectorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L574-L578 -type ClusterPressureMemory struct { - Current IndexingPressureMemorySummary `json:"current"` - LimitInBytes int64 `json:"limit_in_bytes"` - Total IndexingPressureMemorySummary `json:"total"` +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L157-L160 +type DenseVectorStats struct { + OffHeap *DenseVectorOffHeapStats `json:"off_heap,omitempty"` + ValueCount int64 `json:"value_count"` } -func (s *ClusterPressureMemory) UnmarshalJSON(data []byte) error { +func (s *DenseVectorStats) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -53,29 +52,24 @@ func (s *ClusterPressureMemory) UnmarshalJSON(data []byte) error { switch t { - case "current": - if err := dec.Decode(&s.Current); err != nil { - return fmt.Errorf("%s | %w", "Current", err) + case "off_heap": + if err := dec.Decode(&s.OffHeap); err != nil { + return fmt.Errorf("%s | %w", "OffHeap", err) } - case "limit_in_bytes": + case "value_count": var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: value, err := strconv.ParseInt(v, 10, 64) if err != nil { - return fmt.Errorf("%s | %w", "LimitInBytes", err) + return fmt.Errorf("%s | %w", "ValueCount", err) } - s.LimitInBytes = value + s.ValueCount = value case float64: f := int64(v) - s.LimitInBytes = f - } - - case "total": - if err := dec.Decode(&s.Total); err != nil { - return fmt.Errorf("%s | %w", "Total", err) + s.ValueCount = f } } @@ -83,11 +77,9 @@ func (s *ClusterPressureMemory) UnmarshalJSON(data []byte) error { return nil } -// NewClusterPressureMemory returns a ClusterPressureMemory. -func NewClusterPressureMemory() *ClusterPressureMemory { - r := &ClusterPressureMemory{} +// NewDenseVectorStats returns a DenseVectorStats. +func NewDenseVectorStats() *DenseVectorStats { + r := &DenseVectorStats{} return r } - -// false diff --git a/typedapi/types/dependency.go b/typedapi/types/dependency.go index 45bf1bc69b..f7944a2a0d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Dependency type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L30-L33 type Dependency struct { Field string `json:"field"` Value ScalarValue `json:"value"` @@ -81,8 +81,6 @@ func NewDependency() *Dependency { return r } -// true - type DependencyVariant interface { DependencyCaster() *Dependency } diff --git a/typedapi/types/deprecation.go b/typedapi/types/deprecation.go index de53b7553d..5269508051 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Deprecation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/deprecations/types.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/migration/deprecations/types.ts#L32-L47 type Deprecation struct { // Details Optional details about the deprecation warning. Details *string `json:"details,omitempty"` @@ -139,5 +139,3 @@ func NewDeprecation() *Deprecation { return r } - -// false diff --git a/typedapi/types/deprecationindexing.go b/typedapi/types/deprecationindexing.go index c73c243d76..8000c15e00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DeprecationIndexing type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L154-L156 type DeprecationIndexing struct { Enabled string `json:"enabled"` } @@ -74,5 +74,3 @@ func NewDeprecationIndexing() *DeprecationIndexing { return r } - -// false diff --git a/typedapi/types/derivativeaggregate.go b/typedapi/types/derivativeaggregate.go index ab7d6cbfbe..cbe418d6d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DerivativeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L241-L248 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L241-L248 type DerivativeAggregate struct { Meta Metadata `json:"meta,omitempty"` NormalizedValue *Float64 `json:"normalized_value,omitempty"` @@ -119,5 +119,3 @@ func NewDerivativeAggregate() *DerivativeAggregate { return r } - -// false diff --git a/typedapi/types/derivativeaggregation.go b/typedapi/types/derivativeaggregation.go index 4ea7def321..cce4230e38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DerivativeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L216-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewDerivativeAggregation() *DerivativeAggregation { return r } -// true - type DerivativeAggregationVariant interface { DerivativeAggregationCaster() *DerivativeAggregation } diff --git a/typedapi/types/detailsinfo.go b/typedapi/types/detailsinfo.go index e0bdb0b307..819e788484 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DetailsInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -122,5 +122,3 @@ func NewDetailsInfo() *DetailsInfo { return r } - -// false diff --git a/typedapi/types/detectionrule.go b/typedapi/types/detectionrule.go index 347f15a46e..629d48aa21 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // DetectionRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Rule.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -51,8 +51,6 @@ func NewDetectionRule() *DetectionRule { return r } -// true - type DetectionRuleVariant interface { DetectionRuleCaster() *DetectionRule } diff --git a/typedapi/types/detector.go b/typedapi/types/detector.go index bbe579dff1..609390c8ce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Detector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Detector.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -184,8 +184,6 @@ func NewDetector() *Detector { return r } -// true - type DetectorVariant interface { DetectorCaster() *Detector } diff --git a/typedapi/types/detectorread.go b/typedapi/types/detectorread.go index 820d1fd12c..2c8ef724ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DetectorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Detector.ts#L69-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -190,5 +190,3 @@ func NewDetectorRead() *DetectorRead { return r } - -// false diff --git a/typedapi/types/detectorupdate.go b/typedapi/types/detectorupdate.go index 99b5a3af1d..8b98aa8f94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DetectorUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Detector.ts#L127-L143 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -107,8 +107,6 @@ func NewDetectorUpdate() *DetectorUpdate { return r } -// true - type DetectorUpdateVariant interface { DetectorUpdateCaster() *DetectorUpdate } diff --git a/typedapi/types/dfsknnprofile.go b/typedapi/types/dfsknnprofile.go index dd442a8ea6..8d84e8306e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DfsKnnProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L181-L186 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L181-L186 type DfsKnnProfile struct { Collector []KnnCollectorResult `json:"collector"` Query []KnnQueryProfileResult `json:"query"` @@ -105,5 +105,3 @@ func NewDfsKnnProfile() *DfsKnnProfile { return r } - -// false diff --git a/typedapi/types/dfsprofile.go b/typedapi/types/dfsprofile.go index c9e009929a..a4a86ff934 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DfsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L154-L157 type DfsProfile struct { Knn []DfsKnnProfile `json:"knn,omitempty"` Statistics *DfsStatisticsProfile `json:"statistics,omitempty"` @@ -34,5 +34,3 @@ func NewDfsProfile() *DfsProfile { return r } - -// false diff --git a/typedapi/types/dfsstatisticsbreakdown.go b/typedapi/types/dfsstatisticsbreakdown.go index 88af3b96a2..ab9e266008 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L170-L179 type DfsStatisticsBreakdown struct { CollectionStatistics int64 `json:"collection_statistics"` CollectionStatisticsCount int64 `json:"collection_statistics_count"` @@ -189,5 +189,3 @@ func NewDfsStatisticsBreakdown() *DfsStatisticsBreakdown { return r } - -// false diff --git a/typedapi/types/dfsstatisticsprofile.go b/typedapi/types/dfsstatisticsprofile.go index 1999bef4c8..1147eabecb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L159-L167 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L159-L167 type DfsStatisticsProfile struct { Breakdown DfsStatisticsBreakdown `json:"breakdown"` Children []DfsStatisticsProfile `json:"children,omitempty"` @@ -122,5 +122,3 @@ func NewDfsStatisticsProfile() *DfsStatisticsProfile { return r } - -// false diff --git a/typedapi/types/diagnosis.go b/typedapi/types/diagnosis.go index 8cd3b6a92c..de3641d4a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Diagnosis type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L51-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L52-L58 type Diagnosis struct { Action string `json:"action"` AffectedResources DiagnosisAffectedResources `json:"affected_resources"` @@ -119,5 +119,3 @@ func NewDiagnosis() *Diagnosis { return r } - -// false diff --git a/typedapi/types/diagnosisaffectedresources.go b/typedapi/types/diagnosisaffectedresources.go index 784f830f27..e7cd56b5ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DiagnosisAffectedResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L60-L66 type DiagnosisAffectedResources struct { FeatureStates []string `json:"feature_states,omitempty"` Indices []string `json:"indices,omitempty"` @@ -101,5 +101,3 @@ func NewDiagnosisAffectedResources() *DiagnosisAffectedResources { return r } - -// false diff --git a/typedapi/types/dictionarydecompoundertokenfilter.go b/typedapi/types/dictionarydecompoundertokenfilter.go index 8638576e32..7c90311b2e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,17 +31,32 @@ import ( // DictionaryDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L63-L65 type DictionaryDecompounderTokenFilter struct { - HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` - MaxSubwordSize *int `json:"max_subword_size,omitempty"` - MinSubwordSize *int `json:"min_subword_size,omitempty"` - MinWordSize *int `json:"min_word_size,omitempty"` - OnlyLongestMatch *bool `json:"only_longest_match,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` - WordList []string `json:"word_list,omitempty"` - WordListPath *string `json:"word_list_path,omitempty"` + // MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the + // output. Defaults to `15`. + MaxSubwordSize *int `json:"max_subword_size,omitempty"` + // MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from + // the output. Defaults to `2`. + MinSubwordSize *int `json:"min_subword_size,omitempty"` + // MinWordSize Minimum word character length. Shorter word tokens are excluded from the + // output. Defaults to `5`. + MinWordSize *int `json:"min_word_size,omitempty"` + // OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`. + OnlyLongestMatch *bool `json:"only_longest_match,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` + // WordList A list of subwords to look for in the token stream. If found, the subword is + // included in the token output. + // Either this parameter or `word_list_path` must be specified. + WordList []string `json:"word_list,omitempty"` + // WordListPath Path to a file that contains a list of subwords to find in the token stream. + // If found, the subword is included in the token output. + // This path must be absolute or relative to the config location, and the file + // must be UTF-8 encoded. Each token in the file must be separated by a line + // break. + // Either this parameter or `word_list` must be specified. + WordListPath *string `json:"word_list_path,omitempty"` } func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error { @@ -59,18 +74,6 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error { switch t { - case "hyphenation_patterns_path": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "HyphenationPatternsPath", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.HyphenationPatternsPath = &o - case "max_subword_size": var tmp any @@ -169,15 +172,14 @@ func (s *DictionaryDecompounderTokenFilter) UnmarshalJSON(data []byte) error { func (s DictionaryDecompounderTokenFilter) MarshalJSON() ([]byte, error) { type innerDictionaryDecompounderTokenFilter DictionaryDecompounderTokenFilter tmp := innerDictionaryDecompounderTokenFilter{ - HyphenationPatternsPath: s.HyphenationPatternsPath, - MaxSubwordSize: s.MaxSubwordSize, - MinSubwordSize: s.MinSubwordSize, - MinWordSize: s.MinWordSize, - OnlyLongestMatch: s.OnlyLongestMatch, - Type: s.Type, - Version: s.Version, - WordList: s.WordList, - WordListPath: s.WordListPath, + MaxSubwordSize: s.MaxSubwordSize, + MinSubwordSize: s.MinSubwordSize, + MinWordSize: s.MinWordSize, + OnlyLongestMatch: s.OnlyLongestMatch, + Type: s.Type, + Version: s.Version, + WordList: s.WordList, + WordListPath: s.WordListPath, } tmp.Type = "dictionary_decompounder" @@ -192,8 +194,6 @@ func NewDictionaryDecompounderTokenFilter() *DictionaryDecompounderTokenFilter { return r } -// true - type DictionaryDecompounderTokenFilterVariant interface { DictionaryDecompounderTokenFilterCaster() *DictionaryDecompounderTokenFilter } @@ -201,3 +201,8 @@ type DictionaryDecompounderTokenFilterVariant interface { func (s *DictionaryDecompounderTokenFilter) DictionaryDecompounderTokenFilterCaster() *DictionaryDecompounderTokenFilter { return s } + +func (s *DictionaryDecompounderTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/directgenerator.go b/typedapi/types/directgenerator.go index 00c773c017..667d45ae79 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DirectGenerator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L269-L332 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L269-L332 type DirectGenerator struct { // Field The field to fetch the candidate suggestions from. // Needs to be set globally or per suggestion. @@ -253,8 +253,6 @@ func NewDirectGenerator() *DirectGenerator { return r } -// true - type DirectGeneratorVariant interface { DirectGeneratorCaster() *DirectGenerator } diff --git a/typedapi/types/discovery.go b/typedapi/types/discovery.go index 6975f5143c..e60c17d333 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Discovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L201-L219 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L203-L221 type Discovery struct { ClusterApplierStats *ClusterAppliedStats `json:"cluster_applier_stats,omitempty"` // ClusterStateQueue Contains statistics for the cluster state queue of the node. @@ -48,5 +48,3 @@ func NewDiscovery() *Discovery { return r } - -// false diff --git a/typedapi/types/discoverynode.go b/typedapi/types/discoverynode.go index 65868e40cb..20346df119 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DiscoveryNode type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DiscoveryNode.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2d6580e7a5..e0a817bada 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DiscoveryNodeCompact type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DiscoveryNode.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DiscoveryNode.ts#L39-L48 type DiscoveryNodeCompact struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` @@ -95,5 +95,3 @@ func NewDiscoveryNodeCompact() *DiscoveryNodeCompact { return r } - -// false diff --git a/typedapi/types/discoverynodecontent.go b/typedapi/types/discoverynodecontent.go index 47d269205b..9de780cf4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DiscoveryNodeContent type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DiscoveryNode.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DiscoveryNode.ts#L27-L37 type DiscoveryNodeContent struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` @@ -149,5 +149,3 @@ func NewDiscoveryNodeContent() *DiscoveryNodeContent { return r } - -// false diff --git a/typedapi/types/diskindicator.go b/typedapi/types/diskindicator.go index a04d7c60e1..ae1dd9e269 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DiskIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L124-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L125-L129 type DiskIndicator struct { Details *DiskIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewDiskIndicator() *DiskIndicator { return r } - -// false diff --git a/typedapi/types/diskindicatordetails.go b/typedapi/types/diskindicatordetails.go index 07b41fa63b..f0acf24565 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DiskIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L129-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L130-L136 type DiskIndicatorDetails struct { IndicesWithReadonlyBlock int64 `json:"indices_with_readonly_block"` NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"` @@ -141,5 +141,3 @@ func NewDiskIndicatorDetails() *DiskIndicatorDetails { return r } - -// false diff --git a/typedapi/types/diskusage.go b/typedapi/types/diskusage.go index ae8cdd52c8..fa4d765e9d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L63-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L63-L70 type DiskUsage struct { FreeBytes int64 `json:"free_bytes"` FreeDiskPercent Float64 `json:"free_disk_percent"` @@ -156,5 +156,3 @@ func NewDiskUsage() *DiskUsage { return r } - -// false diff --git a/typedapi/types/dismaxquery.go b/typedapi/types/dismaxquery.go index 55daa241e3..81a55bf071 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DisMaxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L88-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -126,8 +126,6 @@ func NewDisMaxQuery() *DisMaxQuery { return r } -// true - type DisMaxQueryVariant interface { DisMaxQueryCaster() *DisMaxQuery } diff --git a/typedapi/types/dissectprocessor.go b/typedapi/types/dissectprocessor.go index e2c4cd9743..fe43c7b996 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DissectProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L805-L824 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L805-L824 type DissectProcessor struct { // AppendSeparator The character(s) that separate the appended fields. AppendSeparator *string `json:"append_separator,omitempty"` @@ -174,8 +174,6 @@ func NewDissectProcessor() *DissectProcessor { return r } -// true - type DissectProcessorVariant interface { DissectProcessorCaster() *DissectProcessor } diff --git a/typedapi/types/distancefeaturequery.go b/typedapi/types/distancefeaturequery.go index ea0209cec5..e446614e36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ package types // GeoDistanceFeatureQuery // DateDistanceFeatureQuery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L76-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 05671973d4..990ad68ac8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DiversifiedSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L333-L357 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -121,8 +121,6 @@ func NewDiversifiedSamplerAggregation() *DiversifiedSamplerAggregation { return r } -// true - type DiversifiedSamplerAggregationVariant interface { DiversifiedSamplerAggregationCaster() *DiversifiedSamplerAggregation } diff --git a/typedapi/types/docstats.go b/typedapi/types/docstats.go index ac6a8301ab..3bf788f802 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DocStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L100-L112 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L100-L121 type DocStats struct { // Count Total number of non-deleted documents across all primary shards assigned to // selected nodes. @@ -44,6 +44,12 @@ type DocStats struct { // Elasticsearch reclaims the disk space of deleted Lucene documents when a // segment is merged. Deleted *int64 `json:"deleted,omitempty"` + // TotalSize Human readable total_size_in_bytes + TotalSize ByteSize `json:"total_size,omitempty"` + // TotalSizeInBytes Returns the total size in bytes of all documents in this stats. + // This value may be more reliable than store_stats.size_in_bytes in estimating + // the index size. + TotalSizeInBytes int64 `json:"total_size_in_bytes"` } func (s *DocStats) UnmarshalJSON(data []byte) error { @@ -91,6 +97,26 @@ func (s *DocStats) UnmarshalJSON(data []byte) error { s.Deleted = &f } + case "total_size": + if err := dec.Decode(&s.TotalSize); err != nil { + return fmt.Errorf("%s | %w", "TotalSize", err) + } + + case "total_size_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "TotalSizeInBytes", err) + } + s.TotalSizeInBytes = value + case float64: + f := int64(v) + s.TotalSizeInBytes = f + } + } } return nil @@ -102,5 +128,3 @@ func NewDocStats() *DocStats { return r } - -// false diff --git a/typedapi/types/document.go b/typedapi/types/document.go index 963a1b3b01..cc884f7664 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Document type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L62-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L69-L83 type Document struct { // Id_ Unique identifier for the document. // This ID must be unique within the `_index`. @@ -83,8 +83,6 @@ func NewDocument() *Document { return r } -// true - type DocumentVariant interface { DocumentCaster() *Document } diff --git a/typedapi/types/documentrating.go b/typedapi/types/documentrating.go index e1d5aacbb4..e8bab4cc2b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DocumentRating type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L119-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L119-L126 type DocumentRating struct { // Id_ The document ID. Id_ string `json:"_id"` @@ -95,8 +95,6 @@ func NewDocumentRating() *DocumentRating { return r } -// true - type DocumentRatingVariant interface { DocumentRatingCaster() *DocumentRating } diff --git a/typedapi/types/documentsimulation.go b/typedapi/types/documentsimulation.go index ca9844a8f9..648d0ea9d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // DocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L78-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L85-L115 type DocumentSimulation struct { DocumentSimulation map[string]string `json:"-"` // Id_ Unique identifier for the document. This ID must be unique within the @@ -166,5 +166,3 @@ func NewDocumentSimulation() *DocumentSimulation { return r } - -// false diff --git a/typedapi/types/dotexpanderprocessor.go b/typedapi/types/dotexpanderprocessor.go index 1d591f351c..9985dc1439 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DotExpanderProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L826-L844 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L826-L844 type DotExpanderProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -167,8 +167,6 @@ func NewDotExpanderProcessor() *DotExpanderProcessor { return r } -// true - type DotExpanderProcessorVariant interface { DotExpanderProcessorCaster() *DotExpanderProcessor } diff --git a/typedapi/types/doublenumberproperty.go b/typedapi/types/doublenumberproperty.go index 269f381890..bf2490c1e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // DoubleNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L165-L168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L165-L168 type DoubleNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -690,6 +696,12 @@ func (s *DoubleNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -973,8 +985,6 @@ func NewDoubleNumberProperty() *DoubleNumberProperty { return r } -// true - type DoubleNumberPropertyVariant interface { DoubleNumberPropertyCaster() *DoubleNumberProperty } @@ -982,3 +992,8 @@ type DoubleNumberPropertyVariant interface { func (s *DoubleNumberProperty) DoubleNumberPropertyCaster() *DoubleNumberProperty { return s } + +func (s *DoubleNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/doublerangeproperty.go b/typedapi/types/doublerangeproperty.go index 0acf2017aa..f45e3de899 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // DoubleRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L34-L36 type DoubleRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -274,6 +274,12 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -643,6 +649,12 @@ func (s *DoubleRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -896,8 +908,6 @@ func NewDoubleRangeProperty() *DoubleRangeProperty { return r } -// true - type DoubleRangePropertyVariant interface { DoubleRangePropertyCaster() *DoubleRangeProperty } @@ -905,3 +915,8 @@ type DoubleRangePropertyVariant interface { func (s *DoubleRangeProperty) DoubleRangePropertyCaster() *DoubleRangeProperty { return s } + +func (s *DoubleRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/doubletermsaggregate.go b/typedapi/types/doubletermsaggregate.go index 4504b1fcf1..d947d7841f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DoubleTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L451-L456 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L451-L456 type DoubleTermsAggregate struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` @@ -121,5 +121,3 @@ func NewDoubleTermsAggregate() *DoubleTermsAggregate { return r } - -// false diff --git a/typedapi/types/doubletermsbucket.go b/typedapi/types/doubletermsbucket.go index 6fd1f9bc49..c2b32987c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // DoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L458-L461 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L458-L461 type DoubleTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -676,5 +676,3 @@ func NewDoubleTermsBucket() *DoubleTermsBucket { return r } - -// false diff --git a/typedapi/types/downsampleaction.go b/typedapi/types/downsampleaction.go index b7e54b1542..1890e437df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DownsampleAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L112-L115 type DownsampleAction struct { FixedInterval string `json:"fixed_interval"` WaitTimeout Duration `json:"wait_timeout,omitempty"` @@ -73,8 +73,6 @@ func NewDownsampleAction() *DownsampleAction { return r } -// true - type DownsampleActionVariant interface { DownsampleActionCaster() *DownsampleAction } diff --git a/typedapi/types/downsampleconfig.go b/typedapi/types/downsampleconfig.go index 2aae2fb5cc..8a9fc20c75 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DownsampleConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/Downsample.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -68,8 +68,6 @@ func NewDownsampleConfig() *DownsampleConfig { return r } -// true - type DownsampleConfigVariant interface { DownsampleConfigCaster() *DownsampleConfig } diff --git a/typedapi/types/downsamplinground.go b/typedapi/types/downsamplinground.go index 387350c403..23a875beb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // DownsamplingRound type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DownsamplingRound.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -75,8 +75,6 @@ func NewDownsamplingRound() *DownsamplingRound { return r } -// true - type DownsamplingRoundVariant interface { DownsamplingRoundCaster() *DownsamplingRound } diff --git a/typedapi/types/dropprocessor.go b/typedapi/types/dropprocessor.go index 712ff6df7a..3877d89dc4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // DropProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L846-L846 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L846-L846 type DropProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -122,8 +122,6 @@ func NewDropProcessor() *DropProcessor { return r } -// true - type DropProcessorVariant interface { DropProcessorCaster() *DropProcessor } diff --git a/typedapi/types/duration.go b/typedapi/types/duration.go index 8b0f452c94..d725e7ff08 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -24,7 +24,7 @@ package types // // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2768e0782b..f6d590e25e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DurationValueUnitFloatMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Time.ts#L67-L67 type DurationValueUnitFloatMillis Float64 diff --git a/typedapi/types/durationvalueunitmillis.go b/typedapi/types/durationvalueunitmillis.go index afc9fda78e..d5eefd07c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DurationValueUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e7ac25c533..c1fae24ed5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DurationValueUnitNanos type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Time.ts#L67-L67 type DurationValueUnitNanos int64 diff --git a/typedapi/types/durationvalueunitseconds.go b/typedapi/types/durationvalueunitseconds.go index 2a7d104ec7..b8f10ae040 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // DurationValueUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Time.ts#L67-L67 type DurationValueUnitSeconds int64 diff --git a/typedapi/types/dutchanalyzer.go b/typedapi/types/dutchanalyzer.go index 461500703d..0a62b0244b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // DutchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L145-L150 type DutchAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *DutchAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewDutchAnalyzer() *DutchAnalyzer { return r } -// true - type DutchAnalyzerVariant interface { DutchAnalyzerCaster() *DutchAnalyzer } @@ -128,3 +115,8 @@ type DutchAnalyzerVariant interface { func (s *DutchAnalyzer) DutchAnalyzerCaster() *DutchAnalyzer { return s } + +func (s *DutchAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/dutchstemtokenfilter.go b/typedapi/types/dutchstemtokenfilter.go new file mode 100644 index 0000000000..228aa3e9d9 --- /dev/null +++ b/typedapi/types/dutchstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// DutchStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L559-L561 +type DutchStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *DutchStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s DutchStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerDutchStemTokenFilter DutchStemTokenFilter + tmp := innerDutchStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "dutch_stem" + + return json.Marshal(tmp) +} + +// NewDutchStemTokenFilter returns a DutchStemTokenFilter. +func NewDutchStemTokenFilter() *DutchStemTokenFilter { + r := &DutchStemTokenFilter{} + + return r +} + +type DutchStemTokenFilterVariant interface { + DutchStemTokenFilterCaster() *DutchStemTokenFilter +} + +func (s *DutchStemTokenFilter) DutchStemTokenFilterCaster() *DutchStemTokenFilter { + return s +} + +func (s *DutchStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/dynamicproperty.go b/typedapi/types/dynamicproperty.go index fc618ef3b4..c95ba921f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -38,7 +38,7 @@ import ( // DynamicProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L327-L358 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L337-L368 type DynamicProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -337,6 +337,12 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -824,6 +830,12 @@ func (s *DynamicProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -1135,8 +1147,6 @@ func NewDynamicProperty() *DynamicProperty { return r } -// true - type DynamicPropertyVariant interface { DynamicPropertyCaster() *DynamicProperty } @@ -1144,3 +1154,8 @@ type DynamicPropertyVariant interface { func (s *DynamicProperty) DynamicPropertyCaster() *DynamicProperty { return s } + +func (s *DynamicProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/dynamictemplate.go b/typedapi/types/dynamictemplate.go index 4ecf323f11..560998e6ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // DynamicTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/dynamic-template.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/dynamic-template.ts#L23-L43 type DynamicTemplate struct { AdditionalDynamicTemplateProperty map[string]json.RawMessage `json:"-"` Mapping Property `json:"mapping,omitempty"` @@ -201,6 +201,12 @@ func (s *DynamicTemplate) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "passthrough", err) } s.Mapping = *o + case "rank_vectors": + o := NewRankVectorProperty() + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "rank_vectors", err) + } + s.Mapping = *o case "semantic_text": o := NewSemanticTextProperty() if err := localDec.Decode(&o); err != nil { @@ -549,8 +555,6 @@ func NewDynamicTemplate() *DynamicTemplate { return r } -// true - type DynamicTemplateVariant interface { DynamicTemplateCaster() *DynamicTemplate } diff --git a/typedapi/types/edgengramtokenfilter.go b/typedapi/types/edgengramtokenfilter.go index 703e444b2d..6397430711 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,14 +33,20 @@ import ( // EdgeNGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L97-L107 type EdgeNGramTokenFilter struct { - MaxGram *int `json:"max_gram,omitempty"` - MinGram *int `json:"min_gram,omitempty"` - PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` - Side *edgengramside.EdgeNGramSide `json:"side,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // MaxGram Maximum character length of a gram. For custom token filters, defaults to + // `2`. For the built-in edge_ngram filter, defaults to `1`. + MaxGram *int `json:"max_gram,omitempty"` + // MinGram Minimum character length of a gram. Defaults to `1`. + MinGram *int `json:"min_gram,omitempty"` + // PreserveOriginal Emits original token when set to `true`. Defaults to `false`. + PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` + // Side Indicates whether to truncate tokens from the `front` or `back`. Defaults to + // `front`. + Side *edgengramside.EdgeNGramSide `json:"side,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *EdgeNGramTokenFilter) UnmarshalJSON(data []byte) error { @@ -139,8 +145,6 @@ func NewEdgeNGramTokenFilter() *EdgeNGramTokenFilter { return r } -// true - type EdgeNGramTokenFilterVariant interface { EdgeNGramTokenFilterCaster() *EdgeNGramTokenFilter } @@ -148,3 +152,8 @@ type EdgeNGramTokenFilterVariant interface { func (s *EdgeNGramTokenFilter) EdgeNGramTokenFilterCaster() *EdgeNGramTokenFilter { return s } + +func (s *EdgeNGramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/edgengramtokenizer.go b/typedapi/types/edgengramtokenizer.go index 78af15d4db..498d34594a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // EdgeNGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L48-L58 type EdgeNGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` @@ -146,8 +146,6 @@ func NewEdgeNGramTokenizer() *EdgeNGramTokenizer { return r } -// true - type EdgeNGramTokenizerVariant interface { EdgeNGramTokenizerCaster() *EdgeNGramTokenizer } @@ -155,3 +153,8 @@ type EdgeNGramTokenizerVariant interface { func (s *EdgeNGramTokenizer) EdgeNGramTokenizerCaster() *EdgeNGramTokenizer { return s } + +func (s *EdgeNGramTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/elasticsearcherror.go b/typedapi/types/elasticsearcherror.go index eb756a5c12..7c6d5a5542 100755 --- a/typedapi/types/elasticsearcherror.go +++ b/typedapi/types/elasticsearcherror.go @@ -18,7 +18,11 @@ package types import ( + "bytes" + "encoding/json" + "errors" "fmt" + "io" "strings" ) @@ -59,3 +63,55 @@ func NewElasticsearchError() *ElasticsearchError { return r } + +func (e *ElasticsearchError) UnmarshalJSON(data []byte) error { + dec := json.NewDecoder(bytes.NewReader(data)) + + // Expect start object + t, err := dec.Token() + if err != nil { + return err + } + if delim, ok := t.(json.Delim); !ok || delim != '{' { + return fmt.Errorf("expected start object") + } + + for dec.More() { + t, err := dec.Token() + if err != nil { + return err + } + key, ok := t.(string) + if !ok { + return fmt.Errorf("expected string key") + } + + switch key { + case "error": + if err := dec.Decode(&e.ErrorCause); err != nil { + return fmt.Errorf("error decoding error: %w", err) + } + case "status": + if err := dec.Decode(&e.Status); err != nil { + return fmt.Errorf("error decoding status: %w", err) + } + default: + // Unknown field: store in ErrorCause.Metadata + if e.ErrorCause.Metadata == nil { + e.ErrorCause.Metadata = make(map[string]json.RawMessage) + } + var raw json.RawMessage + if err := dec.Decode(&raw); err != nil { + return fmt.Errorf("error decoding unknown field %s: %w", key, err) + } + e.ErrorCause.Metadata[key] = raw + } + } + + // Expect end object + _, err = dec.Token() + if err != nil && !errors.Is(err, io.EOF) { + return err + } + return nil +} diff --git a/typedapi/types/elasticsearcherror_test.go b/typedapi/types/elasticsearcherror_test.go new file mode 100755 index 0000000000..0ae7fd4bda --- /dev/null +++ b/typedapi/types/elasticsearcherror_test.go @@ -0,0 +1,124 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package types + +import ( + "reflect" + "testing" +) + +func TestElasticsearchError_UnmarshalJSON(t *testing.T) { + tests := []struct { + name string + data string + wantStatus int + wantType string + wantReason *string + wantMetadata map[string]string + wantErr bool + }{ + { + name: "valid error and status", + data: `{"error": {"type": "some_type", "reason": "some_reason"}, "status": 404}`, + wantStatus: 404, + wantType: "some_type", + wantReason: &[]string{"some_reason"}[0], + wantMetadata: map[string]string{}, + wantErr: false, + }, + { + name: "no shard failure", + data: `{ + "error": { + "type": "exception", + "reason": "foo", + "caused_by": { + "type": "illegal_state_exception", + "reason": "bar" + } + } + }`, + wantStatus: 0, + wantType: "exception", + wantReason: &[]string{"foo"}[0], + wantMetadata: map[string]string{}, + wantErr: false, + }, + { + name: "unknown field stored in metadata", + data: `{"error": {"type": "some_type"}, "status": 404, "foo": "bar"}`, + wantStatus: 404, + wantType: "some_type", + wantReason: nil, + wantMetadata: map[string]string{ + "foo": `"bar"`, + }, + wantErr: false, + }, + { + name: "invalid json", + data: `{"error": {"type": "some_type", "reason": "some_reason", "status": 404`, + wantErr: true, + }, + { + name: "empty object", + data: `{}`, + wantStatus: 0, + wantType: "", + wantReason: nil, + wantMetadata: map[string]string{}, + wantErr: false, + }, + { + name: "non-object json", + data: `[]`, + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var e ElasticsearchError + err := e.UnmarshalJSON([]byte(tt.data)) + if (err != nil) != tt.wantErr { + t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) + return + } + if tt.wantErr { + return + } + if e.Status != tt.wantStatus { + t.Errorf("Status = %v, want %v", e.Status, tt.wantStatus) + } + if e.ErrorCause.Type != tt.wantType { + t.Errorf("Type = %v, want %v", e.ErrorCause.Type, tt.wantType) + } + if (e.ErrorCause.Reason == nil) != (tt.wantReason == nil) || + (e.ErrorCause.Reason != nil && tt.wantReason != nil && *e.ErrorCause.Reason != *tt.wantReason) { + t.Errorf("Reason = %v, want %v", e.ErrorCause.Reason, tt.wantReason) + } + gotMetadata := map[string]string{} + for k, v := range e.ErrorCause.Metadata { + gotMetadata[k] = string(v) + } + if !reflect.DeepEqual(gotMetadata, tt.wantMetadata) { + t.Errorf("Metadata = %v, want %v", gotMetadata, tt.wantMetadata) + } + }) + } +} diff --git a/typedapi/types/elasticsearchservicesettings.go b/typedapi/types/elasticsearchservicesettings.go index 232cb10c9c..92ff851a2e 100644 --- a/typedapi/types/elasticsearchservicesettings.go +++ b/typedapi/types/elasticsearchservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L704-L738 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L777-L811 type ElasticsearchServiceSettings struct { // AdaptiveAllocations Adaptive allocations configuration details. // If `enabled` is true, the number of allocations of the model is set based on @@ -153,8 +153,6 @@ func NewElasticsearchServiceSettings() *ElasticsearchServiceSettings { return r } -// true - type ElasticsearchServiceSettingsVariant interface { ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings } diff --git a/typedapi/types/elasticsearchtasksettings.go b/typedapi/types/elasticsearchtasksettings.go index 6e466a47a1..1eceb290fb 100644 --- a/typedapi/types/elasticsearchtasksettings.go +++ b/typedapi/types/elasticsearchtasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchTaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L740-L746 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L813-L819 type ElasticsearchTaskSettings struct { // ReturnDocuments For a `rerank` task, return the document instead of only the index. ReturnDocuments *bool `json:"return_documents,omitempty"` @@ -78,8 +78,6 @@ func NewElasticsearchTaskSettings() *ElasticsearchTaskSettings { return r } -// true - type ElasticsearchTaskSettingsVariant interface { ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings } diff --git a/typedapi/types/elasticsearchversioninfo.go b/typedapi/types/elasticsearchversioninfo.go index e056671125..b8cb96eec4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Base.ts#L76-L115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Base.ts#L76-L118 type ElasticsearchVersionInfo struct { // BuildDate The Elasticsearch Git commit's date. BuildDate DateTime `json:"build_date"` @@ -45,6 +45,13 @@ type ElasticsearchVersionInfo struct { // For example, `docker`, `rpm`, or `tar`. BuildType string `json:"build_type"` // Int The Elasticsearch version number. + // + // ::: IMPORTANT: For Serverless deployments, this static value is always + // `8.11.0` and is used solely for backward compatibility with legacy clients. + // + // Serverless environments are versionless and automatically upgraded, so this + // + // value can be safely ignored. Int string `json:"number"` // LuceneVersion The version number of Elasticsearch's underlying Lucene software. LuceneVersion string `json:"lucene_version"` @@ -163,5 +170,3 @@ func NewElasticsearchVersionInfo() *ElasticsearchVersionInfo { return r } - -// false diff --git a/typedapi/types/elasticsearchversionmininfo.go b/typedapi/types/elasticsearchversionmininfo.go index 1337bcacc4..39e9cc2045 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionMinInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Base.ts#L117-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Base.ts#L120-L128 type ElasticsearchVersionMinInfo struct { BuildFlavor string `json:"build_flavor"` Int string `json:"number"` @@ -99,5 +99,3 @@ func NewElasticsearchVersionMinInfo() *ElasticsearchVersionMinInfo { return r } - -// false diff --git a/typedapi/types/elisiontokenfilter.go b/typedapi/types/elisiontokenfilter.go index 7c9d67744a..ec3bda29e0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,30 @@ import ( // ElisionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L188-L193 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L245-L258 type ElisionTokenFilter struct { - Articles []string `json:"articles,omitempty"` + // Articles List of elisions to remove. + // To be removed, the elision must be at the beginning of a token and be + // immediately followed by an apostrophe. Both the elision and apostrophe are + // removed. + // For custom `elision` filters, either this parameter or `articles_path` must + // be specified. + Articles []string `json:"articles,omitempty"` + // ArticlesCase If `true`, elision matching is case insensitive. If `false`, elision matching + // is case sensitive. Defaults to `false`. ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"` - ArticlesPath *string `json:"articles_path,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // ArticlesPath Path to a file that contains a list of elisions to remove. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each elision in the file must be separated by a line + // break. + // To be removed, the elision must be at the beginning of a token and be + // immediately followed by an apostrophe. Both the elision and apostrophe are + // removed. + // For custom `elision` filters, either this parameter or `articles` must be + // specified. + ArticlesPath *string `json:"articles_path,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *ElisionTokenFilter) UnmarshalJSON(data []byte) error { @@ -115,8 +132,6 @@ func NewElisionTokenFilter() *ElisionTokenFilter { return r } -// true - type ElisionTokenFilterVariant interface { ElisionTokenFilterCaster() *ElisionTokenFilter } @@ -124,3 +139,8 @@ type ElisionTokenFilterVariant interface { func (s *ElisionTokenFilter) ElisionTokenFilterCaster() *ElisionTokenFilter { return s } + +func (s *ElisionTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/elserservicesettings.go b/typedapi/types/elserservicesettings.go index af0418bf96..b919276d88 100644 --- a/typedapi/types/elserservicesettings.go +++ b/typedapi/types/elserservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ElserServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L758-L784 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L831-L857 type ElserServiceSettings struct { // AdaptiveAllocations Adaptive allocations configuration details. // If `enabled` is true, the number of allocations of the model is set based on @@ -126,8 +126,6 @@ func NewElserServiceSettings() *ElserServiceSettings { return r } -// true - type ElserServiceSettingsVariant interface { ElserServiceSettingsCaster() *ElserServiceSettings } diff --git a/typedapi/types/email.go b/typedapi/types/email.go index eb5783a8a8..4fa3d5607e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Email type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L238-L250 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L238-L250 type Email struct { Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"` Bcc []string `json:"bcc,omitempty"` @@ -192,5 +192,3 @@ func NewEmail() *Email { return r } - -// false diff --git a/typedapi/types/emailaction.go b/typedapi/types/emailaction.go index dbb5a3f9d6..eee53e3cc1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // EmailAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L252-L252 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L252-L252 type EmailAction struct { Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"` Bcc []string `json:"bcc,omitempty"` @@ -193,8 +193,6 @@ func NewEmailAction() *EmailAction { return r } -// true - type EmailActionVariant interface { EmailActionCaster() *EmailAction } diff --git a/typedapi/types/emailattachmentcontainer.go b/typedapi/types/emailattachmentcontainer.go index 203624bb76..9be809a16d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // EmailAttachmentContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L211-L216 type EmailAttachmentContainer struct { AdditionalEmailAttachmentContainerProperty map[string]json.RawMessage `json:"-"` Data *DataEmailAttachment `json:"data,omitempty"` @@ -73,8 +73,6 @@ func NewEmailAttachmentContainer() *EmailAttachmentContainer { return r } -// true - type EmailAttachmentContainerVariant interface { EmailAttachmentContainerCaster() *EmailAttachmentContainer } diff --git a/typedapi/types/emailbody.go b/typedapi/types/emailbody.go index dcb35df47b..42072fc914 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EmailBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L192-L195 type EmailBody struct { Html *string `json:"html,omitempty"` Text *string `json:"text,omitempty"` @@ -88,8 +88,6 @@ func NewEmailBody() *EmailBody { return r } -// true - type EmailBodyVariant interface { EmailBodyCaster() *EmailBody } diff --git a/typedapi/types/emailresult.go b/typedapi/types/emailresult.go index c357e1131e..bb8efad2ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EmailResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L205-L209 type EmailResult struct { Account *string `json:"account,omitempty"` Message Email `json:"message"` @@ -93,5 +93,3 @@ func NewEmailResult() *EmailResult { return r } - -// false diff --git a/typedapi/types/emptyobject.go b/typedapi/types/emptyobject.go index ace994f76a..acc26bf6e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EmptyObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L157-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L157-L158 type EmptyObject struct { } @@ -33,8 +33,6 @@ func NewEmptyObject() *EmptyObject { return r } -// true - type EmptyObjectVariant interface { EmptyObjectCaster() *EmptyObject } diff --git a/typedapi/types/englishanalyzer.go b/typedapi/types/englishanalyzer.go index 10a4f8b0af..9dce31d7c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // EnglishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L152-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L152-L157 type EnglishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *EnglishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *EnglishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewEnglishAnalyzer() *EnglishAnalyzer { return r } -// true - type EnglishAnalyzerVariant interface { EnglishAnalyzerCaster() *EnglishAnalyzer } @@ -128,3 +115,8 @@ type EnglishAnalyzerVariant interface { func (s *EnglishAnalyzer) EnglishAnalyzerCaster() *EnglishAnalyzer { return s } + +func (s *EnglishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/enrichpolicy.go b/typedapi/types/enrichpolicy.go index 247911864c..fa62edb463 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EnrichPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/_types/Policy.ts#L34-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/_types/Policy.ts#L34-L41 type EnrichPolicy struct { ElasticsearchVersion *string `json:"elasticsearch_version,omitempty"` EnrichFields []string `json:"enrich_fields"` @@ -127,8 +127,6 @@ func NewEnrichPolicy() *EnrichPolicy { return r } -// true - type EnrichPolicyVariant interface { EnrichPolicyCaster() *EnrichPolicy } diff --git a/typedapi/types/enrichprocessor.go b/typedapi/types/enrichprocessor.go index fc71a82be3..0e5715e2af 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // EnrichProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L848-L887 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L848-L887 type EnrichProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -222,8 +222,6 @@ func NewEnrichProcessor() *EnrichProcessor { return r } -// true - type EnrichProcessorVariant interface { EnrichProcessorCaster() *EnrichProcessor } diff --git a/typedapi/types/ensemble.go b/typedapi/types/ensemble.go index 36deb16b26..d5c92a22a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Ensemble type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L93-L99 type Ensemble struct { AggregateOutput *AggregateOutput `json:"aggregate_output,omitempty"` ClassificationLabels []string `json:"classification_labels,omitempty"` @@ -99,8 +99,6 @@ func NewEnsemble() *Ensemble { return r } -// true - type EnsembleVariant interface { EnsembleCaster() *Ensemble } diff --git a/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go b/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go index 7560c84dc7..2b16081a2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package accesstokengranttype package accesstokengranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/types.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 92e9c0f7fa..c9e6775b48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package acknowledgementoptions package acknowledgementoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L103-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b692af53a2..7587bc2bc6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package actionexecutionmode package actionexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L67-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d90cf482b4..b336388d3c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package actionstatusoptions package actionstatusoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L96-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bf5a8b8279..c306d7c736 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package actiontype package actiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 7f742fa90c..2a86a684e9 100644 --- a/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go +++ b/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package alibabacloudservicetype package alibabacloudservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L289-L291 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L362-L364 type AlibabaCloudServiceType struct { Name string } diff --git a/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go index 25fc912d95..dcc73e6312 100644 --- a/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go +++ b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package alibabacloudtasktype package alibabacloudtasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L282-L287 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L355-L360 type AlibabaCloudTaskType struct { Name string } diff --git a/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go b/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go index c0af389511..1bbf7b64ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package allocationexplaindecision package allocationexplaindecision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L33-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index e8d37805e0..4293bfe9cd 100644 --- a/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go +++ b/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package amazonbedrockservicetype package amazonbedrockservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L368-L370 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L441-L443 type AmazonBedrockServiceType struct { Name string } diff --git a/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go index 9fbba45ece..553e86fbb7 100644 --- a/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go +++ b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package amazonbedrocktasktype package amazonbedrocktasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L363-L366 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L436-L439 type AmazonBedrockTaskType struct { Name string } diff --git a/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go index 2442d16746..21ce6aff68 100644 --- a/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go +++ b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package anthropicservicetype package anthropicservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L421-L423 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L494-L496 type AnthropicServiceType struct { Name string } diff --git a/typedapi/types/enums/anthropictasktype/anthropictasktype.go b/typedapi/types/enums/anthropictasktype/anthropictasktype.go index 83d76889ac..401110a646 100644 --- a/typedapi/types/enums/anthropictasktype/anthropictasktype.go +++ b/typedapi/types/enums/anthropictasktype/anthropictasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package anthropictasktype package anthropictasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L417-L419 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L490-L492 type AnthropicTaskType struct { Name string } diff --git a/typedapi/types/enums/apikeygranttype/apikeygranttype.go b/typedapi/types/enums/apikeygranttype/apikeygranttype.go index 8c0014c7e2..4a77ccd5ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package apikeygranttype package apikeygranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/grant_api_key/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c45c75f525..a8be02fccf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package apikeytype package apikeytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/ApiKey.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7537a0ea4b..3a20eeff09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package appliesto package appliesto import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Rule.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 2b54144d86..9ae0a9994b 100644 --- a/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go +++ b/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package azureaistudioservicetype package azureaistudioservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L504-L506 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L577-L579 type AzureAiStudioServiceType struct { Name string } diff --git a/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go index 4fd8ee5ab7..45c51676a2 100644 --- a/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go +++ b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package azureaistudiotasktype package azureaistudiotasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L499-L502 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L572-L575 type AzureAiStudioTaskType struct { Name string } diff --git a/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go index 21d1b83ec0..0f123daa31 100644 --- a/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go +++ b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package azureopenaiservicetype package azureopenaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L568-L570 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L641-L643 type AzureOpenAIServiceType struct { Name string } diff --git a/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go index 68136222d9..fdb231d5b0 100644 --- a/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go +++ b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package azureopenaitasktype package azureopenaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L563-L566 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L636-L639 type AzureOpenAITaskType struct { Name string } diff --git a/typedapi/types/enums/boundaryscanner/boundaryscanner.go b/typedapi/types/enums/boundaryscanner/boundaryscanner.go index 9be831c802..45db9beca0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package boundaryscanner package boundaryscanner import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f84f39d11d..79bef41d87 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package bytes package bytes import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L166-L178 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L166-L178 type Bytes struct { Name string } diff --git a/typedapi/types/enums/calendarinterval/calendarinterval.go b/typedapi/types/enums/calendarinterval/calendarinterval.go index 0548f17d88..5b3c616b65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package calendarinterval package calendarinterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L262-L279 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2b2688d10f..c82a725577 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cardinalityexecutionmode package cardinalityexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L64-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a2adb38520..57c5aa718f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package catanomalydetectorcolumn package catanomalydetectorcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L32-L401 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 428f3e72c6..56003f80fc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package catdatafeedcolumn package catdatafeedcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L405-L471 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d13b90f54c..e242e4208b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package catdfacolumn package catdfacolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L472-L557 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L473-L558 type CatDfaColumn struct { Name string } diff --git a/typedapi/types/enums/categorizationstatus/categorizationstatus.go b/typedapi/types/enums/categorizationstatus/categorizationstatus.go index f56ac3a9bb..f0fddd2513 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package categorizationstatus package categorizationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L84-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Model.ts#L84-L87 type CategorizationStatus struct { Name string } diff --git a/typedapi/types/enums/catnodecolumn/catnodecolumn.go b/typedapi/types/enums/catnodecolumn/catnodecolumn.go new file mode 100644 index 0000000000..d2d61bb191 --- /dev/null +++ b/typedapi/types/enums/catnodecolumn/catnodecolumn.go @@ -0,0 +1,405 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catnodecolumn +package catnodecolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L560-L1012 +type CatNodeColumn struct { + Name string +} + +var ( + Build = CatNodeColumn{"build"} + + Completionsize = CatNodeColumn{"completion.size"} + + Cpu = CatNodeColumn{"cpu"} + + Diskavail = CatNodeColumn{"disk.avail"} + + Disktotal = CatNodeColumn{"disk.total"} + + Diskused = CatNodeColumn{"disk.used"} + + Diskusedpercent = CatNodeColumn{"disk.used_percent"} + + Fielddataevictions = CatNodeColumn{"fielddata.evictions"} + + Fielddatamemorysize = CatNodeColumn{"fielddata.memory_size"} + + Filedesccurrent = CatNodeColumn{"file_desc.current"} + + Filedescmax = CatNodeColumn{"file_desc.max"} + + Filedescpercent = CatNodeColumn{"file_desc.percent"} + + Flushtotal = CatNodeColumn{"flush.total"} + + Flushtotaltime = CatNodeColumn{"flush.total_time"} + + Getcurrent = CatNodeColumn{"get.current"} + + Getexiststime = CatNodeColumn{"get.exists_time"} + + Getexiststotal = CatNodeColumn{"get.exists_total"} + + Getmissingtime = CatNodeColumn{"get.missing_time"} + + Getmissingtotal = CatNodeColumn{"get.missing_total"} + + Gettime = CatNodeColumn{"get.time"} + + Gettotal = CatNodeColumn{"get.total"} + + Heapcurrent = CatNodeColumn{"heap.current"} + + Heapmax = CatNodeColumn{"heap.max"} + + Heappercent = CatNodeColumn{"heap.percent"} + + Httpaddress = CatNodeColumn{"http_address"} + + Id = CatNodeColumn{"id"} + + Indexingdeletecurrent = CatNodeColumn{"indexing.delete_current"} + + Indexingdeletetime = CatNodeColumn{"indexing.delete_time"} + + Indexingdeletetotal = CatNodeColumn{"indexing.delete_total"} + + Indexingindexcurrent = CatNodeColumn{"indexing.index_current"} + + Indexingindexfailed = CatNodeColumn{"indexing.index_failed"} + + Indexingindexfailedduetoversionconflict = CatNodeColumn{"indexing.index_failed_due_to_version_conflict"} + + Indexingindextime = CatNodeColumn{"indexing.index_time"} + + Indexingindextotal = CatNodeColumn{"indexing.index_total"} + + Ip = CatNodeColumn{"ip"} + + Jdk = CatNodeColumn{"jdk"} + + Load1m = CatNodeColumn{"load_1m"} + + Load5m = CatNodeColumn{"load_5m"} + + Load15m = CatNodeColumn{"load_15m"} + + Mappingstotalcount = CatNodeColumn{"mappings.total_count"} + + Mappingstotalestimatedoverheadinbytes = CatNodeColumn{"mappings.total_estimated_overhead_in_bytes"} + + Master = CatNodeColumn{"master"} + + Mergescurrent = CatNodeColumn{"merges.current"} + + Mergescurrentdocs = CatNodeColumn{"merges.current_docs"} + + Mergescurrentsize = CatNodeColumn{"merges.current_size"} + + Mergestotal = CatNodeColumn{"merges.total"} + + Mergestotaldocs = CatNodeColumn{"merges.total_docs"} + + Mergestotalsize = CatNodeColumn{"merges.total_size"} + + Mergestotaltime = CatNodeColumn{"merges.total_time"} + + Name = CatNodeColumn{"name"} + + Noderole = CatNodeColumn{"node.role"} + + Pid = CatNodeColumn{"pid"} + + Port = CatNodeColumn{"port"} + + Querycachememorysize = CatNodeColumn{"query_cache.memory_size"} + + Querycacheevictions = CatNodeColumn{"query_cache.evictions"} + + Querycachehitcount = CatNodeColumn{"query_cache.hit_count"} + + Querycachemisscount = CatNodeColumn{"query_cache.miss_count"} + + Ramcurrent = CatNodeColumn{"ram.current"} + + Rammax = CatNodeColumn{"ram.max"} + + Rampercent = CatNodeColumn{"ram.percent"} + + Refreshtotal = CatNodeColumn{"refresh.total"} + + Refreshtime = CatNodeColumn{"refresh.time"} + + Requestcachememorysize = CatNodeColumn{"request_cache.memory_size"} + + Requestcacheevictions = CatNodeColumn{"request_cache.evictions"} + + Requestcachehitcount = CatNodeColumn{"request_cache.hit_count"} + + Requestcachemisscount = CatNodeColumn{"request_cache.miss_count"} + + Scriptcompilations = CatNodeColumn{"script.compilations"} + + Scriptcacheevictions = CatNodeColumn{"script.cache_evictions"} + + Searchfetchcurrent = CatNodeColumn{"search.fetch_current"} + + Searchfetchtime = CatNodeColumn{"search.fetch_time"} + + Searchfetchtotal = CatNodeColumn{"search.fetch_total"} + + Searchopencontexts = CatNodeColumn{"search.open_contexts"} + + Searchquerycurrent = CatNodeColumn{"search.query_current"} + + Searchquerytime = CatNodeColumn{"search.query_time"} + + Searchquerytotal = CatNodeColumn{"search.query_total"} + + Searchscrollcurrent = CatNodeColumn{"search.scroll_current"} + + Searchscrolltime = CatNodeColumn{"search.scroll_time"} + + Searchscrolltotal = CatNodeColumn{"search.scroll_total"} + + Segmentscount = CatNodeColumn{"segments.count"} + + Segmentsfixedbitsetmemory = CatNodeColumn{"segments.fixed_bitset_memory"} + + Segmentsindexwritermemory = CatNodeColumn{"segments.index_writer_memory"} + + Segmentsmemory = CatNodeColumn{"segments.memory"} + + Segmentsversionmapmemory = CatNodeColumn{"segments.version_map_memory"} + + Shardstatstotalcount = CatNodeColumn{"shard_stats.total_count"} + + Suggestcurrent = CatNodeColumn{"suggest.current"} + + Suggesttime = CatNodeColumn{"suggest.time"} + + Suggesttotal = CatNodeColumn{"suggest.total"} + + Uptime = CatNodeColumn{"uptime"} + + Version = CatNodeColumn{"version"} +) + +func (c CatNodeColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatNodeColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "build": + *c = Build + case "completion.size": + *c = Completionsize + case "cpu": + *c = Cpu + case "disk.avail": + *c = Diskavail + case "disk.total": + *c = Disktotal + case "disk.used": + *c = Diskused + case "disk.used_percent": + *c = Diskusedpercent + case "fielddata.evictions": + *c = Fielddataevictions + case "fielddata.memory_size": + *c = Fielddatamemorysize + case "file_desc.current": + *c = Filedesccurrent + case "file_desc.max": + *c = Filedescmax + case "file_desc.percent": + *c = Filedescpercent + case "flush.total": + *c = Flushtotal + case "flush.total_time": + *c = Flushtotaltime + case "get.current": + *c = Getcurrent + case "get.exists_time": + *c = Getexiststime + case "get.exists_total": + *c = Getexiststotal + case "get.missing_time": + *c = Getmissingtime + case "get.missing_total": + *c = Getmissingtotal + case "get.time": + *c = Gettime + case "get.total": + *c = Gettotal + case "heap.current": + *c = Heapcurrent + case "heap.max": + *c = Heapmax + case "heap.percent": + *c = Heappercent + case "http_address": + *c = Httpaddress + case "id": + *c = Id + case "indexing.delete_current": + *c = Indexingdeletecurrent + case "indexing.delete_time": + *c = Indexingdeletetime + case "indexing.delete_total": + *c = Indexingdeletetotal + case "indexing.index_current": + *c = Indexingindexcurrent + case "indexing.index_failed": + *c = Indexingindexfailed + case "indexing.index_failed_due_to_version_conflict": + *c = Indexingindexfailedduetoversionconflict + case "indexing.index_time": + *c = Indexingindextime + case "indexing.index_total": + *c = Indexingindextotal + case "ip": + *c = Ip + case "jdk": + *c = Jdk + case "load_1m": + *c = Load1m + case "load_5m": + *c = Load5m + case "load_15m": + *c = Load15m + case "mappings.total_count": + *c = Mappingstotalcount + case "mappings.total_estimated_overhead_in_bytes": + *c = Mappingstotalestimatedoverheadinbytes + case "master": + *c = Master + case "merges.current": + *c = Mergescurrent + case "merges.current_docs": + *c = Mergescurrentdocs + case "merges.current_size": + *c = Mergescurrentsize + case "merges.total": + *c = Mergestotal + case "merges.total_docs": + *c = Mergestotaldocs + case "merges.total_size": + *c = Mergestotalsize + case "merges.total_time": + *c = Mergestotaltime + case "name": + *c = Name + case "node.role": + *c = Noderole + case "pid": + *c = Pid + case "port": + *c = Port + case "query_cache.memory_size": + *c = Querycachememorysize + case "query_cache.evictions": + *c = Querycacheevictions + case "query_cache.hit_count": + *c = Querycachehitcount + case "query_cache.miss_count": + *c = Querycachemisscount + case "ram.current": + *c = Ramcurrent + case "ram.max": + *c = Rammax + case "ram.percent": + *c = Rampercent + case "refresh.total": + *c = Refreshtotal + case "refresh.time": + *c = Refreshtime + case "request_cache.memory_size": + *c = Requestcachememorysize + case "request_cache.evictions": + *c = Requestcacheevictions + case "request_cache.hit_count": + *c = Requestcachehitcount + case "request_cache.miss_count": + *c = Requestcachemisscount + case "script.compilations": + *c = Scriptcompilations + case "script.cache_evictions": + *c = Scriptcacheevictions + case "search.fetch_current": + *c = Searchfetchcurrent + case "search.fetch_time": + *c = Searchfetchtime + case "search.fetch_total": + *c = Searchfetchtotal + case "search.open_contexts": + *c = Searchopencontexts + case "search.query_current": + *c = Searchquerycurrent + case "search.query_time": + *c = Searchquerytime + case "search.query_total": + *c = Searchquerytotal + case "search.scroll_current": + *c = Searchscrollcurrent + case "search.scroll_time": + *c = Searchscrolltime + case "search.scroll_total": + *c = Searchscrolltotal + case "segments.count": + *c = Segmentscount + case "segments.fixed_bitset_memory": + *c = Segmentsfixedbitsetmemory + case "segments.index_writer_memory": + *c = Segmentsindexwritermemory + case "segments.memory": + *c = Segmentsmemory + case "segments.version_map_memory": + *c = Segmentsversionmapmemory + case "shard_stats.total_count": + *c = Shardstatstotalcount + case "suggest.current": + *c = Suggestcurrent + case "suggest.time": + *c = Suggesttime + case "suggest.total": + *c = Suggesttotal + case "uptime": + *c = Uptime + case "version": + *c = Version + default: + *c = CatNodeColumn{string(text)} + } + + return nil +} + +func (c CatNodeColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/catrecoverycolumn/catrecoverycolumn.go b/typedapi/types/enums/catrecoverycolumn/catrecoverycolumn.go new file mode 100644 index 0000000000..2c131d5aa3 --- /dev/null +++ b/typedapi/types/enums/catrecoverycolumn/catrecoverycolumn.go @@ -0,0 +1,153 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catrecoverycolumn +package catrecoverycolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1014-L1145 +type CatRecoveryColumn struct { + Name string +} + +var ( + Index = CatRecoveryColumn{"index"} + + Shard = CatRecoveryColumn{"shard"} + + Time = CatRecoveryColumn{"time"} + + Type = CatRecoveryColumn{"type"} + + Stage = CatRecoveryColumn{"stage"} + + Sourcehost = CatRecoveryColumn{"source_host"} + + Sourcenode = CatRecoveryColumn{"source_node"} + + Targethost = CatRecoveryColumn{"target_host"} + + Targetnode = CatRecoveryColumn{"target_node"} + + Repository = CatRecoveryColumn{"repository"} + + Snapshot = CatRecoveryColumn{"snapshot"} + + Files = CatRecoveryColumn{"files"} + + Filesrecovered = CatRecoveryColumn{"files_recovered"} + + Filespercent = CatRecoveryColumn{"files_percent"} + + Filestotal = CatRecoveryColumn{"files_total"} + + Bytes = CatRecoveryColumn{"bytes"} + + Bytesrecovered = CatRecoveryColumn{"bytes_recovered"} + + Bytespercent = CatRecoveryColumn{"bytes_percent"} + + Bytestotal = CatRecoveryColumn{"bytes_total"} + + Translogops = CatRecoveryColumn{"translog_ops"} + + Translogopsrecovered = CatRecoveryColumn{"translog_ops_recovered"} + + Translogopspercent = CatRecoveryColumn{"translog_ops_percent"} + + Starttime = CatRecoveryColumn{"start_time"} + + Starttimemillis = CatRecoveryColumn{"start_time_millis"} + + Stoptime = CatRecoveryColumn{"stop_time"} + + Stoptimemillis = CatRecoveryColumn{"stop_time_millis"} +) + +func (c CatRecoveryColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatRecoveryColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "index": + *c = Index + case "shard": + *c = Shard + case "time": + *c = Time + case "type": + *c = Type + case "stage": + *c = Stage + case "source_host": + *c = Sourcehost + case "source_node": + *c = Sourcenode + case "target_host": + *c = Targethost + case "target_node": + *c = Targetnode + case "repository": + *c = Repository + case "snapshot": + *c = Snapshot + case "files": + *c = Files + case "files_recovered": + *c = Filesrecovered + case "files_percent": + *c = Filespercent + case "files_total": + *c = Filestotal + case "bytes": + *c = Bytes + case "bytes_recovered": + *c = Bytesrecovered + case "bytes_percent": + *c = Bytespercent + case "bytes_total": + *c = Bytestotal + case "translog_ops": + *c = Translogops + case "translog_ops_recovered": + *c = Translogopsrecovered + case "translog_ops_percent": + *c = Translogopspercent + case "start_time": + *c = Starttime + case "start_time_millis": + *c = Starttimemillis + case "stop_time": + *c = Stoptime + case "stop_time_millis": + *c = Stoptimemillis + default: + *c = CatRecoveryColumn{string(text)} + } + + return nil +} + +func (c CatRecoveryColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/catsegmentscolumn/catsegmentscolumn.go b/typedapi/types/enums/catsegmentscolumn/catsegmentscolumn.go new file mode 100644 index 0000000000..20c852cca0 --- /dev/null +++ b/typedapi/types/enums/catsegmentscolumn/catsegmentscolumn.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catsegmentscolumn +package catsegmentscolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1147-L1212 +type CatSegmentsColumn struct { + Name string +} + +var ( + Index = CatSegmentsColumn{"index"} + + Shard = CatSegmentsColumn{"shard"} + + Prirep = CatSegmentsColumn{"prirep"} + + Ip = CatSegmentsColumn{"ip"} + + Segment = CatSegmentsColumn{"segment"} + + Generation = CatSegmentsColumn{"generation"} + + Docscount = CatSegmentsColumn{"docs.count"} + + Docsdeleted = CatSegmentsColumn{"docs.deleted"} + + Size = CatSegmentsColumn{"size"} + + Sizememory = CatSegmentsColumn{"size.memory"} + + Committed = CatSegmentsColumn{"committed"} + + Searchable = CatSegmentsColumn{"searchable"} + + Version = CatSegmentsColumn{"version"} + + Compound = CatSegmentsColumn{"compound"} + + Id = CatSegmentsColumn{"id"} +) + +func (c CatSegmentsColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatSegmentsColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "index": + *c = Index + case "shard": + *c = Shard + case "prirep": + *c = Prirep + case "ip": + *c = Ip + case "segment": + *c = Segment + case "generation": + *c = Generation + case "docs.count": + *c = Docscount + case "docs.deleted": + *c = Docsdeleted + case "size": + *c = Size + case "size.memory": + *c = Sizememory + case "committed": + *c = Committed + case "searchable": + *c = Searchable + case "version": + *c = Version + case "compound": + *c = Compound + case "id": + *c = Id + default: + *c = CatSegmentsColumn{string(text)} + } + + return nil +} + +func (c CatSegmentsColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/catshardcolumn/catshardcolumn.go b/typedapi/types/enums/catshardcolumn/catshardcolumn.go new file mode 100644 index 0000000000..4b935d11ca --- /dev/null +++ b/typedapi/types/enums/catshardcolumn/catshardcolumn.go @@ -0,0 +1,329 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catshardcolumn +package catshardcolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1576-L1949 +type CatShardColumn struct { + Name string +} + +var ( + Completionsize = CatShardColumn{"completion.size"} + + Datasetsize = CatShardColumn{"dataset.size"} + + Densevectorvaluecount = CatShardColumn{"dense_vector.value_count"} + + Docs = CatShardColumn{"docs"} + + Fielddataevictions = CatShardColumn{"fielddata.evictions"} + + Fielddatamemorysize = CatShardColumn{"fielddata.memory_size"} + + Flushtotal = CatShardColumn{"flush.total"} + + Flushtotaltime = CatShardColumn{"flush.total_time"} + + Getcurrent = CatShardColumn{"get.current"} + + Getexiststime = CatShardColumn{"get.exists_time"} + + Getexiststotal = CatShardColumn{"get.exists_total"} + + Getmissingtime = CatShardColumn{"get.missing_time"} + + Getmissingtotal = CatShardColumn{"get.missing_total"} + + Gettime = CatShardColumn{"get.time"} + + Gettotal = CatShardColumn{"get.total"} + + Id = CatShardColumn{"id"} + + Index = CatShardColumn{"index"} + + Indexingdeletecurrent = CatShardColumn{"indexing.delete_current"} + + Indexingdeletetime = CatShardColumn{"indexing.delete_time"} + + Indexingdeletetotal = CatShardColumn{"indexing.delete_total"} + + Indexingindexcurrent = CatShardColumn{"indexing.index_current"} + + Indexingindexfailedduetoversionconflict = CatShardColumn{"indexing.index_failed_due_to_version_conflict"} + + Indexingindexfailed = CatShardColumn{"indexing.index_failed"} + + Indexingindextime = CatShardColumn{"indexing.index_time"} + + Indexingindextotal = CatShardColumn{"indexing.index_total"} + + Ip = CatShardColumn{"ip"} + + Mergescurrent = CatShardColumn{"merges.current"} + + Mergescurrentdocs = CatShardColumn{"merges.current_docs"} + + Mergescurrentsize = CatShardColumn{"merges.current_size"} + + Mergestotal = CatShardColumn{"merges.total"} + + Mergestotaldocs = CatShardColumn{"merges.total_docs"} + + Mergestotalsize = CatShardColumn{"merges.total_size"} + + Mergestotaltime = CatShardColumn{"merges.total_time"} + + Node = CatShardColumn{"node"} + + Prirep = CatShardColumn{"prirep"} + + Querycacheevictions = CatShardColumn{"query_cache.evictions"} + + Querycachememorysize = CatShardColumn{"query_cache.memory_size"} + + Recoverysourcetype = CatShardColumn{"recoverysource.type"} + + Refreshtime = CatShardColumn{"refresh.time"} + + Refreshtotal = CatShardColumn{"refresh.total"} + + Searchfetchcurrent = CatShardColumn{"search.fetch_current"} + + Searchfetchtime = CatShardColumn{"search.fetch_time"} + + Searchfetchtotal = CatShardColumn{"search.fetch_total"} + + Searchopencontexts = CatShardColumn{"search.open_contexts"} + + Searchquerycurrent = CatShardColumn{"search.query_current"} + + Searchquerytime = CatShardColumn{"search.query_time"} + + Searchquerytotal = CatShardColumn{"search.query_total"} + + Searchscrollcurrent = CatShardColumn{"search.scroll_current"} + + Searchscrolltime = CatShardColumn{"search.scroll_time"} + + Searchscrolltotal = CatShardColumn{"search.scroll_total"} + + Segmentscount = CatShardColumn{"segments.count"} + + Segmentsfixedbitsetmemory = CatShardColumn{"segments.fixed_bitset_memory"} + + Segmentsindexwritermemory = CatShardColumn{"segments.index_writer_memory"} + + Segmentsmemory = CatShardColumn{"segments.memory"} + + Segmentsversionmapmemory = CatShardColumn{"segments.version_map_memory"} + + Seqnoglobalcheckpoint = CatShardColumn{"seq_no.global_checkpoint"} + + Seqnolocalcheckpoint = CatShardColumn{"seq_no.local_checkpoint"} + + Seqnomax = CatShardColumn{"seq_no.max"} + + Shard = CatShardColumn{"shard"} + + Dsparsevectorvaluecount = CatShardColumn{"dsparse_vector.value_count"} + + State = CatShardColumn{"state"} + + Store = CatShardColumn{"store"} + + Suggestcurrent = CatShardColumn{"suggest.current"} + + Suggesttime = CatShardColumn{"suggest.time"} + + Suggesttotal = CatShardColumn{"suggest.total"} + + Syncid = CatShardColumn{"sync_id"} + + Unassignedat = CatShardColumn{"unassigned.at"} + + Unassigneddetails = CatShardColumn{"unassigned.details"} + + Unassignedfor = CatShardColumn{"unassigned.for"} + + Unassignedreason = CatShardColumn{"unassigned.reason"} +) + +func (c CatShardColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatShardColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion.size": + *c = Completionsize + case "dataset.size": + *c = Datasetsize + case "dense_vector.value_count": + *c = Densevectorvaluecount + case "docs": + *c = Docs + case "fielddata.evictions": + *c = Fielddataevictions + case "fielddata.memory_size": + *c = Fielddatamemorysize + case "flush.total": + *c = Flushtotal + case "flush.total_time": + *c = Flushtotaltime + case "get.current": + *c = Getcurrent + case "get.exists_time": + *c = Getexiststime + case "get.exists_total": + *c = Getexiststotal + case "get.missing_time": + *c = Getmissingtime + case "get.missing_total": + *c = Getmissingtotal + case "get.time": + *c = Gettime + case "get.total": + *c = Gettotal + case "id": + *c = Id + case "index": + *c = Index + case "indexing.delete_current": + *c = Indexingdeletecurrent + case "indexing.delete_time": + *c = Indexingdeletetime + case "indexing.delete_total": + *c = Indexingdeletetotal + case "indexing.index_current": + *c = Indexingindexcurrent + case "indexing.index_failed_due_to_version_conflict": + *c = Indexingindexfailedduetoversionconflict + case "indexing.index_failed": + *c = Indexingindexfailed + case "indexing.index_time": + *c = Indexingindextime + case "indexing.index_total": + *c = Indexingindextotal + case "ip": + *c = Ip + case "merges.current": + *c = Mergescurrent + case "merges.current_docs": + *c = Mergescurrentdocs + case "merges.current_size": + *c = Mergescurrentsize + case "merges.total": + *c = Mergestotal + case "merges.total_docs": + *c = Mergestotaldocs + case "merges.total_size": + *c = Mergestotalsize + case "merges.total_time": + *c = Mergestotaltime + case "node": + *c = Node + case "prirep": + *c = Prirep + case "query_cache.evictions": + *c = Querycacheevictions + case "query_cache.memory_size": + *c = Querycachememorysize + case "recoverysource.type": + *c = Recoverysourcetype + case "refresh.time": + *c = Refreshtime + case "refresh.total": + *c = Refreshtotal + case "search.fetch_current": + *c = Searchfetchcurrent + case "search.fetch_time": + *c = Searchfetchtime + case "search.fetch_total": + *c = Searchfetchtotal + case "search.open_contexts": + *c = Searchopencontexts + case "search.query_current": + *c = Searchquerycurrent + case "search.query_time": + *c = Searchquerytime + case "search.query_total": + *c = Searchquerytotal + case "search.scroll_current": + *c = Searchscrollcurrent + case "search.scroll_time": + *c = Searchscrolltime + case "search.scroll_total": + *c = Searchscrolltotal + case "segments.count": + *c = Segmentscount + case "segments.fixed_bitset_memory": + *c = Segmentsfixedbitsetmemory + case "segments.index_writer_memory": + *c = Segmentsindexwritermemory + case "segments.memory": + *c = Segmentsmemory + case "segments.version_map_memory": + *c = Segmentsversionmapmemory + case "seq_no.global_checkpoint": + *c = Seqnoglobalcheckpoint + case "seq_no.local_checkpoint": + *c = Seqnolocalcheckpoint + case "seq_no.max": + *c = Seqnomax + case "shard": + *c = Shard + case "dsparse_vector.value_count": + *c = Dsparsevectorvaluecount + case "state": + *c = State + case "store": + *c = Store + case "suggest.current": + *c = Suggestcurrent + case "suggest.time": + *c = Suggesttime + case "suggest.total": + *c = Suggesttotal + case "sync_id": + *c = Syncid + case "unassigned.at": + *c = Unassignedat + case "unassigned.details": + *c = Unassigneddetails + case "unassigned.for": + *c = Unassignedfor + case "unassigned.reason": + *c = Unassignedreason + default: + *c = CatShardColumn{string(text)} + } + + return nil +} + +func (c CatShardColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/catsnapshotscolumn/catsnapshotscolumn.go b/typedapi/types/enums/catsnapshotscolumn/catsnapshotscolumn.go new file mode 100644 index 0000000000..2da9ae55ab --- /dev/null +++ b/typedapi/types/enums/catsnapshotscolumn/catsnapshotscolumn.go @@ -0,0 +1,101 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catsnapshotscolumn +package catsnapshotscolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1214-L1281 +type CatSnapshotsColumn struct { + Name string +} + +var ( + Id = CatSnapshotsColumn{"id"} + + Repository = CatSnapshotsColumn{"repository"} + + Status = CatSnapshotsColumn{"status"} + + Startepoch = CatSnapshotsColumn{"start_epoch"} + + Starttime = CatSnapshotsColumn{"start_time"} + + Endepoch = CatSnapshotsColumn{"end_epoch"} + + Endtime = CatSnapshotsColumn{"end_time"} + + Duration = CatSnapshotsColumn{"duration"} + + Indices = CatSnapshotsColumn{"indices"} + + Successfulshards = CatSnapshotsColumn{"successful_shards"} + + Failedshards = CatSnapshotsColumn{"failed_shards"} + + Totalshards = CatSnapshotsColumn{"total_shards"} + + Reason = CatSnapshotsColumn{"reason"} +) + +func (c CatSnapshotsColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatSnapshotsColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "id": + *c = Id + case "repository": + *c = Repository + case "status": + *c = Status + case "start_epoch": + *c = Startepoch + case "start_time": + *c = Starttime + case "end_epoch": + *c = Endepoch + case "end_time": + *c = Endtime + case "duration": + *c = Duration + case "indices": + *c = Indices + case "successful_shards": + *c = Successfulshards + case "failed_shards": + *c = Failedshards + case "total_shards": + *c = Totalshards + case "reason": + *c = Reason + default: + *c = CatSnapshotsColumn{string(text)} + } + + return nil +} + +func (c CatSnapshotsColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/catthreadpoolcolumn/catthreadpoolcolumn.go b/typedapi/types/enums/catthreadpoolcolumn/catthreadpoolcolumn.go new file mode 100644 index 0000000000..ace1642f6b --- /dev/null +++ b/typedapi/types/enums/catthreadpoolcolumn/catthreadpoolcolumn.go @@ -0,0 +1,129 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package catthreadpoolcolumn +package catthreadpoolcolumn + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1952-L2052 +type CatThreadPoolColumn struct { + Name string +} + +var ( + Active = CatThreadPoolColumn{"active"} + + Completed = CatThreadPoolColumn{"completed"} + + Core = CatThreadPoolColumn{"core"} + + Ephemeralid = CatThreadPoolColumn{"ephemeral_id"} + + Host = CatThreadPoolColumn{"host"} + + Ip = CatThreadPoolColumn{"ip"} + + Keepalive = CatThreadPoolColumn{"keep_alive"} + + Largest = CatThreadPoolColumn{"largest"} + + Max = CatThreadPoolColumn{"max"} + + Name = CatThreadPoolColumn{"name"} + + Nodeid = CatThreadPoolColumn{"node_id"} + + Nodename = CatThreadPoolColumn{"node_name"} + + Pid = CatThreadPoolColumn{"pid"} + + Poolsize = CatThreadPoolColumn{"pool_size"} + + Port = CatThreadPoolColumn{"port"} + + Queue = CatThreadPoolColumn{"queue"} + + Queuesize = CatThreadPoolColumn{"queue_size"} + + Rejected = CatThreadPoolColumn{"rejected"} + + Size = CatThreadPoolColumn{"size"} + + Type = CatThreadPoolColumn{"type"} +) + +func (c CatThreadPoolColumn) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CatThreadPoolColumn) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "active": + *c = Active + case "completed": + *c = Completed + case "core": + *c = Core + case "ephemeral_id": + *c = Ephemeralid + case "host": + *c = Host + case "ip": + *c = Ip + case "keep_alive": + *c = Keepalive + case "largest": + *c = Largest + case "max": + *c = Max + case "name": + *c = Name + case "node_id": + *c = Nodeid + case "node_name": + *c = Nodename + case "pid": + *c = Pid + case "pool_size": + *c = Poolsize + case "port": + *c = Port + case "queue": + *c = Queue + case "queue_size": + *c = Queuesize + case "rejected": + *c = Rejected + case "size": + *c = Size + case "type": + *c = Type + default: + *c = CatThreadPoolColumn{string(text)} + } + + return nil +} + +func (c CatThreadPoolColumn) String() string { + return c.Name +} diff --git a/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go b/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go index 64aa528743..15bf87dd06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cattrainedmodelscolumn package cattrainedmodelscolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L561-L635 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1290-L1364 type CatTrainedModelsColumn struct { Name string } diff --git a/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go b/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go index e40330635a..8cd77b6150 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cattransformcolumn package cattransformcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/_types/CatBase.ts#L640-L844 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/_types/CatBase.ts#L1369-L1573 type CatTransformColumn struct { Name string } diff --git a/typedapi/types/enums/childscoremode/childscoremode.go b/typedapi/types/enums/childscoremode/childscoremode.go index 5a81f2aee4..fc33e923c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package childscoremode package childscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/joining.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 06de9f7a72..4c904da02e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package chunkingmode package chunkingmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L245-L249 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Datafeed.ts#L245-L249 type ChunkingMode struct { Name string } diff --git a/typedapi/types/enums/cjkbigramignoredscript/cjkbigramignoredscript.go b/typedapi/types/enums/cjkbigramignoredscript/cjkbigramignoredscript.go new file mode 100644 index 0000000000..6b7e20d72f --- /dev/null +++ b/typedapi/types/enums/cjkbigramignoredscript/cjkbigramignoredscript.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package cjkbigramignoredscript +package cjkbigramignoredscript + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L459-L464 +type CjkBigramIgnoredScript struct { + Name string +} + +var ( + Han = CjkBigramIgnoredScript{"han"} + + Hangul = CjkBigramIgnoredScript{"hangul"} + + Hiragana = CjkBigramIgnoredScript{"hiragana"} + + Katakana = CjkBigramIgnoredScript{"katakana"} +) + +func (c CjkBigramIgnoredScript) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CjkBigramIgnoredScript) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "han": + *c = Han + case "hangul": + *c = Hangul + case "hiragana": + *c = Hiragana + case "katakana": + *c = Katakana + default: + *c = CjkBigramIgnoredScript{string(text)} + } + + return nil +} + +func (c CjkBigramIgnoredScript) String() string { + return c.Name +} diff --git a/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go b/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go index 27acdb9d89..cd61d6f306 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package clusterinfotarget package clusterinfotarget import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L378-L384 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L380-L386 type ClusterInfoTarget struct { Name string } diff --git a/typedapi/types/enums/clusterprivilege/clusterprivilege.go b/typedapi/types/enums/clusterprivilege/clusterprivilege.go index 2912ea07d0..ee3a9c8b5e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package clusterprivilege package clusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L42-L199 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5eef414b3f..9d7290a2c0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package clustersearchstatus package clustersearchstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 85a51f1bb6..68b822d395 100644 --- a/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go +++ b/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cohereembeddingtype package cohereembeddingtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L625-L629 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L698-L702 type CohereEmbeddingType struct { Name string } diff --git a/typedapi/types/enums/cohereinputtype/cohereinputtype.go b/typedapi/types/enums/cohereinputtype/cohereinputtype.go index 419596be4c..77b2df7657 100644 --- a/typedapi/types/enums/cohereinputtype/cohereinputtype.go +++ b/typedapi/types/enums/cohereinputtype/cohereinputtype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cohereinputtype package cohereinputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L631-L636 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L704-L709 type CohereInputType struct { Name string } diff --git a/typedapi/types/enums/cohereservicetype/cohereservicetype.go b/typedapi/types/enums/cohereservicetype/cohereservicetype.go index 06d383aa9b..ca4b40f56b 100644 --- a/typedapi/types/enums/cohereservicetype/cohereservicetype.go +++ b/typedapi/types/enums/cohereservicetype/cohereservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package cohereservicetype package cohereservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L621-L623 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L694-L696 type CohereServiceType struct { Name string } diff --git a/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go index 3e9139581e..cbea75998d 100644 --- a/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go +++ b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package coheresimilaritytype package coheresimilaritytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L638-L642 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L711-L715 type CohereSimilarityType struct { Name string } diff --git a/typedapi/types/enums/coheretasktype/coheretasktype.go b/typedapi/types/enums/coheretasktype/coheretasktype.go index 676449a99c..a974ce2b0f 100644 --- a/typedapi/types/enums/coheretasktype/coheretasktype.go +++ b/typedapi/types/enums/coheretasktype/coheretasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package coheretasktype package coheretasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L615-L619 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L688-L692 type CohereTaskType struct { Name string } diff --git a/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go index 49d5b7575a..fd7bf18765 100644 --- a/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go +++ b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package coheretruncatetype package coheretruncatetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L644-L648 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L717-L721 type CohereTruncateType struct { Name string } diff --git a/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go b/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go index e94b1d05f6..a767c01f47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package combinedfieldsoperator package combinedfieldsoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L519-L522 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d52119ba9f..c243402600 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package combinedfieldszeroterms package combinedfieldszeroterms import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L524-L533 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4124e6da1c..e9a840539c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package conditionop package conditionop import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L42-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L42-L49 type ConditionOp struct { Name string } diff --git a/typedapi/types/enums/conditionoperator/conditionoperator.go b/typedapi/types/enums/conditionoperator/conditionoperator.go index f81c78839a..1a5fd5e6cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package conditionoperator package conditionoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Rule.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 82fbce07de..0ec8991485 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package conditiontype package conditiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L65-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L65-L71 type ConditionType struct { Name string } diff --git a/typedapi/types/enums/conflicts/conflicts.go b/typedapi/types/enums/conflicts/conflicts.go index 355f50bbde..20042af19e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package conflicts package conflicts import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L180-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L180-L189 type Conflicts struct { Name string } diff --git a/typedapi/types/enums/connectionscheme/connectionscheme.go b/typedapi/types/enums/connectionscheme/connectionscheme.go index 8b341e5bf9..e837aba0b0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package connectionscheme package connectionscheme import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9ae81a95b2..e7af18d6dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package connectorfieldtype package connectorfieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b44019c1a4..53b1282033 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package connectorstatus package connectorstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L130-L136 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 33bd50ccf0..604c17c43a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package converttype package converttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L662-L671 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L662-L671 type ConvertType struct { Name string } diff --git a/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go b/typedapi/types/enums/dataattachmentformat/dataattachmentformat.go index 57437be76f..d855079d29 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dataattachmentformat package dataattachmentformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L187-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2ab9e84dbf..cbaaeecf95 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package datafeedstate package datafeedstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L136-L141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b9b91a8637..33eabc9f57 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dataframestate package dataframestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Dataframe.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fb2009bf9f..272e5f4958 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package day package day import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 80d5f4b0cc..93b9070d30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package decision package decision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L92-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 194306cc24..ff8dc4b35c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package delimitedpayloadencoding package delimitedpayloadencoding import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L78-L82 type DelimitedPayloadEncoding struct { Name string } diff --git a/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go b/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go index c12b45544e..a9c563d683 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package densevectorelementtype package densevectorelementtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/DenseVectorProperty.ts#L64-L80 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3b7cb6620b..8c0ceee0e2 100644 --- a/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go +++ b/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package densevectorindexoptionstype package densevectorindexoptionstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/DenseVectorProperty.ts#L164-L209 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/DenseVectorProperty.ts#L164-L209 type DenseVectorIndexOptionsType struct { Name string } diff --git a/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go b/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go index 571ca9ad01..1311d86c85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package densevectorsimilarity package densevectorsimilarity import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/DenseVectorProperty.ts#L82-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b92792f80f..ceec032c25 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package deploymentallocationstate package deploymentallocationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L331-L344 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0cc3a9a09b..40cf89ab1c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package deploymentassignmentstate package deploymentassignmentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L346-L363 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bb19af145c..948392fdb6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package deprecationlevel package deprecationlevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/deprecations/types.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f73e07475d..1ab7e4a08b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dfiindependencemeasure package dfiindependencemeasure import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 be72ff27bf..cc6c84f5a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dfraftereffect package dfraftereffect import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8f09ed4289..9162064d1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dfrbasicmodel package dfrbasicmodel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a228d2e1d6..fe46682c94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package displaytype package displaytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L35-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3be0714738..8fe46ade89 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package distanceunit package distanceunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L30-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 df7a00c887..dab803a7f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package dynamicmapping package dynamicmapping import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/dynamic-template.ts#L50-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ada1134251..1b9bb4250f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package ecscompatibilitytype package ecscompatibilitytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/_types/Structure.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ed98ca7428..2865192bfd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package edgengramside package edgengramside import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L92-L95 type EdgeNGramSide struct { Name string } diff --git a/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go index bc6250bc46..fcfc7ad707 100644 --- a/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go +++ b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package elasticsearchservicetype package elasticsearchservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L754-L756 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L827-L829 type ElasticsearchServiceType struct { Name string } diff --git a/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go index 5b256a2c2d..aac4f4c94a 100644 --- a/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go +++ b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package elasticsearchtasktype package elasticsearchtasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L748-L752 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L821-L825 type ElasticsearchTaskType struct { Name string } diff --git a/typedapi/types/enums/elserservicetype/elserservicetype.go b/typedapi/types/enums/elserservicetype/elserservicetype.go index c04d31d048..18a63ad67f 100644 --- a/typedapi/types/enums/elserservicetype/elserservicetype.go +++ b/typedapi/types/enums/elserservicetype/elserservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package elserservicetype package elserservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L790-L792 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L863-L865 type ElserServiceType struct { Name string } diff --git a/typedapi/types/enums/elsertasktype/elsertasktype.go b/typedapi/types/enums/elsertasktype/elsertasktype.go index e0c10e6291..4d6306d9df 100644 --- a/typedapi/types/enums/elsertasktype/elsertasktype.go +++ b/typedapi/types/enums/elsertasktype/elsertasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package elsertasktype package elsertasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L786-L788 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L859-L861 type ElserTaskType struct { Name string } diff --git a/typedapi/types/enums/emailpriority/emailpriority.go b/typedapi/types/enums/emailpriority/emailpriority.go index dfa0c3c9a5..3161c94d06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package emailpriority package emailpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L197-L203 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b9908b219c..0ab51ba8e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package enrichpolicyphase package enrichpolicyphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/execute_policy/types.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/execute_policy/types.ts#L25-L31 type EnrichPolicyPhase struct { Name string } diff --git a/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go b/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go index 3b9bc08780..bd7fb0893b 100644 --- a/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go +++ b/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package esqlclusterstatus package esqlclusterstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L72-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L83-L89 type EsqlClusterStatus struct { Name string } diff --git a/typedapi/types/enums/esqlformat/esqlformat.go b/typedapi/types/enums/esqlformat/esqlformat.go index a54f8e6f9f..2cbf7d3501 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package esqlformat package esqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/QueryParameters.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/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 c44c50afe9..fedab71f8e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package eventtype package eventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/AnalyticsEvent.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7ef3438ef1..7b45977ec6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package excludefrequent package excludefrequent import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Detector.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dff2dd3f32..5ff9e4e68b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package executionphase package executionphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e84f773bc0..abf7b3fae3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package executionstatus package executionstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 850d332ba1..e694eacb4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package expandwildcard package expandwildcard import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L198-L212 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L198-L212 type ExpandWildcard struct { Name string } diff --git a/typedapi/types/enums/failurestorestatus/failurestorestatus.go b/typedapi/types/enums/failurestorestatus/failurestorestatus.go index 8dda14e5ee..3323b41954 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package failurestorestatus package failurestorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f12f78b2e1..500dce9e2b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package feature package feature import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get/IndicesGetRequest.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 44fc4d8eb4..997dda82ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package fieldsortnumerictype package fieldsortnumerictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3642b0d341..a0dfdc0fe1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package fieldtype package fieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/Property.ts#L191-L240 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/Property.ts#L193-L242 type FieldType struct { Name string } diff --git a/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go b/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go index bb9ce25ba2..90da3da8a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package fieldvaluefactormodifier package fieldvaluefactormodifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L323-L366 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5328b34a90..ded3ef946a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package filteringpolicy package filteringpolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7eedd52b15..ea819821b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package filteringrulerule package filteringrulerule import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L160-L168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c9d20cd8cc..ad0d824a05 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package filteringvalidationstate package filteringvalidationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f50b1fe676..e92534621c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package filtertype package filtertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Filter.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4bad55f273..4ceface163 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package fingerprintdigest package fingerprintdigest import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L897-L903 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L897-L903 type FingerprintDigest struct { Name string } diff --git a/typedapi/types/enums/followerindexstatus/followerindexstatus.go b/typedapi/types/enums/followerindexstatus/followerindexstatus.go index beb8888c39..84516c0f02 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package followerindexstatus package followerindexstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow_info/types.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e3d07d48d9..82f9514328 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package formattype package formattype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/_types/Structure.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2b5381ea28..b23af772e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package functionboostmode package functionboostmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L295-L321 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f8594db49c..10014f8d6f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package functionscoremode package functionscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L268-L293 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 72ef312b0b..c94c70902e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package gappolicy package gappolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L61-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0f334d7f28..3697bb74c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geodistancetype package geodistancetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 71c250c368..4056f7075d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geoexecution package geoexecution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 244f963147..a74b8fad3f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geogridtargetformat package geogridtargetformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L438-L441 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L438-L441 type GeoGridTargetFormat struct { Name string } diff --git a/typedapi/types/enums/geogridtiletype/geogridtiletype.go b/typedapi/types/enums/geogridtiletype/geogridtiletype.go index b112289a50..8f4c9ab20f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geogridtiletype package geogridtiletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L432-L436 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L432-L436 type GeoGridTileType struct { Name string } diff --git a/typedapi/types/enums/geoorientation/geoorientation.go b/typedapi/types/enums/geoorientation/geoorientation.go index 3f19516802..6ad33f1ad1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geoorientation package geoorientation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L34-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L41-L46 type GeoOrientation struct { Name string } diff --git a/typedapi/types/enums/geopointmetrictype/geopointmetrictype.go b/typedapi/types/enums/geopointmetrictype/geopointmetrictype.go new file mode 100644 index 0000000000..6292270b60 --- /dev/null +++ b/typedapi/types/enums/geopointmetrictype/geopointmetrictype.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package geopointmetrictype +package geopointmetrictype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L35-L39 +type GeoPointMetricType struct { + Name string +} + +var ( + Gauge = GeoPointMetricType{"gauge"} + + Counter = GeoPointMetricType{"counter"} + + Position = GeoPointMetricType{"position"} +) + +func (g GeoPointMetricType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GeoPointMetricType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "gauge": + *g = Gauge + case "counter": + *g = Counter + case "position": + *g = Position + default: + *g = GeoPointMetricType{string(text)} + } + + return nil +} + +func (g GeoPointMetricType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/geoshaperelation/geoshaperelation.go b/typedapi/types/enums/geoshaperelation/geoshaperelation.go index fdc7f144e8..9a1b479516 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geoshaperelation package geoshaperelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a49350b0e5..f9874195ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geostrategy package geostrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L64-L67 type GeoStrategy struct { Name string } diff --git a/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go b/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go index cc808413a7..0762c93b2a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package geovalidationmethod package geovalidationmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L173-L183 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index e65487d6f0..72c1d51755 100644 --- a/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go +++ b/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package googleaiservicetype package googleaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L817-L819 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L890-L892 type GoogleAiServiceType struct { Name string } diff --git a/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go index f1c7a9ad74..e9839c10db 100644 --- a/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go +++ b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package googleaistudiotasktype package googleaistudiotasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L812-L815 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L885-L888 type GoogleAiStudioTaskType struct { Name string } diff --git a/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go index 0f329614ee..fa1ebb460f 100644 --- a/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go +++ b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package googlevertexaiservicetype package googlevertexaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L865-L867 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L938-L940 type GoogleVertexAIServiceType struct { Name string } diff --git a/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go index 0a235d732e..76d6c7fce6 100644 --- a/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go +++ b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package googlevertexaitasktype package googlevertexaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L860-L863 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L933-L936 type GoogleVertexAITaskType struct { Name string } diff --git a/typedapi/types/enums/granttype/granttype.go b/typedapi/types/enums/granttype/granttype.go index f6acbfdab8..6293be90d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package granttype package granttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/GrantType.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ed0d97173b..3a7e0b2fbd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package gridaggregationtype package gridaggregationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_mvt/_types/GridType.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c106da7979..9e7af694d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package gridtype package gridtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_mvt/_types/GridType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2f3cee9c9a..0e614bcab1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package groupby package groupby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/_types/GroupBy.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d9953d9730..d4cfb897db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package healthstatus package healthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L216-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L216-L238 type HealthStatus struct { Name string } @@ -34,6 +34,10 @@ var ( Yellow = HealthStatus{"yellow"} Red = HealthStatus{"red"} + + Unknown = HealthStatus{"unknown"} + + Unavailable = HealthStatus{"unavailable"} ) func (h HealthStatus) MarshalText() (text []byte, err error) { @@ -49,6 +53,10 @@ func (h *HealthStatus) UnmarshalText(text []byte) error { *h = Yellow case "red": *h = Red + case "unknown": + *h = Unknown + case "unavailable": + *h = Unavailable default: *h = HealthStatus{string(text)} } diff --git a/typedapi/types/enums/highlighterencoder/highlighterencoder.go b/typedapi/types/enums/highlighterencoder/highlighterencoder.go index e6946418e6..17e63f2c1c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package highlighterencoder package highlighterencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8b5526c30b..8393655bed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package highlighterfragmenter package highlighterfragmenter import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ba52f17623..c5d3b7b2ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package highlighterorder package highlighterorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L167-L169 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6f678e0fc9..fdb0a0d4c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package highlightertagsschema package highlightertagsschema import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L171-L173 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a7b04e7432..f6789ca7a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package highlightertype package highlightertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L175-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 60535eee1f..2a91b6e122 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package holtwinterstype package holtwinterstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L309-L312 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 365a5705ff..e3b0247c28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package httpinputmethod package httpinputmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 2c89eb7568..9def4b6998 100644 --- a/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go +++ b/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package huggingfaceservicetype package huggingfaceservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L896-L898 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L969-L971 type HuggingFaceServiceType struct { Name string } diff --git a/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go index 8b14df0ee6..d74c585c29 100644 --- a/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go +++ b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package huggingfacetasktype package huggingfacetasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L892-L894 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L965-L967 type HuggingFaceTaskType struct { Name string } diff --git a/typedapi/types/enums/ibdistribution/ibdistribution.go b/typedapi/types/enums/ibdistribution/ibdistribution.go index 2efc9354a9..9f54e3a2bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package ibdistribution package ibdistribution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1183fcfcab..bc2bc94f93 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package iblambda package iblambda import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e01564d661..8183bf6f77 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icucollationalternate package icucollationalternate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L90-L93 type IcuCollationAlternate struct { Name string } diff --git a/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go b/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go index 238639e274..b83a4eb83b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icucollationcasefirst package icucollationcasefirst import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L95-L98 type IcuCollationCaseFirst struct { Name string } diff --git a/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go b/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go index e2d2c1ba51..0bcc5bdbb4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icucollationdecomposition package icucollationdecomposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L100-L103 type IcuCollationDecomposition struct { Name string } diff --git a/typedapi/types/enums/icucollationstrength/icucollationstrength.go b/typedapi/types/enums/icucollationstrength/icucollationstrength.go index 1b92a3b611..b5df8385a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icucollationstrength package icucollationstrength import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L104-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L105-L111 type IcuCollationStrength struct { Name string } diff --git a/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go b/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go index 37389a88f9..df15c18e40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icunormalizationmode package icunormalizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L79-L82 type IcuNormalizationMode struct { Name string } diff --git a/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go b/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go index 151897c0d0..25d21c5b99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icunormalizationtype package icunormalizationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L84-L88 type IcuNormalizationType struct { Name string } diff --git a/typedapi/types/enums/icutransformdirection/icutransformdirection.go b/typedapi/types/enums/icutransformdirection/icutransformdirection.go index 3acd7ddc03..53ccc76e0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package icutransformdirection package icutransformdirection import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L74-L77 type IcuTransformDirection struct { Name string } diff --git a/typedapi/types/enums/impactarea/impactarea.go b/typedapi/types/enums/impactarea/impactarea.go index 503796f764..177aec7848 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package impactarea package impactarea import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L75-L80 type ImpactArea struct { Name string } diff --git a/typedapi/types/enums/include/include.go b/typedapi/types/enums/include/include.go index 377e62bc96..72fb0753d6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package include package include import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Include.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e7e9054d7a..d8eb101715 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexcheckonstartup package indexcheckonstartup import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L270-L277 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L272-L279 type IndexCheckOnStartup struct { Name string } diff --git a/typedapi/types/enums/indexingjobstate/indexingjobstate.go b/typedapi/types/enums/indexingjobstate/indexingjobstate.go index bf98ffca31..a4add6426c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexingjobstate package indexingjobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/types.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3253d7d240..1929b822ce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexmetadatastate package indexmetadatastate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L225-L232 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 873def270f..b393eee5ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexoptions package indexoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L283-L288 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L293-L298 type IndexOptions struct { Name string } diff --git a/typedapi/types/enums/indexprivilege/indexprivilege.go b/typedapi/types/enums/indexprivilege/indexprivilege.go index a5b336dbb7..39f5c8b337 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexprivilege package indexprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L386-L428 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bcf23b54f5..794d12e512 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexroutingallocationoptions package indexroutingallocationoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L38-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 16e610a150..254e7cb4e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indexroutingrebalanceoptions package indexroutingrebalanceoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 54dd6afd55..0e3236dc47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indicatorhealthstatus package indicatorhealthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L25-L31 type IndicatorHealthStatus struct { Name string } @@ -36,6 +36,8 @@ var ( Red = IndicatorHealthStatus{"red"} Unknown = IndicatorHealthStatus{"unknown"} + + Unavailable = IndicatorHealthStatus{"unavailable"} ) func (i IndicatorHealthStatus) MarshalText() (text []byte, err error) { @@ -53,6 +55,8 @@ func (i *IndicatorHealthStatus) UnmarshalText(text []byte) error { *i = Red case "unknown": *i = Unknown + case "unavailable": + *i = Unavailable default: *i = IndicatorHealthStatus{string(text)} } diff --git a/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go b/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go index 42c3ffdc2c..47a7466c31 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package indicesblockoptions package indicesblockoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/add_block/IndicesAddBlockRequest.ts#L91-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 123784dd8e..f245532870 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package inputtype package inputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L97-L101 type InputType struct { Name string } diff --git a/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go index 32d17786c5..53e379c43e 100644 --- a/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go +++ b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jinaaiservicetype package jinaaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L959-L961 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1032-L1034 type JinaAIServiceType struct { Name string } diff --git a/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go index 8394b1655a..420b0d6df7 100644 --- a/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go +++ b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jinaaisimilaritytype package jinaaisimilaritytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L963-L967 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1036-L1040 type JinaAISimilarityType struct { Name string } diff --git a/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go index 862811ae2a..9ddefe64cf 100644 --- a/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go +++ b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jinaaitasktype package jinaaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L954-L957 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1027-L1030 type JinaAITaskType struct { Name string } diff --git a/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go index e52c8558b8..1a19234b8b 100644 --- a/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go +++ b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jinaaitextembeddingtask package jinaaitextembeddingtask import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L969-L974 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1042-L1047 type JinaAITextEmbeddingTask struct { Name string } diff --git a/typedapi/types/enums/jobblockedreason/jobblockedreason.go b/typedapi/types/enums/jobblockedreason/jobblockedreason.go index c2344e6fd7..9f93eda7bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jobblockedreason package jobblockedreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L397-L401 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 374462d8f7..1f2c0f7870 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jobstate package jobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L36-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 96bca2ce65..ca544a45d3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package jsonprocessorconflictstrategy package jsonprocessorconflictstrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1170-L1175 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1170-L1175 type JsonProcessorConflictStrategy struct { Name string } diff --git a/typedapi/types/enums/keeptypesmode/keeptypesmode.go b/typedapi/types/enums/keeptypesmode/keeptypesmode.go index 432bf54ca5..82ddda29b7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package keeptypesmode package keeptypesmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L282-L285 type KeepTypesMode struct { Name string } diff --git a/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go b/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go index 6ba43d5a0e..af0e69b19d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package kuromojitokenizationmode package kuromojitokenizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L58-L62 type KuromojiTokenizationMode struct { Name string } diff --git a/typedapi/types/enums/level/level.go b/typedapi/types/enums/level/level.go index d4cbe56e22..d91798b338 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package level package level import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L246-L250 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L248-L252 type Level struct { Name string } diff --git a/typedapi/types/enums/licensestatus/licensestatus.go b/typedapi/types/enums/licensestatus/licensestatus.go index 54f98c28e4..f447d8c8fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package licensestatus package licensestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/_types/License.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ea4b6bb1d2..c49562bb44 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package licensetype package licensetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/_types/License.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f508eec870..69610223fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package lifecycleoperationmode package lifecycleoperationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Lifecycle.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Lifecycle.ts#L20-L24 type LifecycleOperationMode struct { Name string } diff --git a/typedapi/types/enums/lowercasetokenfilterlanguages/lowercasetokenfilterlanguages.go b/typedapi/types/enums/lowercasetokenfilterlanguages/lowercasetokenfilterlanguages.go new file mode 100644 index 0000000000..fa373d1151 --- /dev/null +++ b/typedapi/types/enums/lowercasetokenfilterlanguages/lowercasetokenfilterlanguages.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package lowercasetokenfilterlanguages +package lowercasetokenfilterlanguages + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L344-L348 +type LowercaseTokenFilterLanguages struct { + Name string +} + +var ( + Greek = LowercaseTokenFilterLanguages{"greek"} + + Irish = LowercaseTokenFilterLanguages{"irish"} + + Turkish = LowercaseTokenFilterLanguages{"turkish"} +) + +func (l LowercaseTokenFilterLanguages) MarshalText() (text []byte, err error) { + return []byte(l.String()), nil +} + +func (l *LowercaseTokenFilterLanguages) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "greek": + *l = Greek + case "irish": + *l = Irish + case "turkish": + *l = Turkish + default: + *l = LowercaseTokenFilterLanguages{string(text)} + } + + return nil +} + +func (l LowercaseTokenFilterLanguages) String() string { + return l.Name +} diff --git a/typedapi/types/enums/managedby/managedby.go b/typedapi/types/enums/managedby/managedby.go index d0a2d37ec7..dcf1c5f99d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package managedby package managedby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 61f4b16c1c..8e78e7a73b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package matchtype package matchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/dynamic-template.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 740a77360e..48261b5988 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package memorystatus package memorystatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1abbfd214a..4c4cf59c84 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package metric package metric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Metric.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 32fce37f10..18e25113a9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package migrationstatus package migrationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 69f5bc3fc5..d1ee2924c4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package minimuminterval package minimuminterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L112-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e974c5f088..03f94a42de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package missingorder package missingorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/AggregationContainer.ts#L536-L540 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index c978e13663..06c0ccc286 100644 --- a/typedapi/types/enums/mistralservicetype/mistralservicetype.go +++ b/typedapi/types/enums/mistralservicetype/mistralservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package mistralservicetype package mistralservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1009-L1011 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1082-L1084 type MistralServiceType struct { Name string } diff --git a/typedapi/types/enums/mistraltasktype/mistraltasktype.go b/typedapi/types/enums/mistraltasktype/mistraltasktype.go index 5f80daed38..8a363a9770 100644 --- a/typedapi/types/enums/mistraltasktype/mistraltasktype.go +++ b/typedapi/types/enums/mistraltasktype/mistraltasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package mistraltasktype package mistraltasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1005-L1007 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1078-L1080 type MistralTaskType struct { Name string } diff --git a/typedapi/types/enums/modeenum/modeenum.go b/typedapi/types/enums/modeenum/modeenum.go index 6ce49eeba3..08d4fc4cdc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package modeenum package modeenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7a0c8b110b..48b14f5d29 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package month package month import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 18367bf5a8..c2e3878c78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package multivaluemode package multivaluemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L368-L385 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 bfae74d80c..02d4d0bb62 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package noderole package noderole import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Node.ts#L71-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 51ae5eb16b..9d1596dde5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package noridecompoundmode package noridecompoundmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/nori-plugin.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/nori-plugin.ts#L23-L27 type NoriDecompoundMode struct { Name string } diff --git a/typedapi/types/enums/normalization/normalization.go b/typedapi/types/enums/normalization/normalization.go index 1e5bfc28e2..e33281c64c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package normalization package normalization import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Similarity.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 db32677260..ff2afb5159 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package normalizemethod package normalizemethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L361-L387 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5b9bbbd96c..c0c4402e3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package numericfielddataformat package numericfielddataformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 72a527dd83..3843239bad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package onscripterror package onscripterror import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L150-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L150-L153 type OnScriptError struct { Name string } diff --git a/typedapi/types/enums/openaiservicetype/openaiservicetype.go b/typedapi/types/enums/openaiservicetype/openaiservicetype.go index cc60f29c46..80af9f49c3 100644 --- a/typedapi/types/enums/openaiservicetype/openaiservicetype.go +++ b/typedapi/types/enums/openaiservicetype/openaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package openaiservicetype package openaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1071-L1073 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1144-L1146 type OpenAIServiceType struct { Name string } diff --git a/typedapi/types/enums/openaitasktype/openaitasktype.go b/typedapi/types/enums/openaitasktype/openaitasktype.go index 895d2a40cc..6dd4947240 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package openaitasktype package openaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1065-L1069 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1138-L1142 type OpenAITaskType struct { Name string } diff --git a/typedapi/types/enums/operationtype/operationtype.go b/typedapi/types/enums/operationtype/operationtype.go index 16bbf5c981..43455a574f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package operationtype package operationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a5303e76a2..5676b8ca90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package operator package operator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/Operator.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c7c328b0c1..adbd627b0d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package optype package optype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L252-L261 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L254-L263 type OpType struct { Name string } diff --git a/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go b/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go index f79effbe7a..09ac3941aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package pagerdutycontexttype package pagerdutycontexttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b425427278..e01d5d44c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package pagerdutyeventtype package pagerdutyeventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8c24f78901..effdb33cc8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package painlesscontext package painlesscontext import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scripts_painless_execute/types.ts#L57-L80 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5b37659fc4..74d2eed62d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package phoneticencoder package phoneticencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/phonetic-plugin.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f64f80bcfa..7f6b3fb7d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package phoneticlanguage package phoneticlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/phonetic-plugin.ts#L38-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 66dc98909b..10b4f8c8f9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package phoneticnametype package phoneticnametype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/phonetic-plugin.ts#L53-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f2089a5a31..44ff71b6f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package phoneticruletype package phoneticruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/phonetic-plugin.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/phonetic-plugin.ts#L59-L62 type PhoneticRuleType struct { Name string } diff --git a/typedapi/types/enums/pipelinesimulationstatusoptions/pipelinesimulationstatusoptions.go b/typedapi/types/enums/pipelinesimulationstatusoptions/pipelinesimulationstatusoptions.go new file mode 100644 index 0000000000..d9d972483c --- /dev/null +++ b/typedapi/types/enums/pipelinesimulationstatusoptions/pipelinesimulationstatusoptions.go @@ -0,0 +1,69 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package pipelinesimulationstatusoptions +package pipelinesimulationstatusoptions + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L51-L57 +type PipelineSimulationStatusOptions struct { + Name string +} + +var ( + Success = PipelineSimulationStatusOptions{"success"} + + Error = PipelineSimulationStatusOptions{"error"} + + Errorignored = PipelineSimulationStatusOptions{"error_ignored"} + + Skipped = PipelineSimulationStatusOptions{"skipped"} + + Dropped = PipelineSimulationStatusOptions{"dropped"} +) + +func (p PipelineSimulationStatusOptions) MarshalText() (text []byte, err error) { + return []byte(p.String()), nil +} + +func (p *PipelineSimulationStatusOptions) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "success": + *p = Success + case "error": + *p = Error + case "error_ignored": + *p = Errorignored + case "skipped": + *p = Skipped + case "dropped": + *p = Dropped + default: + *p = PipelineSimulationStatusOptions{string(text)} + } + + return nil +} + +func (p PipelineSimulationStatusOptions) String() string { + return p.Name +} diff --git a/typedapi/types/enums/policytype/policytype.go b/typedapi/types/enums/policytype/policytype.go index 2053dc837f..b0d15be359 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package policytype package policytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/_types/Policy.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 89f88d20f9..4d65542d40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package quantifier package quantifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L75-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L75-L78 type Quantifier struct { Name string } diff --git a/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go b/typedapi/types/enums/queryrulecriteriatype/queryrulecriteriatype.go index 34d86c7c22..cdaa6eb4fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package queryrulecriteriatype package queryrulecriteriatype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/_types/QueryRuleset.ts#L95-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b84395da63..7a41ceb810 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package queryruletype package queryruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/_types/QueryRuleset.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d34bf1d9c8..6226e65504 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package rangerelation package rangerelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L188-L201 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L184-L197 type RangeRelation struct { Name string } diff --git a/typedapi/types/enums/rankvectorelementtype/rankvectorelementtype.go b/typedapi/types/enums/rankvectorelementtype/rankvectorelementtype.go new file mode 100644 index 0000000000..6663789115 --- /dev/null +++ b/typedapi/types/enums/rankvectorelementtype/rankvectorelementtype.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package rankvectorelementtype +package rankvectorelementtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L370-L374 +type RankVectorElementType struct { + Name string +} + +var ( + Byte = RankVectorElementType{"byte"} + + Float = RankVectorElementType{"float"} + + Bit = RankVectorElementType{"bit"} +) + +func (r RankVectorElementType) MarshalText() (text []byte, err error) { + return []byte(r.String()), nil +} + +func (r *RankVectorElementType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "byte": + *r = Byte + case "float": + *r = Float + case "bit": + *r = Bit + default: + *r = RankVectorElementType{string(text)} + } + + return nil +} + +func (r RankVectorElementType) String() string { + return r.Name +} diff --git a/typedapi/types/enums/ratemode/ratemode.go b/typedapi/types/enums/ratemode/ratemode.go index 8e1ab07830..f711ec6f72 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package ratemode package ratemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L252-L261 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9649adbc48..61f75cfe2b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package refresh package refresh import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L263-L270 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L265-L272 type Refresh struct { Name string } diff --git a/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go b/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go index 62c4012d57..991d1198ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package remoteclusterprivilege package remoteclusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L201-L213 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c438e7a192..2e0b04a21f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package responsecontenttype package responsecontenttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L103-L107 type ResponseContentType struct { Name string } diff --git a/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go b/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go index 20a7752110..500459c70e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package restrictionworkflow package restrictionworkflow import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleDescriptor.ts#L143-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 48ee518e13..a86e41ed4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package result package result import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Result.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 23f01565f6..bc6b2b0695 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package resultposition package resultposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/search/types.ts#L20-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d66f98902a..8e8cf19d11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package routingstate package routingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L408-L429 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 87bd677a85..107de78f15 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package ruleaction package ruleaction import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Rule.ts#L41-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 764a014159..16d4b0b378 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package runtimefieldtype package runtimefieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/RuntimeFields.ts#L62-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/RuntimeFields.ts#L62-L73 type RuntimeFieldType struct { Name string } diff --git a/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go b/typedapi/types/enums/sampleraggregationexecutionhint/sampleraggregationexecutionhint.go index d3f012a56d..19362b4bec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sampleraggregationexecutionhint package sampleraggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L359-L372 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f875601b47..353c063e7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package scoremode package scoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/rescoring.ts#L64-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/rescoring.ts#L64-L86 type ScoreMode struct { Name string } diff --git a/typedapi/types/enums/scorenormalizer/scorenormalizer.go b/typedapi/types/enums/scorenormalizer/scorenormalizer.go new file mode 100644 index 0000000000..ac29ebab8f --- /dev/null +++ b/typedapi/types/enums/scorenormalizer/scorenormalizer.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package scorenormalizer +package scorenormalizer + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L88-L91 +type ScoreNormalizer struct { + Name string +} + +var ( + None = ScoreNormalizer{"none"} + + Minmax = ScoreNormalizer{"minmax"} +) + +func (s ScoreNormalizer) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *ScoreNormalizer) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "none": + *s = None + case "minmax": + *s = Minmax + default: + *s = ScoreNormalizer{string(text)} + } + + return nil +} + +func (s ScoreNormalizer) String() string { + return s.Name +} diff --git a/typedapi/types/enums/scriptlanguage/scriptlanguage.go b/typedapi/types/enums/scriptlanguage/scriptlanguage.go index 052e237caa..5e0d8ac1a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package scriptlanguage package scriptlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Scripting.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Scripting.ts#L25-L46 type ScriptLanguage struct { Name string } diff --git a/typedapi/types/enums/scriptsorttype/scriptsorttype.go b/typedapi/types/enums/scriptsorttype/scriptsorttype.go index b6197ea525..0fe7866fbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package scriptsorttype package scriptsorttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L80-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9fb0b2439b..77d74b31a2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package searchtype package searchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L272-L277 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L274-L279 type SearchType struct { Name string } diff --git a/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go b/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go index 9ac59af5ef..9c4d115628 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package segmentsortmissing package segmentsortmissing import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSegmentSort.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0f94ce82db..5ca74fb39d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package segmentsortmode package segmentsortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSegmentSort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6393c9921b..f2e96454c2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package segmentsortorder package segmentsortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSegmentSort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5b590b479c..0be53ff24b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shapetype package shapetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1492-L1495 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1492-L1495 type ShapeType struct { Name string } diff --git a/typedapi/types/enums/shardroutingstate/shardroutingstate.go b/typedapi/types/enums/shardroutingstate/shardroutingstate.go index 7e72317fc1..19a8985cd0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shardroutingstate package shardroutingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L169-L174 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 0327f39012..ca51853008 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shardsstatsstage package shardsstatsstage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 type ShardsStatsStage struct { Name string } diff --git a/typedapi/types/enums/shardstate/shardstate.go b/typedapi/types/enums/shardstate/shardstate.go new file mode 100644 index 0000000000..3dabceb16e --- /dev/null +++ b/typedapi/types/enums/shardstate/shardstate.go @@ -0,0 +1,81 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package shardstate +package shardstate + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L689-L698 +type ShardState struct { + Name string +} + +var ( + INIT = ShardState{"INIT"} + + SUCCESS = ShardState{"SUCCESS"} + + FAILED = ShardState{"FAILED"} + + ABORTED = ShardState{"ABORTED"} + + MISSING = ShardState{"MISSING"} + + WAITING = ShardState{"WAITING"} + + QUEUED = ShardState{"QUEUED"} + + PAUSEDFORNODEREMOVAL = ShardState{"PAUSED_FOR_NODE_REMOVAL"} +) + +func (s ShardState) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *ShardState) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "init": + *s = INIT + case "success": + *s = SUCCESS + case "failed": + *s = FAILED + case "aborted": + *s = ABORTED + case "missing": + *s = MISSING + case "waiting": + *s = WAITING + case "queued": + *s = QUEUED + case "paused_for_node_removal": + *s = PAUSEDFORNODEREMOVAL + default: + *s = ShardState{string(text)} + } + + return nil +} + +func (s ShardState) String() string { + return s.Name +} diff --git a/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go b/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go index 1f7fac7a27..d32c3c4e55 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shardstoreallocation package shardstoreallocation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L47-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5fcd67d472..0beb031b2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shardstorestatus package shardstorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L62-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4599fea77d..37f461d5f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shutdownstatus package shutdownstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7398b6b6a2..9133e67c97 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package shutdowntype package shutdowntype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 491befdc5b..747b531c92 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package simplequerystringflag package simplequerystringflag import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L729-L784 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L780-L835 type SimpleQueryStringFlag struct { Name string } diff --git a/typedapi/types/enums/slicescalculation/slicescalculation.go b/typedapi/types/enums/slicescalculation/slicescalculation.go index 2e63f992e2..16cf4d8b53 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package slicescalculation package slicescalculation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L368-L376 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L370-L378 type SlicesCalculation struct { Name string } diff --git a/typedapi/types/enums/snapshotsort/snapshotsort.go b/typedapi/types/enums/snapshotsort/snapshotsort.go index 7ecad9b90f..1d45838f8e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package snapshotsort package snapshotsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 390ecb26b6..fe2e026f7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package snapshotupgradestate package snapshotupgradestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a3fa6631e0..521667ad98 100644 --- a/typedapi/types/enums/snowballlanguage/snowballlanguage.go +++ b/typedapi/types/enums/snowballlanguage/snowballlanguage.go @@ -16,19 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package snowballlanguage package snowballlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/languages.ts#L20-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/languages.ts#L20-L48 type SnowballLanguage struct { Name string } var ( + Arabic = SnowballLanguage{"Arabic"} + Armenian = SnowballLanguage{"Armenian"} Basque = SnowballLanguage{"Basque"} @@ -41,6 +43,8 @@ var ( English = SnowballLanguage{"English"} + Estonian = SnowballLanguage{"Estonian"} + Finnish = SnowballLanguage{"Finnish"} French = SnowballLanguage{"French"} @@ -53,8 +57,12 @@ var ( Italian = SnowballLanguage{"Italian"} + Irish = SnowballLanguage{"Irish"} + Kp = SnowballLanguage{"Kp"} + Lithuanian = SnowballLanguage{"Lithuanian"} + Lovins = SnowballLanguage{"Lovins"} Norwegian = SnowballLanguage{"Norwegian"} @@ -67,6 +75,8 @@ var ( Russian = SnowballLanguage{"Russian"} + Serbian = SnowballLanguage{"Serbian"} + Spanish = SnowballLanguage{"Spanish"} Swedish = SnowballLanguage{"Swedish"} @@ -81,6 +91,8 @@ func (s SnowballLanguage) MarshalText() (text []byte, err error) { func (s *SnowballLanguage) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + case "arabic": + *s = Arabic case "armenian": *s = Armenian case "basque": @@ -93,6 +105,8 @@ func (s *SnowballLanguage) UnmarshalText(text []byte) error { *s = Dutch case "english": *s = English + case "estonian": + *s = Estonian case "finnish": *s = Finnish case "french": @@ -105,8 +119,12 @@ func (s *SnowballLanguage) UnmarshalText(text []byte) error { *s = Hungarian case "italian": *s = Italian + case "irish": + *s = Irish case "kp": *s = Kp + case "lithuanian": + *s = Lithuanian case "lovins": *s = Lovins case "norwegian": @@ -119,6 +137,8 @@ func (s *SnowballLanguage) UnmarshalText(text []byte) error { *s = Romanian case "russian": *s = Russian + case "serbian": + *s = Serbian case "spanish": *s = Spanish case "swedish": diff --git a/typedapi/types/enums/sortmode/sortmode.go b/typedapi/types/enums/sortmode/sortmode.go index 2157d35637..5141e8ab84 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sortmode package sortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 025c466f76..f4dcd2baad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sortorder package sortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L119-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dd071c7252..22e3920c11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sourcefieldmode package sourcefieldmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fe9e3eed15..04abdb4b61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sourcemode package sourcemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L509-L513 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L511-L515 type SourceMode struct { Name string } diff --git a/typedapi/types/enums/sqlformat/sqlformat.go b/typedapi/types/enums/sqlformat/sqlformat.go index 26dc8b84d9..22e39e71e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package sqlformat package sqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/sql/query/QuerySqlRequest.ts#L154-L162 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/sql/query/QuerySqlRequest.ts#L153-L161 type SqlFormat struct { Name string } diff --git a/typedapi/types/enums/statslevel/statslevel.go b/typedapi/types/enums/statslevel/statslevel.go index 33eb205827..12a4e8d903 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package statslevel package statslevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/_types/stats.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/searchable_snapshots/_types/stats.ts#L20-L24 type StatsLevel struct { Name string } diff --git a/typedapi/types/enums/stopwordlanguage/stopwordlanguage.go b/typedapi/types/enums/stopwordlanguage/stopwordlanguage.go new file mode 100644 index 0000000000..4010fc1cc8 --- /dev/null +++ b/typedapi/types/enums/stopwordlanguage/stopwordlanguage.go @@ -0,0 +1,197 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package stopwordlanguage +package stopwordlanguage + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/StopWords.ts#L20-L58 +type StopWordLanguage struct { + Name string +} + +var ( + Arabic = StopWordLanguage{"_arabic_"} + + Armenian = StopWordLanguage{"_armenian_"} + + Basque = StopWordLanguage{"_basque_"} + + Bengali = StopWordLanguage{"_bengali_"} + + Brazilian = StopWordLanguage{"_brazilian_"} + + Bulgarian = StopWordLanguage{"_bulgarian_"} + + Catalan = StopWordLanguage{"_catalan_"} + + Cjk = StopWordLanguage{"_cjk_"} + + Czech = StopWordLanguage{"_czech_"} + + Danish = StopWordLanguage{"_danish_"} + + Dutch = StopWordLanguage{"_dutch_"} + + English = StopWordLanguage{"_english_"} + + Estonian = StopWordLanguage{"_estonian_"} + + Finnish = StopWordLanguage{"_finnish_"} + + French = StopWordLanguage{"_french_"} + + Galician = StopWordLanguage{"_galician_"} + + German = StopWordLanguage{"_german_"} + + Greek = StopWordLanguage{"_greek_"} + + Hindi = StopWordLanguage{"_hindi_"} + + Hungarian = StopWordLanguage{"_hungarian_"} + + Indonesian = StopWordLanguage{"_indonesian_"} + + Irish = StopWordLanguage{"_irish_"} + + Italian = StopWordLanguage{"_italian_"} + + Latvian = StopWordLanguage{"_latvian_"} + + Lithuanian = StopWordLanguage{"_lithuanian_"} + + Norwegian = StopWordLanguage{"_norwegian_"} + + Persian = StopWordLanguage{"_persian_"} + + Portuguese = StopWordLanguage{"_portuguese_"} + + Romanian = StopWordLanguage{"_romanian_"} + + Russian = StopWordLanguage{"_russian_"} + + Serbian = StopWordLanguage{"_serbian_"} + + Sorani = StopWordLanguage{"_sorani_"} + + Spanish = StopWordLanguage{"_spanish_"} + + Swedish = StopWordLanguage{"_swedish_"} + + Thai = StopWordLanguage{"_thai_"} + + Turkish = StopWordLanguage{"_turkish_"} + + None = StopWordLanguage{"_none_"} +) + +func (s StopWordLanguage) MarshalText() (text []byte, err error) { + return []byte(s.String()), nil +} + +func (s *StopWordLanguage) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "_arabic_": + *s = Arabic + case "_armenian_": + *s = Armenian + case "_basque_": + *s = Basque + case "_bengali_": + *s = Bengali + case "_brazilian_": + *s = Brazilian + case "_bulgarian_": + *s = Bulgarian + case "_catalan_": + *s = Catalan + case "_cjk_": + *s = Cjk + case "_czech_": + *s = Czech + case "_danish_": + *s = Danish + case "_dutch_": + *s = Dutch + case "_english_": + *s = English + case "_estonian_": + *s = Estonian + case "_finnish_": + *s = Finnish + case "_french_": + *s = French + case "_galician_": + *s = Galician + case "_german_": + *s = German + case "_greek_": + *s = Greek + case "_hindi_": + *s = Hindi + case "_hungarian_": + *s = Hungarian + case "_indonesian_": + *s = Indonesian + case "_irish_": + *s = Irish + case "_italian_": + *s = Italian + case "_latvian_": + *s = Latvian + case "_lithuanian_": + *s = Lithuanian + case "_norwegian_": + *s = Norwegian + case "_persian_": + *s = Persian + case "_portuguese_": + *s = Portuguese + case "_romanian_": + *s = Romanian + case "_russian_": + *s = Russian + case "_serbian_": + *s = Serbian + case "_sorani_": + *s = Sorani + case "_spanish_": + *s = Spanish + case "_swedish_": + *s = Swedish + case "_thai_": + *s = Thai + case "_turkish_": + *s = Turkish + case "_none_": + *s = None + default: + *s = StopWordLanguage{string(text)} + } + + return nil +} + +func (s StopWordLanguage) String() string { + return s.Name +} diff --git a/typedapi/types/enums/storagetype/storagetype.go b/typedapi/types/enums/storagetype/storagetype.go index 62d85a3368..8d202bcf6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package storagetype package storagetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L545-L573 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L549-L577 type StorageType struct { Name string } diff --git a/typedapi/types/enums/stringdistance/stringdistance.go b/typedapi/types/enums/stringdistance/stringdistance.go index 15bc11f96f..0ad095e395 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package stringdistance package stringdistance import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L473-L494 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L473-L494 type StringDistance struct { Name string } diff --git a/typedapi/types/enums/subobjects/subobjects.go b/typedapi/types/enums/subobjects/subobjects.go index 93ad37c676..59c01cf825 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package subobjects package subobjects import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/TypeMapping.ts#L63-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b2073a9922..aaf91c443d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package suggestmode package suggestmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L279-L292 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L281-L294 type SuggestMode struct { Name string } diff --git a/typedapi/types/enums/suggestsort/suggestsort.go b/typedapi/types/enums/suggestsort/suggestsort.go index 77d59ada65..06525614b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package suggestsort package suggestsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L496-L505 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L496-L505 type SuggestSort struct { Name string } diff --git a/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go b/typedapi/types/enums/syncjobtriggermethod/syncjobtriggermethod.go index f130d744f1..0f24d37c86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package syncjobtriggermethod package syncjobtriggermethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/SyncJob.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5c762f7bb3..03a8b5e982 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package syncjobtype package syncjobtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/SyncJob.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f62e3e43cf..331eec4569 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package syncstatus package syncstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L138-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 852e99c756..b56f06905c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package synonymformat package synonymformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L104-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L138-L141 type SynonymFormat struct { Name string } diff --git a/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go b/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go index 04fb870924..c5138457e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package syntheticsourcekeepenum package syntheticsourcekeepenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/Property.ts#L99-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/Property.ts#L100-L118 type SyntheticSourceKeepEnum struct { Name string } diff --git a/typedapi/types/enums/tasktype/tasktype.go b/typedapi/types/enums/tasktype/tasktype.go index d008691325..e8188fa3a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package tasktype package tasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/TaskType.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L20-L29 type TaskType struct { Name string } diff --git a/typedapi/types/enums/tasktypealibabacloudai/tasktypealibabacloudai.go b/typedapi/types/enums/tasktypealibabacloudai/tasktypealibabacloudai.go new file mode 100644 index 0000000000..db20f0d8a2 --- /dev/null +++ b/typedapi/types/enums/tasktypealibabacloudai/tasktypealibabacloudai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypealibabacloudai +package tasktypealibabacloudai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L36-L41 +type TaskTypeAlibabaCloudAI struct { + Name string +} + +var ( + Textembedding = TaskTypeAlibabaCloudAI{"text_embedding"} + + Rerank = TaskTypeAlibabaCloudAI{"rerank"} + + Completion = TaskTypeAlibabaCloudAI{"completion"} + + Sparseembedding = TaskTypeAlibabaCloudAI{"sparse_embedding"} +) + +func (t TaskTypeAlibabaCloudAI) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeAlibabaCloudAI) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + case "completion": + *t = Completion + case "sparse_embedding": + *t = Sparseembedding + default: + *t = TaskTypeAlibabaCloudAI{string(text)} + } + + return nil +} + +func (t TaskTypeAlibabaCloudAI) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeamazonbedrock/tasktypeamazonbedrock.go b/typedapi/types/enums/tasktypeamazonbedrock/tasktypeamazonbedrock.go new file mode 100644 index 0000000000..afcac11d1b --- /dev/null +++ b/typedapi/types/enums/tasktypeamazonbedrock/tasktypeamazonbedrock.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeamazonbedrock +package tasktypeamazonbedrock + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L43-L46 +type TaskTypeAmazonBedrock struct { + Name string +} + +var ( + Textembedding = TaskTypeAmazonBedrock{"text_embedding"} + + Completion = TaskTypeAmazonBedrock{"completion"} +) + +func (t TaskTypeAmazonBedrock) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeAmazonBedrock) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "completion": + *t = Completion + default: + *t = TaskTypeAmazonBedrock{string(text)} + } + + return nil +} + +func (t TaskTypeAmazonBedrock) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeanthropic/tasktypeanthropic.go b/typedapi/types/enums/tasktypeanthropic/tasktypeanthropic.go new file mode 100644 index 0000000000..893505820e --- /dev/null +++ b/typedapi/types/enums/tasktypeanthropic/tasktypeanthropic.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeanthropic +package tasktypeanthropic + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L48-L50 +type TaskTypeAnthropic struct { + Name string +} + +var ( + Completion = TaskTypeAnthropic{"completion"} +) + +func (t TaskTypeAnthropic) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeAnthropic) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *t = Completion + default: + *t = TaskTypeAnthropic{string(text)} + } + + return nil +} + +func (t TaskTypeAnthropic) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeazureaistudio/tasktypeazureaistudio.go b/typedapi/types/enums/tasktypeazureaistudio/tasktypeazureaistudio.go new file mode 100644 index 0000000000..a6ccd218e3 --- /dev/null +++ b/typedapi/types/enums/tasktypeazureaistudio/tasktypeazureaistudio.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeazureaistudio +package tasktypeazureaistudio + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L52-L55 +type TaskTypeAzureAIStudio struct { + Name string +} + +var ( + Textembedding = TaskTypeAzureAIStudio{"text_embedding"} + + Completion = TaskTypeAzureAIStudio{"completion"} +) + +func (t TaskTypeAzureAIStudio) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeAzureAIStudio) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "completion": + *t = Completion + default: + *t = TaskTypeAzureAIStudio{string(text)} + } + + return nil +} + +func (t TaskTypeAzureAIStudio) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeazureopenai/tasktypeazureopenai.go b/typedapi/types/enums/tasktypeazureopenai/tasktypeazureopenai.go new file mode 100644 index 0000000000..6b711c19b4 --- /dev/null +++ b/typedapi/types/enums/tasktypeazureopenai/tasktypeazureopenai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeazureopenai +package tasktypeazureopenai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L57-L60 +type TaskTypeAzureOpenAI struct { + Name string +} + +var ( + Textembedding = TaskTypeAzureOpenAI{"text_embedding"} + + Completion = TaskTypeAzureOpenAI{"completion"} +) + +func (t TaskTypeAzureOpenAI) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeAzureOpenAI) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "completion": + *t = Completion + default: + *t = TaskTypeAzureOpenAI{string(text)} + } + + return nil +} + +func (t TaskTypeAzureOpenAI) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypecohere/tasktypecohere.go b/typedapi/types/enums/tasktypecohere/tasktypecohere.go new file mode 100644 index 0000000000..0b749a53fb --- /dev/null +++ b/typedapi/types/enums/tasktypecohere/tasktypecohere.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypecohere +package tasktypecohere + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L62-L66 +type TaskTypeCohere struct { + Name string +} + +var ( + Textembedding = TaskTypeCohere{"text_embedding"} + + Rerank = TaskTypeCohere{"rerank"} + + Completion = TaskTypeCohere{"completion"} +) + +func (t TaskTypeCohere) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeCohere) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + case "completion": + *t = Completion + default: + *t = TaskTypeCohere{string(text)} + } + + return nil +} + +func (t TaskTypeCohere) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeelasticsearch/tasktypeelasticsearch.go b/typedapi/types/enums/tasktypeelasticsearch/tasktypeelasticsearch.go new file mode 100644 index 0000000000..4c7e5008dd --- /dev/null +++ b/typedapi/types/enums/tasktypeelasticsearch/tasktypeelasticsearch.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeelasticsearch +package tasktypeelasticsearch + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L68-L72 +type TaskTypeElasticsearch struct { + Name string +} + +var ( + Sparseembedding = TaskTypeElasticsearch{"sparse_embedding"} + + Textembedding = TaskTypeElasticsearch{"text_embedding"} + + Rerank = TaskTypeElasticsearch{"rerank"} +) + +func (t TaskTypeElasticsearch) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeElasticsearch) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "sparse_embedding": + *t = Sparseembedding + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + default: + *t = TaskTypeElasticsearch{string(text)} + } + + return nil +} + +func (t TaskTypeElasticsearch) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeelser/tasktypeelser.go b/typedapi/types/enums/tasktypeelser/tasktypeelser.go new file mode 100644 index 0000000000..1196582544 --- /dev/null +++ b/typedapi/types/enums/tasktypeelser/tasktypeelser.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeelser +package tasktypeelser + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L74-L76 +type TaskTypeELSER struct { + Name string +} + +var ( + Sparseembedding = TaskTypeELSER{"sparse_embedding"} +) + +func (t TaskTypeELSER) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeELSER) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "sparse_embedding": + *t = Sparseembedding + default: + *t = TaskTypeELSER{string(text)} + } + + return nil +} + +func (t TaskTypeELSER) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypegoogleaistudio/tasktypegoogleaistudio.go b/typedapi/types/enums/tasktypegoogleaistudio/tasktypegoogleaistudio.go new file mode 100644 index 0000000000..daa69ad6b9 --- /dev/null +++ b/typedapi/types/enums/tasktypegoogleaistudio/tasktypegoogleaistudio.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypegoogleaistudio +package tasktypegoogleaistudio + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L78-L81 +type TaskTypeGoogleAIStudio struct { + Name string +} + +var ( + Textembedding = TaskTypeGoogleAIStudio{"text_embedding"} + + Completion = TaskTypeGoogleAIStudio{"completion"} +) + +func (t TaskTypeGoogleAIStudio) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeGoogleAIStudio) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "completion": + *t = Completion + default: + *t = TaskTypeGoogleAIStudio{string(text)} + } + + return nil +} + +func (t TaskTypeGoogleAIStudio) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypegooglevertexai/tasktypegooglevertexai.go b/typedapi/types/enums/tasktypegooglevertexai/tasktypegooglevertexai.go new file mode 100644 index 0000000000..b7d1feb75c --- /dev/null +++ b/typedapi/types/enums/tasktypegooglevertexai/tasktypegooglevertexai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypegooglevertexai +package tasktypegooglevertexai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L83-L86 +type TaskTypeGoogleVertexAI struct { + Name string +} + +var ( + Textembedding = TaskTypeGoogleVertexAI{"text_embedding"} + + Rerank = TaskTypeGoogleVertexAI{"rerank"} +) + +func (t TaskTypeGoogleVertexAI) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeGoogleVertexAI) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + default: + *t = TaskTypeGoogleVertexAI{string(text)} + } + + return nil +} + +func (t TaskTypeGoogleVertexAI) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypehuggingface/tasktypehuggingface.go b/typedapi/types/enums/tasktypehuggingface/tasktypehuggingface.go new file mode 100644 index 0000000000..7d25a20782 --- /dev/null +++ b/typedapi/types/enums/tasktypehuggingface/tasktypehuggingface.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypehuggingface +package tasktypehuggingface + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L88-L90 +type TaskTypeHuggingFace struct { + Name string +} + +var ( + Textembedding = TaskTypeHuggingFace{"text_embedding"} +) + +func (t TaskTypeHuggingFace) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeHuggingFace) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + default: + *t = TaskTypeHuggingFace{string(text)} + } + + return nil +} + +func (t TaskTypeHuggingFace) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypejinaai/tasktypejinaai.go b/typedapi/types/enums/tasktypejinaai/tasktypejinaai.go new file mode 100644 index 0000000000..71b5072ac6 --- /dev/null +++ b/typedapi/types/enums/tasktypejinaai/tasktypejinaai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypejinaai +package tasktypejinaai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L31-L34 +type TaskTypeJinaAi struct { + Name string +} + +var ( + Textembedding = TaskTypeJinaAi{"text_embedding"} + + Rerank = TaskTypeJinaAi{"rerank"} +) + +func (t TaskTypeJinaAi) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeJinaAi) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + default: + *t = TaskTypeJinaAi{string(text)} + } + + return nil +} + +func (t TaskTypeJinaAi) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypemistral/tasktypemistral.go b/typedapi/types/enums/tasktypemistral/tasktypemistral.go new file mode 100644 index 0000000000..210b548222 --- /dev/null +++ b/typedapi/types/enums/tasktypemistral/tasktypemistral.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypemistral +package tasktypemistral + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L92-L94 +type TaskTypeMistral struct { + Name string +} + +var ( + Textembedding = TaskTypeMistral{"text_embedding"} +) + +func (t TaskTypeMistral) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeMistral) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + default: + *t = TaskTypeMistral{string(text)} + } + + return nil +} + +func (t TaskTypeMistral) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypeopenai/tasktypeopenai.go b/typedapi/types/enums/tasktypeopenai/tasktypeopenai.go new file mode 100644 index 0000000000..2aa7815169 --- /dev/null +++ b/typedapi/types/enums/tasktypeopenai/tasktypeopenai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypeopenai +package tasktypeopenai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L96-L100 +type TaskTypeOpenAI struct { + Name string +} + +var ( + Textembedding = TaskTypeOpenAI{"text_embedding"} + + Chatcompletion = TaskTypeOpenAI{"chat_completion"} + + Completion = TaskTypeOpenAI{"completion"} +) + +func (t TaskTypeOpenAI) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeOpenAI) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "chat_completion": + *t = Chatcompletion + case "completion": + *t = Completion + default: + *t = TaskTypeOpenAI{string(text)} + } + + return nil +} + +func (t TaskTypeOpenAI) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypevoyageai/tasktypevoyageai.go b/typedapi/types/enums/tasktypevoyageai/tasktypevoyageai.go new file mode 100644 index 0000000000..1c717c83a2 --- /dev/null +++ b/typedapi/types/enums/tasktypevoyageai/tasktypevoyageai.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypevoyageai +package tasktypevoyageai + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L102-L105 +type TaskTypeVoyageAI struct { + Name string +} + +var ( + Textembedding = TaskTypeVoyageAI{"text_embedding"} + + Rerank = TaskTypeVoyageAI{"rerank"} +) + +func (t TaskTypeVoyageAI) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeVoyageAI) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + case "rerank": + *t = Rerank + default: + *t = TaskTypeVoyageAI{string(text)} + } + + return nil +} + +func (t TaskTypeVoyageAI) String() string { + return t.Name +} diff --git a/typedapi/types/enums/tasktypewatsonx/tasktypewatsonx.go b/typedapi/types/enums/tasktypewatsonx/tasktypewatsonx.go new file mode 100644 index 0000000000..46c30cedab --- /dev/null +++ b/typedapi/types/enums/tasktypewatsonx/tasktypewatsonx.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/86f41834c7bb975159a38a73be8a9d930010d673 + +// Package tasktypewatsonx +package tasktypewatsonx + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/TaskType.ts#L107-L109 +type TaskTypeWatsonx struct { + Name string +} + +var ( + Textembedding = TaskTypeWatsonx{"text_embedding"} +) + +func (t TaskTypeWatsonx) MarshalText() (text []byte, err error) { + return []byte(t.String()), nil +} + +func (t *TaskTypeWatsonx) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *t = Textembedding + default: + *t = TaskTypeWatsonx{string(text)} + } + + return nil +} + +func (t TaskTypeWatsonx) String() string { + return t.Name +} diff --git a/typedapi/types/enums/templateformat/templateformat.go b/typedapi/types/enums/templateformat/templateformat.go index 20be383ded..8d63611111 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package templateformat package templateformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleTemplate.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dc7135702e..1d087e5801 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package termsaggregationcollectmode package termsaggregationcollectmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1056-L1065 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7b82bf4e16..c3f3baf3f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package termsaggregationexecutionhint package termsaggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1067-L1072 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 3077bc2a43..b7bd8d33b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package termvectoroption package termvectoroption import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/TermVectorOption.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 03c68934e5..23c178f6e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package textquerytype package textquerytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L559-L585 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L610-L636 type TextQueryType struct { Name string } diff --git a/typedapi/types/enums/threadtype/threadtype.go b/typedapi/types/enums/threadtype/threadtype.go index df149dd6af..49f267672f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package threadtype package threadtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L294-L300 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L296-L302 type ThreadType struct { Name string } diff --git a/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go b/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go index df8c0fadd8..391a0fd798 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package timeseriesmetrictype package timeseriesmetrictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a23750e969..dcc9527a7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package timeunit package timeunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1f8249f3c..2db057b10f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package tokenchar package tokenchar import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L59-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L60-L67 type TokenChar struct { Name string } diff --git a/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go b/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go index bbf294951f..e83ef1b85d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package tokenizationtruncate package tokenizationtruncate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L369-L373 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a86e7a9e22..12ee1b3577 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package totalhitsrelation package totalhitsrelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L100-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L100-L105 type TotalHitsRelation struct { Name string } diff --git a/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go b/typedapi/types/enums/trainedmodeltype/trainedmodeltype.go index b428adf43a..4c6119e217 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package trainedmodeltype package trainedmodeltype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L315-L329 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 63dba5a77f..52c1034a2e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package trainingpriority package trainingpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L365-L368 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d632872d73..1a15b46fef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package translogdurability package translogdurability import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L379-L394 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L381-L396 type TranslogDurability struct { Name string } diff --git a/typedapi/types/enums/ttesttype/ttesttype.go b/typedapi/types/enums/ttesttype/ttesttype.go index 1898fc6e59..ce2f689f65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package ttesttype package ttesttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L331-L344 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 92c3f779c9..95025a9b4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package type_ package type_ import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/_types/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 05040d812e..21171c7323 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package unassignedinformationreason package unassignedinformationreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L138-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 81ecb17f13..df575c7811 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package useragentproperty package useragentproperty import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L548-L554 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L548-L554 type UserAgentProperty struct { Name string } diff --git a/typedapi/types/enums/valuetype/valuetype.go b/typedapi/types/enums/valuetype/valuetype.go index 0bb6d704e7..6cf1f22703 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package valuetype package valuetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L436-L447 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4360255cdd..67e81bfe24 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package versiontype package versiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L100-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L100-L119 type VersionType struct { Name string } diff --git a/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go b/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go index 3b2a09ceef..80af237fc9 100644 --- a/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go +++ b/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package voyageaiservicetype package voyageaiservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1139-L1141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1212-L1214 type VoyageAIServiceType struct { Name string } diff --git a/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go index ec3bd29018..c112147d03 100644 --- a/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go +++ b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package voyageaitasktype package voyageaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1134-L1137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1207-L1210 type VoyageAITaskType struct { Name string } diff --git a/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go b/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go index 10310ee221..ae248848b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package waitforactiveshardoptions package waitforactiveshardoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L304-L308 type WaitForActiveShardOptions struct { Name string } diff --git a/typedapi/types/enums/waitforevents/waitforevents.go b/typedapi/types/enums/waitforevents/waitforevents.go index 3dadcde628..8195f28c10 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package waitforevents package waitforevents import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L308-L315 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L310-L317 type WaitForEvents struct { Name string } diff --git a/typedapi/types/enums/watchermetric/watchermetric.go b/typedapi/types/enums/watchermetric/watchermetric.go index 358edf35b5..37290be3e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package watchermetric package watchermetric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/types.ts#L63-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4cd184fb58..f4c4dcb2f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package watcherstate package watcherstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/types.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 index 48a7a84da1..a11397b013 100644 --- a/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go +++ b/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package watsonxservicetype package watsonxservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1186-L1188 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1259-L1261 type WatsonxServiceType struct { Name string } diff --git a/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go b/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go index ad938e4e33..db47048da9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package watsonxtasktype package watsonxtasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1182-L1184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1255-L1257 type WatsonxTaskType struct { Name string } diff --git a/typedapi/types/enums/xpackcategory/xpackcategory.go b/typedapi/types/enums/xpackcategory/xpackcategory.go index f1e6f46fc7..ffa67efa28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package xpackcategory package xpackcategory import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/XPackInfoRequest.ts#L58-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 254791b60a..5b3554d841 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Package zerotermsquery package zerotermsquery import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L587-L596 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L638-L647 type ZeroTermsQuery struct { Name string } diff --git a/typedapi/types/epochtimeunitmillis.go b/typedapi/types/epochtimeunitmillis.go index 9965c531f6..b47aeb7fae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EpochTimeUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 581c228e68..88c9475778 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EpochTimeUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 cf0ac28ab4..1e2243f48c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Eql type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L361-L364 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L361-L364 type Eql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -108,5 +108,3 @@ func NewEql() *Eql { return r } - -// false diff --git a/typedapi/types/eqlfeatures.go b/typedapi/types/eqlfeatures.go index fecff63473..d82e3462df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L96-L104 type EqlFeatures struct { Event uint `json:"event"` Join uint `json:"join"` @@ -39,5 +39,3 @@ func NewEqlFeatures() *EqlFeatures { return r } - -// false diff --git a/typedapi/types/eqlfeaturesjoin.go b/typedapi/types/eqlfeaturesjoin.go index 2a3fac17b0..d09acc872f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlFeaturesJoin type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L106-L112 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L106-L112 type EqlFeaturesJoin struct { JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"` JoinQueriesFour uint `json:"join_queries_four"` @@ -37,5 +37,3 @@ func NewEqlFeaturesJoin() *EqlFeaturesJoin { return r } - -// false diff --git a/typedapi/types/eqlfeatureskeys.go b/typedapi/types/eqlfeatureskeys.go index 1082526d25..57b774295f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlFeaturesKeys type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L114-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L114-L120 type EqlFeaturesKeys struct { JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"` JoinKeysFour uint `json:"join_keys_four"` @@ -37,5 +37,3 @@ func NewEqlFeaturesKeys() *EqlFeaturesKeys { return r } - -// false diff --git a/typedapi/types/eqlfeaturespipes.go b/typedapi/types/eqlfeaturespipes.go index f996dd72db..0d0d253f28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlFeaturesPipes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L122-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L122-L125 type EqlFeaturesPipes struct { PipeHead uint `json:"pipe_head"` PipeTail uint `json:"pipe_tail"` @@ -34,5 +34,3 @@ func NewEqlFeaturesPipes() *EqlFeaturesPipes { return r } - -// false diff --git a/typedapi/types/eqlfeaturessequences.go b/typedapi/types/eqlfeaturessequences.go index 62861f5eff..bb7cf8026a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlFeaturesSequences type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L127-L134 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L127-L134 type EqlFeaturesSequences struct { SequenceMaxspan uint `json:"sequence_maxspan"` SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"` @@ -38,5 +38,3 @@ func NewEqlFeaturesSequences() *EqlFeaturesSequences { return r } - -// false diff --git a/typedapi/types/eqlhits.go b/typedapi/types/eqlhits.go index 4e361a1511..5fffd9f8dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // EqlHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/_types/EqlHits.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -40,5 +40,3 @@ func NewEqlHits() *EqlHits { return r } - -// false diff --git a/typedapi/types/errorcause.go b/typedapi/types/errorcause.go index 777145ca4c..85b0d82f99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ErrorCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Errors.ts#L25-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Errors.ts#L25-L50 type ErrorCause struct { CausedBy *ErrorCause `json:"caused_by,omitempty"` Metadata map[string]json.RawMessage `json:"-"` @@ -173,5 +173,3 @@ func NewErrorCause() *ErrorCause { return r } - -// false diff --git a/typedapi/types/errorresponsebase.go b/typedapi/types/errorresponsebase.go index 6f4ed6facc..8d86c6e6fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ErrorResponseBase type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Base.ts#L127-L136 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Base.ts#L130-L139 type ErrorResponseBase struct { Error ErrorCause `json:"error"` Status int `json:"status"` @@ -84,5 +84,3 @@ func NewErrorResponseBase() *ErrorResponseBase { return r } - -// false diff --git a/typedapi/types/esqlclusterdetails.go b/typedapi/types/esqlclusterdetails.go index acd8b5c54a..82b4fe2528 100644 --- a/typedapi/types/esqlclusterdetails.go +++ b/typedapi/types/esqlclusterdetails.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,12 +33,13 @@ import ( // EsqlClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L65-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L75-L81 type EsqlClusterDetails struct { - Indices string `json:"indices"` - Shards_ *EsqlShardInfo `json:"_shards,omitempty"` - Status esqlclusterstatus.EsqlClusterStatus `json:"status"` - Took *int64 `json:"took,omitempty"` + Failures []EsqlShardFailure `json:"failures,omitempty"` + Indices string `json:"indices"` + Shards_ *EsqlShardInfo `json:"_shards,omitempty"` + Status esqlclusterstatus.EsqlClusterStatus `json:"status"` + Took *int64 `json:"took,omitempty"` } func (s *EsqlClusterDetails) UnmarshalJSON(data []byte) error { @@ -56,6 +57,11 @@ func (s *EsqlClusterDetails) UnmarshalJSON(data []byte) error { switch t { + case "failures": + if err := dec.Decode(&s.Failures); err != nil { + return fmt.Errorf("%s | %w", "Failures", err) + } + case "indices": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -94,5 +100,3 @@ func NewEsqlClusterDetails() *EsqlClusterDetails { return r } - -// false diff --git a/typedapi/types/esqlclusterinfo.go b/typedapi/types/esqlclusterinfo.go index 5eedb1ba1c..84a2d04a31 100644 --- a/typedapi/types/esqlclusterinfo.go +++ b/typedapi/types/esqlclusterinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EsqlClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L55-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L65-L73 type EsqlClusterInfo struct { Details map[string]EsqlClusterDetails `json:"details"` Failed int `json:"failed"` @@ -174,5 +174,3 @@ func NewEsqlClusterInfo() *EsqlClusterInfo { return r } - -// false diff --git a/typedapi/types/esqlcolumninfo.go b/typedapi/types/esqlcolumninfo.go index c1cdde84f9..b61373b3c2 100644 --- a/typedapi/types/esqlcolumninfo.go +++ b/typedapi/types/esqlcolumninfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EsqlColumnInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L60-L63 type EsqlColumnInfo struct { Name string `json:"name"` Type string `json:"type"` @@ -87,5 +87,3 @@ func NewEsqlColumnInfo() *EsqlColumnInfo { return r } - -// false diff --git a/typedapi/types/esqlshardfailure.go b/typedapi/types/esqlshardfailure.go index 1296a4ef10..ce16d860f0 100644 --- a/typedapi/types/esqlshardfailure.go +++ b/typedapi/types/esqlshardfailure.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,16 +26,17 @@ import ( "errors" "fmt" "io" + "strconv" ) // EsqlShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L88-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L98-L103 type EsqlShardFailure struct { - Index string `json:"index"` + Index *string `json:"index,omitempty"` Node *string `json:"node,omitempty"` Reason ErrorCause `json:"reason"` - Shard string `json:"shard"` + Shard int `json:"shard"` } func (s *EsqlShardFailure) UnmarshalJSON(data []byte) error { @@ -69,8 +70,19 @@ func (s *EsqlShardFailure) UnmarshalJSON(data []byte) error { } case "shard": - if err := dec.Decode(&s.Shard); err != nil { - return fmt.Errorf("%s | %w", "Shard", err) + + 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", "Shard", err) + } + s.Shard = value + case float64: + f := int(v) + s.Shard = f } } @@ -84,5 +96,3 @@ func NewEsqlShardFailure() *EsqlShardFailure { return r } - -// false diff --git a/typedapi/types/esqlshardinfo.go b/typedapi/types/esqlshardinfo.go index b44670547d..5736cada50 100644 --- a/typedapi/types/esqlshardinfo.go +++ b/typedapi/types/esqlshardinfo.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,12 @@ import ( // EsqlShardInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/EsqlResult.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/EsqlResult.ts#L91-L96 type EsqlShardInfo struct { - Failed *int `json:"failed,omitempty"` - Failures []EsqlShardFailure `json:"failures,omitempty"` - Skipped *int `json:"skipped,omitempty"` - Successful *int `json:"successful,omitempty"` - Total int `json:"total"` + Failed *int `json:"failed,omitempty"` + Skipped *int `json:"skipped,omitempty"` + Successful *int `json:"successful,omitempty"` + Total int `json:"total"` } func (s *EsqlShardInfo) UnmarshalJSON(data []byte) error { @@ -71,11 +70,6 @@ func (s *EsqlShardInfo) UnmarshalJSON(data []byte) error { s.Failed = &f } - case "failures": - if err := dec.Decode(&s.Failures); err != nil { - return fmt.Errorf("%s | %w", "Failures", err) - } - case "skipped": var tmp any @@ -135,5 +129,3 @@ func NewEsqlShardInfo() *EsqlShardInfo { return r } - -// false diff --git a/typedapi/types/estoniananalyzer.go b/typedapi/types/estoniananalyzer.go index 102cfbca4e..8e26a9e024 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // EstonianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L159-L163 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L159-L163 type EstonianAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *EstonianAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *EstonianAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewEstonianAnalyzer() *EstonianAnalyzer { return r } -// true - type EstonianAnalyzerVariant interface { EstonianAnalyzerCaster() *EstonianAnalyzer } @@ -121,3 +108,8 @@ type EstonianAnalyzerVariant interface { func (s *EstonianAnalyzer) EstonianAnalyzerCaster() *EstonianAnalyzer { return s } + +func (s *EstonianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/eventdatastream.go b/typedapi/types/eventdatastream.go index 7cdac5b95f..4e37c36ed0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // EventDataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 type EventDataStream struct { Name string `json:"name"` } @@ -66,5 +66,3 @@ func NewEventDataStream() *EventDataStream { return r } - -// false diff --git a/typedapi/types/ewmamodelsettings.go b/typedapi/types/ewmamodelsettings.go index 364f258d6f..118b96d16d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // EwmaModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/pipeline.ts#L293-L295 type EwmaModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` } @@ -79,8 +79,6 @@ func NewEwmaModelSettings() *EwmaModelSettings { return r } -// true - type EwmaModelSettingsVariant interface { EwmaModelSettingsCaster() *EwmaModelSettings } diff --git a/typedapi/types/ewmamovingaverageaggregation.go b/typedapi/types/ewmamovingaverageaggregation.go index 68eabc6856..85eed91558 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // EwmaMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L278-L281 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewEwmaMovingAverageAggregation() *EwmaMovingAverageAggregation { return r } -// true - type EwmaMovingAverageAggregationVariant interface { EwmaMovingAverageAggregationCaster() *EwmaMovingAverageAggregation } @@ -183,3 +181,8 @@ type EwmaMovingAverageAggregationVariant interface { func (s *EwmaMovingAverageAggregation) EwmaMovingAverageAggregationCaster() *EwmaMovingAverageAggregation { return s } + +func (s *EwmaMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation { + o := MovingAverageAggregation(s) + return &o +} diff --git a/typedapi/types/executeenrichpolicystatus.go b/typedapi/types/executeenrichpolicystatus.go index e8004658a5..982293fa4d 100644 --- a/typedapi/types/executeenrichpolicystatus.go +++ b/typedapi/types/executeenrichpolicystatus.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ExecuteEnrichPolicyStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/execute_policy/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/execute_policy/types.ts#L20-L23 type ExecuteEnrichPolicyStatus struct { Phase enrichpolicyphase.EnrichPolicyPhase `json:"phase"` Step *string `json:"step,omitempty"` @@ -82,5 +82,3 @@ func NewExecuteEnrichPolicyStatus() *ExecuteEnrichPolicyStatus { return r } - -// false diff --git a/typedapi/types/executingpolicy.go b/typedapi/types/executingpolicy.go index 2bdc2eebec..5b73fbe6b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ExecutingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/stats/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/stats/types.ts#L25-L28 type ExecutingPolicy struct { Name string `json:"name"` Task TaskInfo `json:"task"` @@ -72,5 +72,3 @@ func NewExecutingPolicy() *ExecutingPolicy { return r } - -// false diff --git a/typedapi/types/executionresult.go b/typedapi/types/executionresult.go index f4e9f40cb1..e0913f68e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ExecutionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Execution.ts#L60-L66 type ExecutionResult struct { Actions []ExecutionResultAction `json:"actions"` Condition ExecutionResultCondition `json:"condition"` @@ -90,5 +90,3 @@ func NewExecutionResult() *ExecutionResult { return r } - -// false diff --git a/typedapi/types/executionresultaction.go b/typedapi/types/executionresultaction.go index f56ad0784f..bea6079e10 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Execution.ts#L74-L86 type ExecutionResultAction struct { Email *EmailResult `json:"email,omitempty"` Error *ErrorCause `json:"error,omitempty"` @@ -137,5 +137,3 @@ func NewExecutionResultAction() *ExecutionResultAction { return r } - -// false diff --git a/typedapi/types/executionresultcondition.go b/typedapi/types/executionresultcondition.go index 60dd88ab84..4f60763276 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ExecutionResultCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Execution.ts#L68-L72 type ExecutionResultCondition struct { Met bool `json:"met"` Status actionstatusoptions.ActionStatusOptions `json:"status"` @@ -91,5 +91,3 @@ func NewExecutionResultCondition() *ExecutionResultCondition { return r } - -// false diff --git a/typedapi/types/executionresultinput.go b/typedapi/types/executionresultinput.go index 0b40c799d6..218e5049fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // ExecutionResultInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Execution.ts#L88-L92 type ExecutionResultInput struct { Payload map[string]json.RawMessage `json:"payload"` Status actionstatusoptions.ActionStatusOptions `json:"status"` @@ -44,5 +44,3 @@ func NewExecutionResultInput() *ExecutionResultInput { return r } - -// false diff --git a/typedapi/types/executionstate.go b/typedapi/types/executionstate.go index 2530a10b5e..f6f0862ae3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExecutionState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L114-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L114-L118 type ExecutionState struct { Reason *string `json:"reason,omitempty"` Successful bool `json:"successful"` @@ -96,8 +96,6 @@ func NewExecutionState() *ExecutionState { return r } -// true - type ExecutionStateVariant interface { ExecutionStateCaster() *ExecutionState } diff --git a/typedapi/types/executionthreadpool.go b/typedapi/types/executionthreadpool.go index 13da62b2de..25758f6651 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExecutionThreadPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Execution.ts#L94-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -96,5 +96,3 @@ func NewExecutionThreadPool() *ExecutionThreadPool { return r } - -// false diff --git a/typedapi/types/existsquery.go b/typedapi/types/existsquery.go index 7fe4adb570..30d8841b24 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExistsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L38-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -104,8 +104,6 @@ func NewExistsQuery() *ExistsQuery { return r } -// true - type ExistsQueryVariant interface { ExistsQueryCaster() *ExistsQuery } diff --git a/typedapi/types/expandwildcards.go b/typedapi/types/expandwildcards.go index fe2e619fe6..225b3b2436 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // ExpandWildcards type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L214-L214 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L214-L214 type ExpandWildcards []expandwildcard.ExpandWildcard type ExpandWildcardsVariant interface { diff --git a/typedapi/types/explainanalyzetoken.go b/typedapi/types/explainanalyzetoken.go index 3a8c5141e1..ea824b4c60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExplainAnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L52-L67 type ExplainAnalyzeToken struct { Bytes string `json:"bytes"` EndOffset int64 `json:"end_offset"` @@ -240,5 +240,3 @@ func NewExplainAnalyzeToken() *ExplainAnalyzeToken { return r } - -// false diff --git a/typedapi/types/explanation.go b/typedapi/types/explanation.go index e03752b563..85ab32db81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Explanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/explain/types.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/explain/types.ts#L22-L26 type Explanation struct { Description string `json:"description"` Details []ExplanationDetail `json:"details"` @@ -97,5 +97,3 @@ func NewExplanation() *Explanation { return r } - -// false diff --git a/typedapi/types/explanationdetail.go b/typedapi/types/explanationdetail.go index 7e6545df59..84eb9a471a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExplanationDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/explain/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/explain/types.ts#L28-L32 type ExplanationDetail struct { Description string `json:"description"` Details []ExplanationDetail `json:"details,omitempty"` @@ -97,5 +97,3 @@ func NewExplanationDetail() *ExplanationDetail { return r } - -// false diff --git a/typedapi/types/explorecontrols.go b/typedapi/types/explorecontrols.go index 68dc7d5abd..d0d67a911c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExploreControls type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/ExploreControls.ts#L24-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -124,8 +124,6 @@ func NewExploreControls() *ExploreControls { return r } -// true - type ExploreControlsVariant interface { ExploreControlsCaster() *ExploreControls } diff --git a/typedapi/types/exponentialaveragecalculationcontext.go b/typedapi/types/exponentialaveragecalculationcontext.go index c53f3feff9..4d6ae5db91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ExponentialAverageCalculationContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L204-L208 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Datafeed.ts#L204-L208 type ExponentialAverageCalculationContext struct { IncrementalMetricValueMs Float64 `json:"incremental_metric_value_ms"` LatestTimestamp *int64 `json:"latest_timestamp,omitempty"` @@ -78,5 +78,3 @@ func NewExponentialAverageCalculationContext() *ExponentialAverageCalculationCon return r } - -// false diff --git a/typedapi/types/extendedboundsdouble.go b/typedapi/types/extendedboundsdouble.go index e4fa53f156..48657063e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExtendedBoundsdouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsdouble struct { // Max Maximum value for the bound. Max *Float64 `json:"max,omitempty"` @@ -98,8 +98,6 @@ func NewExtendedBoundsdouble() *ExtendedBoundsdouble { return r } -// true - type ExtendedBoundsdoubleVariant interface { ExtendedBoundsdoubleCaster() *ExtendedBoundsdouble } diff --git a/typedapi/types/extendedboundsfielddatemath.go b/typedapi/types/extendedboundsfielddatemath.go index cd43e14a53..4199367ec4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ExtendedBoundsFieldDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsFieldDateMath struct { // Max Maximum value for the bound. Max FieldDateMath `json:"max,omitempty"` @@ -75,8 +75,6 @@ func NewExtendedBoundsFieldDateMath() *ExtendedBoundsFieldDateMath { return r } -// true - type ExtendedBoundsFieldDateMathVariant interface { ExtendedBoundsFieldDateMathCaster() *ExtendedBoundsFieldDateMath } diff --git a/typedapi/types/extendedmemorystats.go b/typedapi/types/extendedmemorystats.go index 99417983c4..2bc491c706 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExtendedMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L658-L667 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L660-L669 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 @@ -255,5 +255,3 @@ func NewExtendedMemoryStats() *ExtendedMemoryStats { return r } - -// false diff --git a/typedapi/types/extendedstatsaggregate.go b/typedapi/types/extendedstatsaggregate.go index a7b4cd967b..647461d1dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L299-L320 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L299-L320 type ExtendedStatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` @@ -289,5 +289,3 @@ func NewExtendedStatsAggregate() *ExtendedStatsAggregate { return r } - -// false diff --git a/typedapi/types/extendedstatsaggregation.go b/typedapi/types/extendedstatsaggregation.go index 74dbfd92c7..76b3d501ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L101-L106 type ExtendedStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -114,8 +114,6 @@ func NewExtendedStatsAggregation() *ExtendedStatsAggregation { return r } -// true - type ExtendedStatsAggregationVariant interface { ExtendedStatsAggregationCaster() *ExtendedStatsAggregation } diff --git a/typedapi/types/extendedstatsbucketaggregate.go b/typedapi/types/extendedstatsbucketaggregate.go index 2eb723690a..44e85276ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L322-L323 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L322-L323 type ExtendedStatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` @@ -289,5 +289,3 @@ func NewExtendedStatsBucketAggregate() *ExtendedStatsBucketAggregate { return r } - -// false diff --git a/typedapi/types/extendedstatsbucketaggregation.go b/typedapi/types/extendedstatsbucketaggregation.go index c208926937..2adbcfdbc2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ExtendedStatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -112,8 +112,6 @@ func NewExtendedStatsBucketAggregation() *ExtendedStatsBucketAggregation { return r } -// true - type ExtendedStatsBucketAggregationVariant interface { ExtendedStatsBucketAggregationCaster() *ExtendedStatsBucketAggregation } diff --git a/typedapi/types/failprocessor.go b/typedapi/types/failprocessor.go index 6d4ff84ada..1ef17128f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FailProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L889-L895 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L889-L895 type FailProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -137,8 +137,6 @@ func NewFailProcessor() *FailProcessor { return r } -// true - type FailProcessorVariant interface { FailProcessorCaster() *FailProcessor } diff --git a/typedapi/types/failurestore.go b/typedapi/types/failurestore.go index 33f8331149..b8edd292bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FailureStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/DataStream.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/DataStream.ts#L39-L43 type FailureStore struct { Enabled bool `json:"enabled"` Indices []DataStreamIndex `json:"indices"` @@ -97,5 +97,3 @@ func NewFailureStore() *FailureStore { return r } - -// false diff --git a/typedapi/types/feature.go b/typedapi/types/feature.go index d544a43ea4..7468c982f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Feature type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/features/_types/Feature.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/features/_types/Feature.ts#L20-L23 type Feature struct { Description string `json:"description"` Name string `json:"name"` @@ -87,5 +87,3 @@ func NewFeature() *Feature { return r } - -// false diff --git a/typedapi/types/featureenabled.go b/typedapi/types/featureenabled.go index 98790c1a70..4a4012161e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FeatureEnabled type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L215-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L215-L217 type FeatureEnabled struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewFeatureEnabled() *FeatureEnabled { return r } -// true - type FeatureEnabledVariant interface { FeatureEnabledCaster() *FeatureEnabled } diff --git a/typedapi/types/featureextractor.go b/typedapi/types/featureextractor.go index e72d05f335..d9b56333a6 100644 --- a/typedapi/types/featureextractor.go +++ b/typedapi/types/featureextractor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // FeatureExtractor type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L93-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L93-L96 type FeatureExtractor QueryFeatureExtractor type FeatureExtractorVariant interface { diff --git a/typedapi/types/features.go b/typedapi/types/features.go index 80335b9037..847d8af6e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ import ( // Features type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get/IndicesGetRequest.ts#L103-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get/IndicesGetRequest.ts#L103-L103 type Features []feature.Feature diff --git a/typedapi/types/featuretoggle.go b/typedapi/types/featuretoggle.go index 0d8329c6d5..4aa6aa520c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FeatureToggle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L37-L39 type FeatureToggle struct { Enabled bool `json:"enabled"` } @@ -76,5 +76,3 @@ func NewFeatureToggle() *FeatureToggle { return r } - -// false diff --git a/typedapi/types/fetchprofile.go b/typedapi/types/fetchprofile.go index e7dc7a1c25..7c2342329c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FetchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L230-L237 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L230-L237 type FetchProfile struct { Breakdown FetchProfileBreakdown `json:"breakdown"` Children []FetchProfile `json:"children,omitempty"` @@ -111,5 +111,3 @@ func NewFetchProfile() *FetchProfile { return r } - -// false diff --git a/typedapi/types/fetchprofilebreakdown.go b/typedapi/types/fetchprofilebreakdown.go index 65445fc324..8b87a481f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FetchProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L239-L248 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L239-L248 type FetchProfileBreakdown struct { LoadSource *int `json:"load_source,omitempty"` LoadSourceCount *int `json:"load_source_count,omitempty"` @@ -197,5 +197,3 @@ func NewFetchProfileBreakdown() *FetchProfileBreakdown { return r } - -// false diff --git a/typedapi/types/fetchprofiledebug.go b/typedapi/types/fetchprofiledebug.go index 6a54339099..9c1e61f3f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FetchProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L250-L253 type FetchProfileDebug struct { FastPath *int `json:"fast_path,omitempty"` StoredFields []string `json:"stored_fields,omitempty"` @@ -84,5 +84,3 @@ func NewFetchProfileDebug() *FetchProfileDebug { return r } - -// false diff --git a/typedapi/types/fieldaliasproperty.go b/typedapi/types/fieldaliasproperty.go index aa42262cdd..c9a7609012 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // FieldAliasProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L64-L67 type FieldAliasProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -569,6 +575,12 @@ func (s *FieldAliasProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -803,8 +815,6 @@ func NewFieldAliasProperty() *FieldAliasProperty { return r } -// true - type FieldAliasPropertyVariant interface { FieldAliasPropertyCaster() *FieldAliasProperty } @@ -812,3 +822,8 @@ type FieldAliasPropertyVariant interface { func (s *FieldAliasProperty) FieldAliasPropertyCaster() *FieldAliasProperty { return s } + +func (s *FieldAliasProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/fieldandformat.go b/typedapi/types/fieldandformat.go index acfff3790e..6092ad8c9a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldAndFormat type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L535-L549 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -111,8 +111,6 @@ func NewFieldAndFormat() *FieldAndFormat { return r } -// true - type FieldAndFormatVariant interface { FieldAndFormatCaster() *FieldAndFormat } diff --git a/typedapi/types/fieldcapability.go b/typedapi/types/fieldcapability.go index c8b46c02d1..e2c98f5460 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // FieldCapability type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/field_caps/types.ts#L23-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -231,5 +231,3 @@ func NewFieldCapability() *FieldCapability { return r } - -// false diff --git a/typedapi/types/fieldcollapse.go b/typedapi/types/fieldcollapse.go index fc6fcd9da5..986474b1fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldCollapse type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/FieldCollapse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -112,8 +112,6 @@ func NewFieldCollapse() *FieldCollapse { return r } -// true - type FieldCollapseVariant interface { FieldCollapseCaster() *FieldCollapse } diff --git a/typedapi/types/fielddatafrequencyfilter.go b/typedapi/types/fielddatafrequencyfilter.go index 47c5be902e..e834b0116f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FielddataFrequencyFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 type FielddataFrequencyFilter struct { Max Float64 `json:"max"` Min Float64 `json:"min"` @@ -113,8 +113,6 @@ func NewFielddataFrequencyFilter() *FielddataFrequencyFilter { return r } -// true - type FielddataFrequencyFilterVariant interface { FielddataFrequencyFilterCaster() *FielddataFrequencyFilter } diff --git a/typedapi/types/fielddatarecord.go b/typedapi/types/fielddatarecord.go index d25bb7ea6d..f37ab2a0d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FielddataRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/fielddata/types.ts#L20-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/fielddata/types.ts#L20-L48 type FielddataRecord struct { // Field field name Field *string `json:"field,omitempty"` @@ -145,5 +145,3 @@ func NewFielddataRecord() *FielddataRecord { return r } - -// false diff --git a/typedapi/types/fielddatastats.go b/typedapi/types/fielddatastats.go index 6d5d68d90b..1f57fea517 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,11 @@ import ( // FielddataStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L114-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L123-L129 type FielddataStats struct { Evictions *int64 `json:"evictions,omitempty"` Fields map[string]FieldMemoryUsage `json:"fields,omitempty"` + GlobalOrdinals GlobalOrdinalsStats `json:"global_ordinals"` MemorySize ByteSize `json:"memory_size,omitempty"` MemorySizeInBytes int64 `json:"memory_size_in_bytes"` } @@ -77,6 +78,11 @@ func (s *FielddataStats) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Fields", err) } + case "global_ordinals": + if err := dec.Decode(&s.GlobalOrdinals); err != nil { + return fmt.Errorf("%s | %w", "GlobalOrdinals", err) + } + case "memory_size": if err := dec.Decode(&s.MemorySize); err != nil { return fmt.Errorf("%s | %w", "MemorySize", err) @@ -110,5 +116,3 @@ func NewFielddataStats() *FielddataStats { return r } - -// false diff --git a/typedapi/types/fielddatemath.go b/typedapi/types/fielddatemath.go index 0915511fad..ee6cf046a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // Float64 // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L309-L316 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 87e43c8663..9f0dec328c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FieldLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L436-L453 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/abstractions.ts#L436-L453 type FieldLookup struct { // Id `id` of the document. Id string `json:"id"` @@ -89,8 +89,6 @@ func NewFieldLookup() *FieldLookup { return r } -// true - type FieldLookupVariant interface { FieldLookupCaster() *FieldLookup } diff --git a/typedapi/types/fieldmapping.go b/typedapi/types/fieldmapping.go index 2688abbd1b..ef1bc9f935 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L24-L27 type FieldMapping struct { FullName string `json:"full_name"` Mapping map[string]Property `json:"mapping"` @@ -206,6 +206,12 @@ func (s *FieldMapping) UnmarshalJSON(data []byte) error { return fmt.Errorf("Mapping | %w", err) } s.Mapping[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Mapping | %w", err) + } + s.Mapping[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -408,5 +414,3 @@ func NewFieldMapping() *FieldMapping { return r } - -// false diff --git a/typedapi/types/fieldmemoryusage.go b/typedapi/types/fieldmemoryusage.go index a029b315b5..b937c705fc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L143-L146 type FieldMemoryUsage struct { MemorySize ByteSize `json:"memory_size,omitempty"` MemorySizeInBytes int64 `json:"memory_size_in_bytes"` @@ -83,5 +83,3 @@ func NewFieldMemoryUsage() *FieldMemoryUsage { return r } - -// false diff --git a/typedapi/types/fieldmetric.go b/typedapi/types/fieldmetric.go index 5d36f3082e..7952aed917 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // FieldMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Metric.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -78,8 +78,6 @@ func NewFieldMetric() *FieldMetric { return r } -// true - type FieldMetricVariant interface { FieldMetricCaster() *FieldMetric } diff --git a/typedapi/types/fieldnamesfield.go b/typedapi/types/fieldnamesfield.go index 7a654285a2..e2e9be9bed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldNamesField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L42-L44 type FieldNamesField struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewFieldNamesField() *FieldNamesField { return r } -// true - type FieldNamesFieldVariant interface { FieldNamesFieldCaster() *FieldNamesField } diff --git a/typedapi/types/fields.go b/typedapi/types/fields.go index 6d091014b5..db97c9086b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Fields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L137-L137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L137-L137 type Fields []string type FieldsVariant interface { diff --git a/typedapi/types/fieldsecurity.go b/typedapi/types/fieldsecurity.go index a88e28df1f..4e8661e9c8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FieldSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/FieldSecurity.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/FieldSecurity.ts#L22-L25 type FieldSecurity struct { Except []string `json:"except,omitempty"` Grant []string `json:"grant,omitempty"` @@ -95,8 +95,6 @@ func NewFieldSecurity() *FieldSecurity { return r } -// true - type FieldSecurityVariant interface { FieldSecurityCaster() *FieldSecurity } diff --git a/typedapi/types/fieldsizeusage.go b/typedapi/types/fieldsizeusage.go index 3907f8ac3e..271c14bb5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldSizeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L95-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L95-L98 type FieldSizeUsage struct { Size ByteSize `json:"size,omitempty"` SizeInBytes int64 `json:"size_in_bytes"` @@ -83,5 +83,3 @@ func NewFieldSizeUsage() *FieldSizeUsage { return r } - -// false diff --git a/typedapi/types/fieldsort.go b/typedapi/types/fieldsort.go index b56f09bc2f..67917b8f2c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // FieldSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L43-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L43-L52 type FieldSort struct { Format *string `json:"format,omitempty"` Missing Missing `json:"missing,omitempty"` @@ -121,8 +121,6 @@ func NewFieldSort() *FieldSort { return r } -// true - type FieldSortVariant interface { FieldSortCaster() *FieldSort } diff --git a/typedapi/types/fieldstat.go b/typedapi/types/fieldstat.go index 80617bdee7..81f39cb2bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/_types/Structure.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/text_structure/_types/Structure.ts#L23-L33 type FieldStat struct { Cardinality int `json:"cardinality"` Count int `json:"count"` @@ -195,5 +195,3 @@ func NewFieldStat() *FieldStat { return r } - -// false diff --git a/typedapi/types/fieldstatistics.go b/typedapi/types/fieldstatistics.go index d498b2a899..24f5271624 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/types.ts#L28-L32 type FieldStatistics struct { DocCount int `json:"doc_count"` SumDocFreq int64 `json:"sum_doc_freq"` @@ -110,5 +110,3 @@ func NewFieldStatistics() *FieldStatistics { return r } - -// false diff --git a/typedapi/types/fieldsuggester.go b/typedapi/types/fieldsuggester.go index 077ea4ede8..7088620fd8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L110-L143 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L110-L143 type FieldSuggester struct { AdditionalFieldSuggesterProperty map[string]json.RawMessage `json:"-"` // Completion Provides auto-complete/search-as-you-type functionality. @@ -172,8 +172,6 @@ func NewFieldSuggester() *FieldSuggester { return r } -// true - type FieldSuggesterVariant interface { FieldSuggesterCaster() *FieldSuggester } diff --git a/typedapi/types/fieldsummary.go b/typedapi/types/fieldsummary.go index d3049e4953..87efcc4cdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // FieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67 type FieldSummary struct { Any uint `json:"any"` DocValues uint `json:"doc_values"` @@ -40,5 +40,3 @@ func NewFieldSummary() *FieldSummary { return r } - -// false diff --git a/typedapi/types/fieldtypes.go b/typedapi/types/fieldtypes.go index 3e24f5e8a8..d4c84383fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L136-L167 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L211-L254 type FieldTypes struct { // Count The number of occurrences of the field type in selected nodes. Count int `json:"count"` @@ -39,17 +39,23 @@ type FieldTypes struct { IndexCount int `json:"index_count"` // IndexedVectorCount For dense_vector field types, number of indexed vector types in selected // nodes. - IndexedVectorCount *int64 `json:"indexed_vector_count,omitempty"` + IndexedVectorCount *int `json:"indexed_vector_count,omitempty"` // IndexedVectorDimMax For dense_vector field types, the maximum dimension of all indexed vector // types in selected nodes. - IndexedVectorDimMax *int64 `json:"indexed_vector_dim_max,omitempty"` + IndexedVectorDimMax *int `json:"indexed_vector_dim_max,omitempty"` // IndexedVectorDimMin For dense_vector field types, the minimum dimension of all indexed vector // types in selected nodes. - IndexedVectorDimMin *int64 `json:"indexed_vector_dim_min,omitempty"` + IndexedVectorDimMin *int `json:"indexed_vector_dim_min,omitempty"` // Name The name for the field type in selected nodes. Name string `json:"name"` // ScriptCount The number of fields that declare a script. ScriptCount *int `json:"script_count,omitempty"` + // VectorElementTypeCount For dense_vector field types, count of mappings by element type + VectorElementTypeCount map[string]int `json:"vector_element_type_count,omitempty"` + // VectorIndexTypeCount For dense_vector field types, count of mappings by index type + VectorIndexTypeCount map[string]int `json:"vector_index_type_count,omitempty"` + // VectorSimilarityTypeCount For dense_vector field types, count of mappings by similarity + VectorSimilarityTypeCount map[string]int `json:"vector_similarity_type_count,omitempty"` } func (s *FieldTypes) UnmarshalJSON(data []byte) error { @@ -100,47 +106,50 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error { } case "indexed_vector_count": + var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.ParseInt(v, 10, 64) + value, err := strconv.Atoi(v) if err != nil { return fmt.Errorf("%s | %w", "IndexedVectorCount", err) } s.IndexedVectorCount = &value case float64: - f := int64(v) + f := int(v) s.IndexedVectorCount = &f } case "indexed_vector_dim_max": + var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.ParseInt(v, 10, 64) + value, err := strconv.Atoi(v) if err != nil { return fmt.Errorf("%s | %w", "IndexedVectorDimMax", err) } s.IndexedVectorDimMax = &value case float64: - f := int64(v) + f := int(v) s.IndexedVectorDimMax = &f } case "indexed_vector_dim_min": + var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.ParseInt(v, 10, 64) + value, err := strconv.Atoi(v) if err != nil { return fmt.Errorf("%s | %w", "IndexedVectorDimMin", err) } s.IndexedVectorDimMin = &value case float64: - f := int64(v) + f := int(v) s.IndexedVectorDimMin = &f } @@ -165,6 +174,30 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error { s.ScriptCount = &f } + case "vector_element_type_count": + if s.VectorElementTypeCount == nil { + s.VectorElementTypeCount = make(map[string]int, 0) + } + if err := dec.Decode(&s.VectorElementTypeCount); err != nil { + return fmt.Errorf("%s | %w", "VectorElementTypeCount", err) + } + + case "vector_index_type_count": + if s.VectorIndexTypeCount == nil { + s.VectorIndexTypeCount = make(map[string]int, 0) + } + if err := dec.Decode(&s.VectorIndexTypeCount); err != nil { + return fmt.Errorf("%s | %w", "VectorIndexTypeCount", err) + } + + case "vector_similarity_type_count": + if s.VectorSimilarityTypeCount == nil { + s.VectorSimilarityTypeCount = make(map[string]int, 0) + } + if err := dec.Decode(&s.VectorSimilarityTypeCount); err != nil { + return fmt.Errorf("%s | %w", "VectorSimilarityTypeCount", err) + } + } } return nil @@ -172,9 +205,11 @@ func (s *FieldTypes) UnmarshalJSON(data []byte) error { // NewFieldTypes returns a FieldTypes. func NewFieldTypes() *FieldTypes { - r := &FieldTypes{} + r := &FieldTypes{ + VectorElementTypeCount: make(map[string]int), + VectorIndexTypeCount: make(map[string]int), + VectorSimilarityTypeCount: make(map[string]int), + } return r } - -// false diff --git a/typedapi/types/fieldtypesmappings.go b/typedapi/types/fieldtypesmappings.go index 4f73225df1..84751f671c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,21 +31,23 @@ import ( // FieldTypesMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L109-L134 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L180-L209 type FieldTypesMappings struct { // FieldTypes Contains statistics about field data types used in selected nodes. FieldTypes []FieldTypes `json:"field_types"` // RuntimeFieldTypes Contains statistics about runtime field data types used in selected nodes. - RuntimeFieldTypes []ClusterRuntimeFieldTypes `json:"runtime_field_types,omitempty"` + RuntimeFieldTypes []ClusterRuntimeFieldTypes `json:"runtime_field_types"` + // SourceModes Source mode usage count. + SourceModes map[string]int `json:"source_modes"` // TotalDeduplicatedFieldCount Total number of fields in all non-system indices, accounting for mapping // deduplication. - TotalDeduplicatedFieldCount *int `json:"total_deduplicated_field_count,omitempty"` + TotalDeduplicatedFieldCount *int64 `json:"total_deduplicated_field_count,omitempty"` // TotalDeduplicatedMappingSize Total size of all mappings after deduplication and compression. TotalDeduplicatedMappingSize ByteSize `json:"total_deduplicated_mapping_size,omitempty"` // TotalDeduplicatedMappingSizeInBytes Total size of all mappings, in bytes, after deduplication and compression. TotalDeduplicatedMappingSizeInBytes *int64 `json:"total_deduplicated_mapping_size_in_bytes,omitempty"` // TotalFieldCount Total number of fields in all non-system indices. - TotalFieldCount *int `json:"total_field_count,omitempty"` + TotalFieldCount *int64 `json:"total_field_count,omitempty"` } func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error { @@ -73,19 +75,26 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "RuntimeFieldTypes", err) } - case "total_deduplicated_field_count": + case "source_modes": + if s.SourceModes == nil { + s.SourceModes = make(map[string]int, 0) + } + if err := dec.Decode(&s.SourceModes); err != nil { + return fmt.Errorf("%s | %w", "SourceModes", err) + } + case "total_deduplicated_field_count": var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.Atoi(v) + value, err := strconv.ParseInt(v, 10, 64) if err != nil { return fmt.Errorf("%s | %w", "TotalDeduplicatedFieldCount", err) } s.TotalDeduplicatedFieldCount = &value case float64: - f := int(v) + f := int64(v) s.TotalDeduplicatedFieldCount = &f } @@ -110,18 +119,17 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error { } case "total_field_count": - var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.Atoi(v) + value, err := strconv.ParseInt(v, 10, 64) if err != nil { return fmt.Errorf("%s | %w", "TotalFieldCount", err) } s.TotalFieldCount = &value case float64: - f := int(v) + f := int64(v) s.TotalFieldCount = &f } @@ -132,9 +140,9 @@ func (s *FieldTypesMappings) UnmarshalJSON(data []byte) error { // NewFieldTypesMappings returns a FieldTypesMappings. func NewFieldTypesMappings() *FieldTypesMappings { - r := &FieldTypesMappings{} + r := &FieldTypesMappings{ + SourceModes: make(map[string]int), + } return r } - -// false diff --git a/typedapi/types/fieldvalue.go b/typedapi/types/fieldvalue.go index b812e8b53a..1de0560431 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L25-L31 type FieldValue any type FieldValueVariant interface { diff --git a/typedapi/types/fieldvaluefactorscorefunction.go b/typedapi/types/fieldvaluefactorscorefunction.go index 721c2f2ab2..53e7bab1c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // FieldValueFactorScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L149-L168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -116,8 +116,6 @@ func NewFieldValueFactorScoreFunction() *FieldValueFactorScoreFunction { return r } -// true - type FieldValueFactorScoreFunctionVariant interface { FieldValueFactorScoreFunctionCaster() *FieldValueFactorScoreFunction } diff --git a/typedapi/types/filecountsnapshotstats.go b/typedapi/types/filecountsnapshotstats.go index c224e064bf..de6888c4c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FileCountSnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 type FileCountSnapshotStats struct { FileCount int `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` @@ -94,5 +94,3 @@ func NewFileCountSnapshotStats() *FileCountSnapshotStats { return r } - -// false diff --git a/typedapi/types/filedetails.go b/typedapi/types/filedetails.go index d6142c6020..eff42549e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FileDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L50-L54 type FileDetails struct { Length int64 `json:"length"` Name string `json:"name"` @@ -106,5 +106,3 @@ func NewFileDetails() *FileDetails { return r } - -// false diff --git a/typedapi/types/filesettingsindicator.go b/typedapi/types/filesettingsindicator.go index ecd0bfec66..bb7d358066 100644 --- a/typedapi/types/filesettingsindicator.go +++ b/typedapi/types/filesettingsindicator.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // FileSettingsIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L207-L211 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L208-L212 type FileSettingsIndicator struct { Details *FileSettingsIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewFileSettingsIndicator() *FileSettingsIndicator { return r } - -// false diff --git a/typedapi/types/filesettingsindicatordetails.go b/typedapi/types/filesettingsindicatordetails.go index 2b7c953360..69c4875356 100644 --- a/typedapi/types/filesettingsindicatordetails.go +++ b/typedapi/types/filesettingsindicatordetails.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FileSettingsIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L213-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L214-L217 type FileSettingsIndicatorDetails struct { FailureStreak int64 `json:"failure_streak"` MostRecentFailure string `json:"most_recent_failure"` @@ -90,5 +90,3 @@ func NewFileSettingsIndicatorDetails() *FileSettingsIndicatorDetails { return r } - -// false diff --git a/typedapi/types/filesystem.go b/typedapi/types/filesystem.go index 1442aab2d5..5604a03e8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L769-L787 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L771-L789 type FileSystem struct { // Data List of all file stores. Data []DataPathStats `json:"data,omitempty"` @@ -100,5 +100,3 @@ func NewFileSystem() *FileSystem { return r } - -// false diff --git a/typedapi/types/filesystemtotal.go b/typedapi/types/filesystemtotal.go index 3df69165ad..dd06b9c648 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FileSystemTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L828-L857 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L830-L859 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 @@ -163,5 +163,3 @@ func NewFileSystemTotal() *FileSystemTotal { return r } - -// false diff --git a/typedapi/types/fillmaskinferenceoptions.go b/typedapi/types/fillmaskinferenceoptions.go index a0e103bf33..a06d23ec83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L284-L299 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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). @@ -130,8 +130,6 @@ func NewFillMaskInferenceOptions() *FillMaskInferenceOptions { return r } -// true - type FillMaskInferenceOptionsVariant interface { FillMaskInferenceOptionsCaster() *FillMaskInferenceOptions } diff --git a/typedapi/types/fillmaskinferenceupdateoptions.go b/typedapi/types/fillmaskinferenceupdateoptions.go index bf540c7887..d8e8c4004d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L430-L437 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -102,8 +102,6 @@ func NewFillMaskInferenceUpdateOptions() *FillMaskInferenceUpdateOptions { return r } -// true - type FillMaskInferenceUpdateOptionsVariant interface { FillMaskInferenceUpdateOptionsCaster() *FillMaskInferenceUpdateOptions } diff --git a/typedapi/types/filteraggregate.go b/typedapi/types/filteraggregate.go index 1b7f982c3e..d0f81562dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // FilterAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L552-L556 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L552-L556 type FilterAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewFilterAggregate() *FilterAggregate { return r } - -// false diff --git a/typedapi/types/filteringadvancedsnippet.go b/typedapi/types/filteringadvancedsnippet.go index d7c8520325..9aa6492d9d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FilteringAdvancedSnippet type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L192-L196 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L192-L196 type FilteringAdvancedSnippet struct { CreatedAt DateTime `json:"created_at,omitempty"` UpdatedAt DateTime `json:"updated_at,omitempty"` @@ -79,8 +79,6 @@ func NewFilteringAdvancedSnippet() *FilteringAdvancedSnippet { return r } -// true - type FilteringAdvancedSnippetVariant interface { FilteringAdvancedSnippetCaster() *FilteringAdvancedSnippet } diff --git a/typedapi/types/filteringconfig.go b/typedapi/types/filteringconfig.go index a2963c2ec8..a027c94b2e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FilteringConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L209-L213 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L209-L213 type FilteringConfig struct { Active FilteringRules `json:"active"` Domain *string `json:"domain,omitempty"` @@ -87,8 +87,6 @@ func NewFilteringConfig() *FilteringConfig { return r } -// true - type FilteringConfigVariant interface { FilteringConfigCaster() *FilteringConfig } diff --git a/typedapi/types/filteringrule.go b/typedapi/types/filteringrule.go index cdc55c4734..59da1ea92f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // FilteringRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L170-L179 type FilteringRule struct { CreatedAt DateTime `json:"created_at,omitempty"` Field string `json:"field"` @@ -131,8 +131,6 @@ func NewFilteringRule() *FilteringRule { return r } -// true - type FilteringRuleVariant interface { FilteringRuleCaster() *FilteringRule } diff --git a/typedapi/types/filteringrules.go b/typedapi/types/filteringrules.go index 64a654d290..96cdd99bc2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // FilteringRules type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L203-L207 type FilteringRules struct { AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"` Rules []FilteringRule `json:"rules"` @@ -36,8 +36,6 @@ func NewFilteringRules() *FilteringRules { return r } -// true - type FilteringRulesVariant interface { FilteringRulesCaster() *FilteringRules } diff --git a/typedapi/types/filteringrulesvalidation.go b/typedapi/types/filteringrulesvalidation.go index 9425d995d3..6e7cd3ffe5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // FilteringRulesValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L198-L201 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L198-L201 type FilteringRulesValidation struct { Errors []FilteringValidation `json:"errors"` State filteringvalidationstate.FilteringValidationState `json:"state"` @@ -39,8 +39,6 @@ func NewFilteringRulesValidation() *FilteringRulesValidation { return r } -// true - type FilteringRulesValidationVariant interface { FilteringRulesValidationCaster() *FilteringRulesValidation } diff --git a/typedapi/types/filteringvalidation.go b/typedapi/types/filteringvalidation.go index 2365b1bf6c..1e7bfb3498 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // FilteringValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L181-L184 type FilteringValidation struct { Ids []string `json:"ids"` Messages []string `json:"messages"` @@ -35,8 +35,6 @@ func NewFilteringValidation() *FilteringValidation { return r } -// true - type FilteringValidationVariant interface { FilteringValidationCaster() *FilteringValidation } diff --git a/typedapi/types/filterref.go b/typedapi/types/filterref.go index d72c00b3f8..12ce0cb571 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // FilterRef type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Filter.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Filter.ts#L31-L41 type FilterRef struct { // FilterId The identifier for the filter. FilterId string `json:"filter_id"` @@ -78,8 +78,6 @@ func NewFilterRef() *FilterRef { return r } -// true - type FilterRefVariant interface { FilterRefCaster() *FilterRef } diff --git a/typedapi/types/filtersaggregate.go b/typedapi/types/filtersaggregate.go index ed795f6b06..fdaee272f5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FiltersAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L639-L643 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L639-L643 type FiltersAggregate struct { Buckets BucketsFiltersBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewFiltersAggregate() *FiltersAggregate { return r } - -// false diff --git a/typedapi/types/filtersaggregation.go b/typedapi/types/filtersaggregation.go index a16af941bc..ba09e34b51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L374-L394 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L374-L394 type FiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsQuery `json:"filters,omitempty"` @@ -133,8 +133,6 @@ func NewFiltersAggregation() *FiltersAggregation { return r } -// true - type FiltersAggregationVariant interface { FiltersAggregationCaster() *FiltersAggregation } diff --git a/typedapi/types/filtersbucket.go b/typedapi/types/filtersbucket.go index 3e55e18179..2d29dce67d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,10 +32,11 @@ import ( // FiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L645-L645 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L645-L647 type FiltersBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` + Key *string `json:"key,omitempty"` } func (s *FiltersBucket) UnmarshalJSON(data []byte) error { @@ -68,6 +69,18 @@ func (s *FiltersBucket) UnmarshalJSON(data []byte) error { s.DocCount = f } + case "key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Key", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Key = &o + default: if value, ok := t.(string); ok { @@ -630,5 +643,3 @@ func NewFiltersBucket() *FiltersBucket { return r } - -// false diff --git a/typedapi/types/fingerprintanalyzer.go b/typedapi/types/fingerprintanalyzer.go index a1b6e357c2..798bb3db21 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FingerprintAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L37-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L37-L64 type FingerprintAnalyzer struct { // MaxOutputSize The maximum token size to emit. Tokens larger than this size will be // discarded. @@ -43,7 +43,7 @@ type FingerprintAnalyzer struct { // Stopwords A pre-defined stop words list like `_english_` or an array containing a list // of stop words. // Defaults to `_none_`. - Stopwords []string `json:"stopwords,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` // StopwordsPath The path to a file containing stop words. StopwordsPath *string `json:"stopwords_path,omitempty"` Type string `json:"type,omitempty"` @@ -94,19 +94,8 @@ func (s *FingerprintAnalyzer) UnmarshalJSON(data []byte) error { s.Separator = &o case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -160,8 +149,6 @@ func NewFingerprintAnalyzer() *FingerprintAnalyzer { return r } -// true - type FingerprintAnalyzerVariant interface { FingerprintAnalyzerCaster() *FingerprintAnalyzer } @@ -169,3 +156,8 @@ type FingerprintAnalyzerVariant interface { func (s *FingerprintAnalyzer) FingerprintAnalyzerCaster() *FingerprintAnalyzer { return s } + +func (s *FingerprintAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/fingerprintprocessor.go b/typedapi/types/fingerprintprocessor.go index 7434ee735d..aac275e762 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // FingerprintProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L905-L933 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L905-L933 type FingerprintProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -190,8 +190,6 @@ func NewFingerprintProcessor() *FingerprintProcessor { return r } -// true - type FingerprintProcessorVariant interface { FingerprintProcessorCaster() *FingerprintProcessor } diff --git a/typedapi/types/fingerprinttokenfilter.go b/typedapi/types/fingerprinttokenfilter.go index 391a410c6c..f762eed5ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,16 @@ import ( // FingerprintTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L195-L199 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L260-L266 type FingerprintTokenFilter struct { - MaxOutputSize *int `json:"max_output_size,omitempty"` - Separator *string `json:"separator,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // MaxOutputSize Maximum character length, including whitespace, of the output token. Defaults + // to `255`. Concatenated tokens longer than this will result in no token + // output. + MaxOutputSize *int `json:"max_output_size,omitempty"` + // Separator Character to use to concatenate the token stream input. Defaults to a space. + Separator *string `json:"separator,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *FingerprintTokenFilter) UnmarshalJSON(data []byte) error { @@ -119,8 +123,6 @@ func NewFingerprintTokenFilter() *FingerprintTokenFilter { return r } -// true - type FingerprintTokenFilterVariant interface { FingerprintTokenFilterCaster() *FingerprintTokenFilter } @@ -128,3 +130,8 @@ type FingerprintTokenFilterVariant interface { func (s *FingerprintTokenFilter) FingerprintTokenFilterCaster() *FingerprintTokenFilter { return s } + +func (s *FingerprintTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/finnishanalyzer.go b/typedapi/types/finnishanalyzer.go index 19f73ee0b5..001811ee53 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // FinnishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L165-L170 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L165-L170 type FinnishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *FinnishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *FinnishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewFinnishAnalyzer() *FinnishAnalyzer { return r } -// true - type FinnishAnalyzerVariant interface { FinnishAnalyzerCaster() *FinnishAnalyzer } @@ -128,3 +115,8 @@ type FinnishAnalyzerVariant interface { func (s *FinnishAnalyzer) FinnishAnalyzerCaster() *FinnishAnalyzer { return s } + +func (s *FinnishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/flattened.go b/typedapi/types/flattened.go index ea5238ba7f..4d46ad3b57 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Flattened type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L366-L368 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L366-L368 type Flattened struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -108,5 +108,3 @@ func NewFlattened() *Flattened { return r } - -// false diff --git a/typedapi/types/flattenedproperty.go b/typedapi/types/flattenedproperty.go index e1f73d20be..a84ea1c7e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // FlattenedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/complex.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/complex.ts#L26-L38 type FlattenedProperty struct { Boost *Float64 `json:"boost,omitempty"` DepthLimit *int `json:"depth_limit,omitempty"` @@ -53,6 +53,7 @@ type FlattenedProperty struct { Similarity *string `json:"similarity,omitempty"` SplitQueriesOnWhitespace *bool `json:"split_queries_on_whitespace,omitempty"` SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` + TimeSeriesDimensions []string `json:"time_series_dimensions,omitempty"` Type string `json:"type,omitempty"` } @@ -278,6 +279,12 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -664,6 +671,12 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -884,6 +897,11 @@ func (s *FlattenedProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) } + case "time_series_dimensions": + if err := dec.Decode(&s.TimeSeriesDimensions); err != nil { + return fmt.Errorf("%s | %w", "TimeSeriesDimensions", err) + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -913,6 +931,7 @@ func (s FlattenedProperty) MarshalJSON() ([]byte, error) { Similarity: s.Similarity, SplitQueriesOnWhitespace: s.SplitQueriesOnWhitespace, SyntheticSourceKeep: s.SyntheticSourceKeep, + TimeSeriesDimensions: s.TimeSeriesDimensions, Type: s.Type, } @@ -932,8 +951,6 @@ func NewFlattenedProperty() *FlattenedProperty { return r } -// true - type FlattenedPropertyVariant interface { FlattenedPropertyCaster() *FlattenedProperty } @@ -941,3 +958,8 @@ type FlattenedPropertyVariant interface { func (s *FlattenedProperty) FlattenedPropertyCaster() *FlattenedProperty { return s } + +func (s *FlattenedProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/flattengraphtokenfilter.go b/typedapi/types/flattengraphtokenfilter.go new file mode 100644 index 0000000000..7c1bc2981c --- /dev/null +++ b/typedapi/types/flattengraphtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// FlattenGraphTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L486-L488 +type FlattenGraphTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *FlattenGraphTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s FlattenGraphTokenFilter) MarshalJSON() ([]byte, error) { + type innerFlattenGraphTokenFilter FlattenGraphTokenFilter + tmp := innerFlattenGraphTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "flatten_graph" + + return json.Marshal(tmp) +} + +// NewFlattenGraphTokenFilter returns a FlattenGraphTokenFilter. +func NewFlattenGraphTokenFilter() *FlattenGraphTokenFilter { + r := &FlattenGraphTokenFilter{} + + return r +} + +type FlattenGraphTokenFilterVariant interface { + FlattenGraphTokenFilterCaster() *FlattenGraphTokenFilter +} + +func (s *FlattenGraphTokenFilter) FlattenGraphTokenFilterCaster() *FlattenGraphTokenFilter { + return s +} + +func (s *FlattenGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/floatnumberproperty.go b/typedapi/types/floatnumberproperty.go index d18c9147e8..ffa1f6be81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // FloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L155-L158 type FloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -690,6 +696,12 @@ func (s *FloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -973,8 +985,6 @@ func NewFloatNumberProperty() *FloatNumberProperty { return r } -// true - type FloatNumberPropertyVariant interface { FloatNumberPropertyCaster() *FloatNumberProperty } @@ -982,3 +992,8 @@ type FloatNumberPropertyVariant interface { func (s *FloatNumberProperty) FloatNumberPropertyCaster() *FloatNumberProperty { return s } + +func (s *FloatNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/floatrangeproperty.go b/typedapi/types/floatrangeproperty.go index ca8c6efcf0..b242556f48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // FloatRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L38-L40 type FloatRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -274,6 +274,12 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -643,6 +649,12 @@ func (s *FloatRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -896,8 +908,6 @@ func NewFloatRangeProperty() *FloatRangeProperty { return r } -// true - type FloatRangePropertyVariant interface { FloatRangePropertyCaster() *FloatRangeProperty } @@ -905,3 +915,8 @@ type FloatRangePropertyVariant interface { func (s *FloatRangeProperty) FloatRangePropertyCaster() *FloatRangeProperty { return s } + +func (s *FloatRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/flushstats.go b/typedapi/types/flushstats.go index 6e8f70bf21..b58b504919 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FlushStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L126-L131 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L148-L153 type FlushStats struct { Periodic int64 `json:"periodic"` Total int64 `json:"total"` @@ -105,5 +105,3 @@ func NewFlushStats() *FlushStats { return r } - -// false diff --git a/typedapi/types/followerindex.go b/typedapi/types/followerindex.go index fe1fa0afd2..db1a9c27bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // FollowerIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow_info/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/follow_info/types.ts#L24-L35 type FollowerIndex struct { // FollowerIndex The name of the follower index. FollowerIndex string `json:"follower_index"` @@ -98,5 +98,3 @@ func NewFollowerIndex() *FollowerIndex { return r } - -// false diff --git a/typedapi/types/followerindexparameters.go b/typedapi/types/followerindexparameters.go index 56a50103a2..51a2801b0a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FollowerIndexParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/follow_info/types.ts#L42-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -198,5 +198,3 @@ func NewFollowerIndexParameters() *FollowerIndexParameters { return r } - -// false diff --git a/typedapi/types/followindexstats.go b/typedapi/types/followindexstats.go index 4cb8179998..d821c857de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FollowIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/_types/FollowIndexStats.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/_types/FollowIndexStats.ts#L30-L35 type FollowIndexStats struct { // Index The name of the follower index. Index string `json:"index"` @@ -74,5 +74,3 @@ func NewFollowIndexStats() *FollowIndexStats { return r } - -// false diff --git a/typedapi/types/followstats.go b/typedapi/types/followstats.go index 3a8daa8a58..60077871d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // FollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/stats/types.ts.ts#L49-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/stats/types.ts.ts#L49-L51 type FollowStats struct { Indices []FollowIndexStats `json:"indices"` } @@ -33,5 +33,3 @@ func NewFollowStats() *FollowStats { return r } - -// false diff --git a/typedapi/types/forcemergeaction.go b/typedapi/types/forcemergeaction.go index 48230ea169..85b5139674 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ForceMergeAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L123-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L123-L126 type ForceMergeAction struct { IndexCodec *string `json:"index_codec,omitempty"` MaxNumSegments int `json:"max_num_segments"` @@ -92,8 +92,6 @@ func NewForceMergeAction() *ForceMergeAction { return r } -// true - type ForceMergeActionVariant interface { ForceMergeActionCaster() *ForceMergeAction } diff --git a/typedapi/types/foreachprocessor.go b/typedapi/types/foreachprocessor.go index d31289b26b..e495168369 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ForeachProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L935-L949 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L935-L949 type ForeachProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -153,8 +153,6 @@ func NewForeachProcessor() *ForeachProcessor { return r } -// true - type ForeachProcessorVariant interface { ForeachProcessorCaster() *ForeachProcessor } diff --git a/typedapi/types/foundstatus.go b/typedapi/types/foundstatus.go index 4f768c68d8..0da48cfa71 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FoundStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/delete_privileges/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/delete_privileges/types.ts#L20-L22 type FoundStatus struct { Found bool `json:"found"` } @@ -76,5 +76,3 @@ func NewFoundStatus() *FoundStatus { return r } - -// false diff --git a/typedapi/types/frenchanalyzer.go b/typedapi/types/frenchanalyzer.go index 1f5078e7c8..60df17c67e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // FrenchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L172-L177 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L172-L177 type FrenchAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *FrenchAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *FrenchAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewFrenchAnalyzer() *FrenchAnalyzer { return r } -// true - type FrenchAnalyzerVariant interface { FrenchAnalyzerCaster() *FrenchAnalyzer } @@ -128,3 +115,8 @@ type FrenchAnalyzerVariant interface { func (s *FrenchAnalyzer) FrenchAnalyzerCaster() *FrenchAnalyzer { return s } + +func (s *FrenchAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/frenchstemtokenfilter.go b/typedapi/types/frenchstemtokenfilter.go new file mode 100644 index 0000000000..3fd6e7ce2f --- /dev/null +++ b/typedapi/types/frenchstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// FrenchStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L555-L557 +type FrenchStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *FrenchStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s FrenchStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerFrenchStemTokenFilter FrenchStemTokenFilter + tmp := innerFrenchStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "french_stem" + + return json.Marshal(tmp) +} + +// NewFrenchStemTokenFilter returns a FrenchStemTokenFilter. +func NewFrenchStemTokenFilter() *FrenchStemTokenFilter { + r := &FrenchStemTokenFilter{} + + return r +} + +type FrenchStemTokenFilterVariant interface { + FrenchStemTokenFilterCaster() *FrenchStemTokenFilter +} + +func (s *FrenchStemTokenFilter) FrenchStemTokenFilterCaster() *FrenchStemTokenFilter { + return s +} + +func (s *FrenchStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/frequencyencodingpreprocessor.go b/typedapi/types/frequencyencodingpreprocessor.go index 24a1ea46a4..be404c0f53 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FrequencyEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L38-L42 type FrequencyEncodingPreprocessor struct { FeatureName string `json:"feature_name"` Field string `json:"field"` @@ -99,8 +99,6 @@ func NewFrequencyEncodingPreprocessor() *FrequencyEncodingPreprocessor { return r } -// true - type FrequencyEncodingPreprocessorVariant interface { FrequencyEncodingPreprocessorCaster() *FrequencyEncodingPreprocessor } diff --git a/typedapi/types/frequentitemsetsaggregate.go b/typedapi/types/frequentitemsetsaggregate.go index cdc251df7c..285f8b65f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L722-L723 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L724-L725 type FrequentItemSetsAggregate struct { Buckets BucketsFrequentItemSetsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewFrequentItemSetsAggregate() *FrequentItemSetsAggregate { return r } - -// false diff --git a/typedapi/types/frequentitemsetsaggregation.go b/typedapi/types/frequentitemsetsaggregation.go index 1eb4a72209..fd00e4e235 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FrequentItemSetsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1241-L1268 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1241-L1268 type FrequentItemSetsAggregation struct { // Fields Fields to analyze. Fields []FrequentItemSetsField `json:"fields"` @@ -130,8 +130,6 @@ func NewFrequentItemSetsAggregation() *FrequentItemSetsAggregation { return r } -// true - type FrequentItemSetsAggregationVariant interface { FrequentItemSetsAggregationCaster() *FrequentItemSetsAggregation } diff --git a/typedapi/types/frequentitemsetsbucket.go b/typedapi/types/frequentitemsetsbucket.go index a0c8b14adc..8401c7be3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // FrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L725-L728 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L727-L730 type FrequentItemSetsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -657,5 +657,3 @@ func NewFrequentItemSetsBucket() *FrequentItemSetsBucket { return r } - -// false diff --git a/typedapi/types/frequentitemsetsfield.go b/typedapi/types/frequentitemsetsfield.go index f804e6790b..b6165fd07f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1227-L1239 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1227-L1239 type FrequentItemSetsField struct { // Exclude Values to exclude. // Can be regular expression strings or arrays of strings of exact terms. @@ -125,8 +125,6 @@ func NewFrequentItemSetsField() *FrequentItemSetsField { return r } -// true - type FrequentItemSetsFieldVariant interface { FrequentItemSetsFieldCaster() *FrequentItemSetsField } diff --git a/typedapi/types/functionscore.go b/typedapi/types/functionscore.go index a7dae826b2..2caf0fe935 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FunctionScore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L226-L266 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -209,8 +209,6 @@ func NewFunctionScore() *FunctionScore { return r } -// true - type FunctionScoreVariant interface { FunctionScoreCaster() *FunctionScore } diff --git a/typedapi/types/functionscorequery.go b/typedapi/types/functionscorequery.go index 01de50eb96..f1a4968dcb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // FunctionScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L105-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -170,8 +170,6 @@ func NewFunctionScoreQuery() *FunctionScoreQuery { return r } -// true - type FunctionScoreQueryVariant interface { FunctionScoreQueryCaster() *FunctionScoreQuery } diff --git a/typedapi/types/fuzziness.go b/typedapi/types/fuzziness.go index 19b0bdf212..18b6e6b993 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L130-L131 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L130-L131 type Fuzziness any type FuzzinessVariant interface { diff --git a/typedapi/types/fuzzyquery.go b/typedapi/types/fuzzyquery.go index ac42a3ef08..fb8b0883e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // FuzzyQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L48-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -190,8 +190,6 @@ func NewFuzzyQuery() *FuzzyQuery { return r } -// true - type FuzzyQueryVariant interface { FuzzyQueryCaster() *FuzzyQuery } diff --git a/typedapi/types/galiciananalyzer.go b/typedapi/types/galiciananalyzer.go index a3008e5a5f..5aae51177b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // GalicianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L179-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L179-L184 type GalicianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *GalicianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *GalicianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewGalicianAnalyzer() *GalicianAnalyzer { return r } -// true - type GalicianAnalyzerVariant interface { GalicianAnalyzerCaster() *GalicianAnalyzer } @@ -128,3 +115,8 @@ type GalicianAnalyzerVariant interface { func (s *GalicianAnalyzer) GalicianAnalyzerCaster() *GalicianAnalyzer { return s } + +func (s *GalicianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/garbagecollector.go b/typedapi/types/garbagecollector.go index 3e20ef3b7e..049fff6825 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // GarbageCollector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L994-L999 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1001-L1006 type GarbageCollector struct { // Collectors Contains statistics about JVM garbage collectors for the node. Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"` @@ -36,5 +36,3 @@ func NewGarbageCollector() *GarbageCollector { return r } - -// false diff --git a/typedapi/types/garbagecollectortotal.go b/typedapi/types/garbagecollectortotal.go index 9e79f1b982..f75af5c7d3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GarbageCollectorTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1001-L1014 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1008-L1021 type GarbageCollectorTotal struct { // CollectionCount Total number of JVM garbage collectors that collect objects. CollectionCount *int64 `json:"collection_count,omitempty"` @@ -109,5 +109,3 @@ func NewGarbageCollectorTotal() *GarbageCollectorTotal { return r } - -// false diff --git a/typedapi/types/gcsrepository.go b/typedapi/types/gcsrepository.go index c707300a0a..422a812073 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GcsRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L52-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L52-L62 type GcsRepository struct { // Settings The repository settings. Settings GcsRepositorySettings `json:"settings"` @@ -95,8 +95,6 @@ func NewGcsRepository() *GcsRepository { return r } -// true - type GcsRepositoryVariant interface { GcsRepositoryCaster() *GcsRepository } @@ -104,3 +102,8 @@ type GcsRepositoryVariant interface { func (s *GcsRepository) GcsRepositoryCaster() *GcsRepository { return s } + +func (s *GcsRepository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/gcsrepositorysettings.go b/typedapi/types/gcsrepositorysettings.go index 686eeefd5b..a92d904678 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GcsRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L198-L235 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L198-L235 type GcsRepositorySettings struct { // ApplicationName The name used by the client when it uses the Google Cloud Storage service. ApplicationName *string `json:"application_name,omitempty"` @@ -208,8 +208,6 @@ func NewGcsRepositorySettings() *GcsRepositorySettings { return r } -// true - type GcsRepositorySettingsVariant interface { GcsRepositorySettingsCaster() *GcsRepositorySettings } diff --git a/typedapi/types/geoboundingboxquery.go b/typedapi/types/geoboundingboxquery.go index ad77b3cec1..0e2790a37c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // GeoBoundingBoxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L35-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -178,8 +178,6 @@ func NewGeoBoundingBoxQuery() *GeoBoundingBoxQuery { return r } -// true - type GeoBoundingBoxQueryVariant interface { GeoBoundingBoxQueryCaster() *GeoBoundingBoxQuery } diff --git a/typedapi/types/geobounds.go b/typedapi/types/geobounds.go index a6efc6f099..7b7043da7b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ package types // TopRightBottomLeftGeoBounds // WktGeoBounds // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L135-L148 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7c055ee291..fd18299324 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoBoundsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L327-L333 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L327-L333 type GeoBoundsAggregate struct { Bounds GeoBounds `json:"bounds,omitempty"` Meta Metadata `json:"meta,omitempty"` @@ -130,5 +130,3 @@ func NewGeoBoundsAggregate() *GeoBoundsAggregate { return r } - -// false diff --git a/typedapi/types/geoboundsaggregation.go b/typedapi/types/geoboundsaggregation.go index 57853859dd..9a73fadb5b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoBoundsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L108-L117 type GeoBoundsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -100,8 +100,6 @@ func NewGeoBoundsAggregation() *GeoBoundsAggregation { return r } -// true - type GeoBoundsAggregationVariant interface { GeoBoundsAggregationCaster() *GeoBoundsAggregation } diff --git a/typedapi/types/geocentroidaggregate.go b/typedapi/types/geocentroidaggregate.go index 91f0864752..5ffd6c956a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L335-L342 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L335-L342 type GeoCentroidAggregate struct { Count int64 `json:"count"` Location GeoLocation `json:"location,omitempty"` @@ -129,5 +129,3 @@ func NewGeoCentroidAggregate() *GeoCentroidAggregate { return r } - -// false diff --git a/typedapi/types/geocentroidaggregation.go b/typedapi/types/geocentroidaggregation.go index eaddfc1653..4fe41144ab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L119-L122 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L119-L122 type GeoCentroidAggregation struct { Count *int64 `json:"count,omitempty"` // Field The field on which to run the aggregation. @@ -145,8 +145,6 @@ func NewGeoCentroidAggregation() *GeoCentroidAggregation { return r } -// true - type GeoCentroidAggregationVariant interface { GeoCentroidAggregationCaster() *GeoCentroidAggregation } diff --git a/typedapi/types/geodecayfunction.go b/typedapi/types/geodecayfunction.go index acc32818e9..a44c0fbca2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // GeoDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L210-L213 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -75,8 +75,6 @@ func NewGeoDecayFunction() *GeoDecayFunction { return r } -// true - type GeoDecayFunctionVariant interface { GeoDecayFunctionCaster() *GeoDecayFunction } @@ -84,3 +82,8 @@ type GeoDecayFunctionVariant interface { func (s *GeoDecayFunction) GeoDecayFunctionCaster() *GeoDecayFunction { return s } + +func (s *GeoDecayFunction) DecayFunctionCaster() *DecayFunction { + o := DecayFunction(s) + return &o +} diff --git a/typedapi/types/geodistanceaggregate.go b/typedapi/types/geodistanceaggregate.go index 96b01f8962..f102f64856 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoDistanceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L617-L622 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L617-L622 type GeoDistanceAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewGeoDistanceAggregate() *GeoDistanceAggregate { return r } - -// false diff --git a/typedapi/types/geodistanceaggregation.go b/typedapi/types/geodistanceaggregation.go index a5729d62ca..955b66272c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // GeoDistanceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L396-L419 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L396-L419 type GeoDistanceAggregation struct { // DistanceType The distance calculation type. DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` @@ -139,8 +139,6 @@ func NewGeoDistanceAggregation() *GeoDistanceAggregation { return r } -// true - type GeoDistanceAggregationVariant interface { GeoDistanceAggregationCaster() *GeoDistanceAggregation } diff --git a/typedapi/types/geodistancefeaturequery.go b/typedapi/types/geodistancefeaturequery.go index b2833edb03..d254f7022d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L66-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -172,8 +172,6 @@ func NewGeoDistanceFeatureQuery() *GeoDistanceFeatureQuery { return r } -// true - type GeoDistanceFeatureQueryVariant interface { GeoDistanceFeatureQueryCaster() *GeoDistanceFeatureQuery } @@ -181,3 +179,8 @@ type GeoDistanceFeatureQueryVariant interface { func (s *GeoDistanceFeatureQuery) GeoDistanceFeatureQueryCaster() *GeoDistanceFeatureQuery { return s } + +func (s *GeoDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery { + o := DistanceFeatureQuery(s) + return &o +} diff --git a/typedapi/types/geodistancequery.go b/typedapi/types/geodistancequery.go index 72de6e9157..40c7edf602 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // GeoDistanceQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L64-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -189,8 +189,6 @@ func NewGeoDistanceQuery() *GeoDistanceQuery { return r } -// true - type GeoDistanceQueryVariant interface { GeoDistanceQueryCaster() *GeoDistanceQuery } diff --git a/typedapi/types/geodistancesort.go b/typedapi/types/geodistancesort.go index f248cd19eb..68bba4dda2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // GeoDistanceSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L58-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L58-L70 type GeoDistanceSort struct { DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` GeoDistanceSort map[string][]GeoLocation `json:"-"` @@ -167,8 +167,6 @@ func NewGeoDistanceSort() *GeoDistanceSort { return r } -// true - type GeoDistanceSortVariant interface { GeoDistanceSortCaster() *GeoDistanceSort } diff --git a/typedapi/types/geogridprocessor.go b/typedapi/types/geogridprocessor.go index 340c78aae5..00b88f51ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // GeoGridProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L389-L430 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L389-L430 type GeoGridProcessor struct { // ChildrenField If specified and children tiles exist, save those tile addresses to this // field as an array of strings. @@ -209,8 +209,6 @@ func NewGeoGridProcessor() *GeoGridProcessor { return r } -// true - type GeoGridProcessorVariant interface { GeoGridProcessorCaster() *GeoGridProcessor } diff --git a/typedapi/types/geogridquery.go b/typedapi/types/geogridquery.go index 2043934d4d..95fff0d43e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoGridQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -40,9 +40,9 @@ type GeoGridQuery struct { // A boost value between 0 and 1.0 decreases the relevance score. // A value greater than 1.0 increases the relevance score. Boost *float32 `json:"boost,omitempty"` - Geogrid *string `json:"geogrid,omitempty"` Geohash *string `json:"geohash,omitempty"` Geohex *string `json:"geohex,omitempty"` + Geotile *string `json:"geotile,omitempty"` QueryName_ *string `json:"_name,omitempty"` } @@ -77,11 +77,6 @@ func (s *GeoGridQuery) UnmarshalJSON(data []byte) error { s.Boost = &f } - case "geogrid": - if err := dec.Decode(&s.Geogrid); err != nil { - return fmt.Errorf("%s | %w", "Geogrid", err) - } - case "geohash": if err := dec.Decode(&s.Geohash); err != nil { return fmt.Errorf("%s | %w", "Geohash", err) @@ -92,6 +87,11 @@ func (s *GeoGridQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Geohex", err) } + case "geotile": + if err := dec.Decode(&s.Geotile); err != nil { + return fmt.Errorf("%s | %w", "Geotile", err) + } + case "_name": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -160,8 +160,6 @@ func NewGeoGridQuery() *GeoGridQuery { return r } -// true - type GeoGridQueryVariant interface { GeoGridQueryCaster() *GeoGridQuery } diff --git a/typedapi/types/geohashgridaggregate.go b/typedapi/types/geohashgridaggregate.go index 071e8bc925..616c4ca3f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoHashGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L566-L568 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L566-L568 type GeoHashGridAggregate struct { Buckets BucketsGeoHashGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewGeoHashGridAggregate() *GeoHashGridAggregate { return r } - -// false diff --git a/typedapi/types/geohashgridaggregation.go b/typedapi/types/geohashgridaggregation.go index 2c694756ff..978e22c028 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoHashGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L421-L449 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -182,8 +182,6 @@ func NewGeoHashGridAggregation() *GeoHashGridAggregation { return r } -// true - type GeoHashGridAggregationVariant interface { GeoHashGridAggregationCaster() *GeoHashGridAggregation } diff --git a/typedapi/types/geohashgridbucket.go b/typedapi/types/geohashgridbucket.go index 06c7490104..fb77539e73 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // GeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L570-L572 type GeoHashGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewGeoHashGridBucket() *GeoHashGridBucket { return r } - -// false diff --git a/typedapi/types/geohashlocation.go b/typedapi/types/geohashlocation.go index 7710888d46..1cec540db3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoHashLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L131-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L131-L133 type GeoHashLocation struct { Geohash string `json:"geohash"` } @@ -67,8 +67,6 @@ func NewGeoHashLocation() *GeoHashLocation { return r } -// true - type GeoHashLocationVariant interface { GeoHashLocationCaster() *GeoHashLocation } @@ -76,3 +74,8 @@ type GeoHashLocationVariant interface { func (s *GeoHashLocation) GeoHashLocationCaster() *GeoHashLocation { return s } + +func (s *GeoHashLocation) GeoLocationCaster() *GeoLocation { + o := GeoLocation(s) + return &o +} diff --git a/typedapi/types/geohashprecision.go b/typedapi/types/geohashprecision.go index faa0422280..9b714ecc02 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a3e491ed05..85f185a4f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoHexGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L585-L586 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L585-L586 type GeoHexGridAggregate struct { Buckets BucketsGeoHexGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewGeoHexGridAggregate() *GeoHexGridAggregate { return r } - -// false diff --git a/typedapi/types/geohexgridaggregation.go b/typedapi/types/geohexgridaggregation.go index 25704ee877..4dcedc3437 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeohexGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L479-L504 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -190,8 +190,6 @@ func NewGeohexGridAggregation() *GeohexGridAggregation { return r } -// true - type GeohexGridAggregationVariant interface { GeohexGridAggregationCaster() *GeohexGridAggregation } diff --git a/typedapi/types/geohexgridbucket.go b/typedapi/types/geohexgridbucket.go index d9ae014008..ccb70f7396 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // GeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L588-L590 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L588-L590 type GeoHexGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewGeoHexGridBucket() *GeoHexGridBucket { return r } - -// false diff --git a/typedapi/types/geoipdatabaseconfigurationmetadata.go b/typedapi/types/geoipdatabaseconfigurationmetadata.go index 123ebaa477..68f8598015 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoipDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 type GeoipDatabaseConfigurationMetadata struct { Database DatabaseConfiguration `json:"database"` Id string `json:"id"` @@ -95,5 +95,3 @@ func NewGeoipDatabaseConfigurationMetadata() *GeoipDatabaseConfigurationMetadata return r } - -// false diff --git a/typedapi/types/geoipdownloadstatistics.go b/typedapi/types/geoipdownloadstatistics.go index ee8e9980ee..4cfcba0d6e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoIpDownloadStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/geo_ip_stats/types.ts#L24-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -158,5 +158,3 @@ func NewGeoIpDownloadStatistics() *GeoIpDownloadStatistics { return r } - -// false diff --git a/typedapi/types/geoipnodedatabasename.go b/typedapi/types/geoipnodedatabasename.go index 50f6a7b81e..a24ab0fb5f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoIpNodeDatabaseName type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/geo_ip_stats/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/geo_ip_stats/types.ts#L47-L50 type GeoIpNodeDatabaseName struct { // Name Name of the database. Name string `json:"name"` @@ -67,5 +67,3 @@ func NewGeoIpNodeDatabaseName() *GeoIpNodeDatabaseName { return r } - -// false diff --git a/typedapi/types/geoipnodedatabases.go b/typedapi/types/geoipnodedatabases.go index 8517c3eba3..a8b1674b77 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // GeoIpNodeDatabases type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/geo_ip_stats/types.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/geo_ip_stats/types.ts#L39-L45 type GeoIpNodeDatabases struct { // Databases Downloaded databases for the node. Databases []GeoIpNodeDatabaseName `json:"databases"` @@ -38,5 +38,3 @@ func NewGeoIpNodeDatabases() *GeoIpNodeDatabases { return r } - -// false diff --git a/typedapi/types/geoipprocessor.go b/typedapi/types/geoipprocessor.go index 4b9f64cfe7..bcdf3a046d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoIpProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L443-L477 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L443-L477 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 @@ -214,8 +214,6 @@ func NewGeoIpProcessor() *GeoIpProcessor { return r } -// true - type GeoIpProcessorVariant interface { GeoIpProcessorCaster() *GeoIpProcessor } diff --git a/typedapi/types/geoline.go b/typedapi/types/geoline.go index c9d1b3a3ae..4e442f6e94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoLine type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L56-L62 type GeoLine struct { // Coordinates Array of `[lon, lat]` coordinates Coordinates [][]Float64 `json:"coordinates"` @@ -82,5 +82,3 @@ func NewGeoLine() *GeoLine { return r } - -// false diff --git a/typedapi/types/geolineaggregate.go b/typedapi/types/geolineaggregate.go index b0d2b078ad..694e4cee32 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoLineAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L902-L912 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L904-L914 type GeoLineAggregate struct { Geometry GeoLine `json:"geometry"` Meta Metadata `json:"meta,omitempty"` @@ -92,5 +92,3 @@ func NewGeoLineAggregate() *GeoLineAggregate { return r } - -// false diff --git a/typedapi/types/geolineaggregation.go b/typedapi/types/geolineaggregation.go index c80c31023d..e1fc239524 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // GeoLineAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L124-L149 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -124,8 +124,6 @@ func NewGeoLineAggregation() *GeoLineAggregation { return r } -// true - type GeoLineAggregationVariant interface { GeoLineAggregationCaster() *GeoLineAggregation } diff --git a/typedapi/types/geolinepoint.go b/typedapi/types/geolinepoint.go index de81969625..9f8d2202e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoLinePoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L158-L163 type GeoLinePoint struct { // Field The name of the geo_point field. Field string `json:"field"` @@ -68,8 +68,6 @@ func NewGeoLinePoint() *GeoLinePoint { return r } -// true - type GeoLinePointVariant interface { GeoLinePointCaster() *GeoLinePoint } diff --git a/typedapi/types/geolinesort.go b/typedapi/types/geolinesort.go index a6df3c67a6..4e2687feb2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoLineSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L151-L156 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -68,8 +68,6 @@ func NewGeoLineSort() *GeoLineSort { return r } -// true - type GeoLineSortVariant interface { GeoLineSortCaster() *GeoLineSort } diff --git a/typedapi/types/geolocation.go b/typedapi/types/geolocation.go index cb58e3c1a6..01f3e5007b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ package types // []Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L104-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 313f97c7f4..06a17c1b58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,13 +29,14 @@ import ( "strconv" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geopointmetrictype" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // GeoPointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L24-L33 type GeoPointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -53,6 +54,7 @@ type GeoPointProperty struct { Script *Script `json:"script,omitempty"` Store *bool `json:"store,omitempty"` SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` + TimeSeriesMetric *geopointmetrictype.GeoPointMetricType `json:"time_series_metric,omitempty"` Type string `json:"type,omitempty"` } @@ -248,6 +250,12 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -695,6 +703,12 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -908,6 +922,11 @@ func (s *GeoPointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) } + case "time_series_metric": + if err := dec.Decode(&s.TimeSeriesMetric); err != nil { + return fmt.Errorf("%s | %w", "TimeSeriesMetric", err) + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -937,6 +956,7 @@ func (s GeoPointProperty) MarshalJSON() ([]byte, error) { Script: s.Script, Store: s.Store, SyntheticSourceKeep: s.SyntheticSourceKeep, + TimeSeriesMetric: s.TimeSeriesMetric, Type: s.Type, } @@ -956,8 +976,6 @@ func NewGeoPointProperty() *GeoPointProperty { return r } -// true - type GeoPointPropertyVariant interface { GeoPointPropertyCaster() *GeoPointProperty } @@ -965,3 +983,8 @@ type GeoPointPropertyVariant interface { func (s *GeoPointProperty) GeoPointPropertyCaster() *GeoPointProperty { return s } + +func (s *GeoPointProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/geopolygonpoints.go b/typedapi/types/geopolygonpoints.go index c3d7e77d45..e4644aa70c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // GeoPolygonPoints type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L105-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/geo.ts#L105-L107 type GeoPolygonPoints struct { Points []GeoLocation `json:"points"` } @@ -34,8 +34,6 @@ func NewGeoPolygonPoints() *GeoPolygonPoints { return r } -// true - type GeoPolygonPointsVariant interface { GeoPolygonPointsCaster() *GeoPolygonPoints } diff --git a/typedapi/types/geopolygonquery.go b/typedapi/types/geopolygonquery.go index cd5e8bf591..10367ca470 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // GeoPolygonQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L109-L121 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -165,8 +165,6 @@ func NewGeoPolygonQuery() *GeoPolygonQuery { return r } -// true - type GeoPolygonQueryVariant interface { GeoPolygonQueryCaster() *GeoPolygonQuery } diff --git a/typedapi/types/georesults.go b/typedapi/types/georesults.go index e24dcd2646..20d3507e81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Anomaly.ts#L146-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -89,5 +89,3 @@ func NewGeoResults() *GeoResults { return r } - -// false diff --git a/typedapi/types/geoshapefieldquery.go b/typedapi/types/geoshapefieldquery.go index ef25a0b160..98a0b9506f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // GeoShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L128-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -84,8 +84,6 @@ func NewGeoShapeFieldQuery() *GeoShapeFieldQuery { return r } -// true - type GeoShapeFieldQueryVariant interface { GeoShapeFieldQueryCaster() *GeoShapeFieldQuery } diff --git a/typedapi/types/geoshapeproperty.go b/typedapi/types/geoshapeproperty.go index 51dc372977..b4baf22775 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // GeoShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L41-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L48-L62 type GeoShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -263,6 +263,12 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -665,6 +671,12 @@ func (s *GeoShapeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -926,8 +938,6 @@ func NewGeoShapeProperty() *GeoShapeProperty { return r } -// true - type GeoShapePropertyVariant interface { GeoShapePropertyCaster() *GeoShapeProperty } @@ -935,3 +945,8 @@ type GeoShapePropertyVariant interface { func (s *GeoShapeProperty) GeoShapePropertyCaster() *GeoShapeProperty { return s } + +func (s *GeoShapeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/geoshapequery.go b/typedapi/types/geoshapequery.go index 88135eb92a..a79a4497ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/geo.ts#L141-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -160,8 +160,6 @@ func NewGeoShapeQuery() *GeoShapeQuery { return r } -// true - type GeoShapeQueryVariant interface { GeoShapeQueryCaster() *GeoShapeQuery } diff --git a/typedapi/types/geotilegridaggregate.go b/typedapi/types/geotilegridaggregate.go index 6b31002cc7..3b955c7eb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GeoTileGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L574-L579 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L574-L579 type GeoTileGridAggregate struct { Buckets BucketsGeoTileGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewGeoTileGridAggregate() *GeoTileGridAggregate { return r } - -// false diff --git a/typedapi/types/geotilegridaggregation.go b/typedapi/types/geotilegridaggregation.go index c41b6982af..db8190dd32 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L451-L477 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -182,8 +182,6 @@ func NewGeoTileGridAggregation() *GeoTileGridAggregation { return r } -// true - type GeoTileGridAggregationVariant interface { GeoTileGridAggregationCaster() *GeoTileGridAggregation } diff --git a/typedapi/types/geotilegridbucket.go b/typedapi/types/geotilegridbucket.go index 93ab1cab76..04da8a4c95 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // GeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L581-L583 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L581-L583 type GeoTileGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewGeoTileGridBucket() *GeoTileGridBucket { return r } - -// false diff --git a/typedapi/types/germananalyzer.go b/typedapi/types/germananalyzer.go index ca47f7462d..c1971b41ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // GermanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L186-L191 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L186-L191 type GermanAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *GermanAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *GermanAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewGermanAnalyzer() *GermanAnalyzer { return r } -// true - type GermanAnalyzerVariant interface { GermanAnalyzerCaster() *GermanAnalyzer } @@ -128,3 +115,8 @@ type GermanAnalyzerVariant interface { func (s *GermanAnalyzer) GermanAnalyzerCaster() *GermanAnalyzer { return s } + +func (s *GermanAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/germannormalizationtokenfilter.go b/typedapi/types/germannormalizationtokenfilter.go new file mode 100644 index 0000000000..0783db66a9 --- /dev/null +++ b/typedapi/types/germannormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// GermanNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L498-L500 +type GermanNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *GermanNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s GermanNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerGermanNormalizationTokenFilter GermanNormalizationTokenFilter + tmp := innerGermanNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "german_normalization" + + return json.Marshal(tmp) +} + +// NewGermanNormalizationTokenFilter returns a GermanNormalizationTokenFilter. +func NewGermanNormalizationTokenFilter() *GermanNormalizationTokenFilter { + r := &GermanNormalizationTokenFilter{} + + return r +} + +type GermanNormalizationTokenFilterVariant interface { + GermanNormalizationTokenFilterCaster() *GermanNormalizationTokenFilter +} + +func (s *GermanNormalizationTokenFilter) GermanNormalizationTokenFilterCaster() *GermanNormalizationTokenFilter { + return s +} + +func (s *GermanNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/germanstemtokenfilter.go b/typedapi/types/germanstemtokenfilter.go new file mode 100644 index 0000000000..fdac318047 --- /dev/null +++ b/typedapi/types/germanstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// GermanStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L563-L565 +type GermanStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *GermanStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s GermanStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerGermanStemTokenFilter GermanStemTokenFilter + tmp := innerGermanStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "german_stem" + + return json.Marshal(tmp) +} + +// NewGermanStemTokenFilter returns a GermanStemTokenFilter. +func NewGermanStemTokenFilter() *GermanStemTokenFilter { + r := &GermanStemTokenFilter{} + + return r +} + +type GermanStemTokenFilterVariant interface { + GermanStemTokenFilterCaster() *GermanStemTokenFilter +} + +func (s *GermanStemTokenFilter) GermanStemTokenFilterCaster() *GermanStemTokenFilter { + return s +} + +func (s *GermanStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/getmigrationfeature.go b/typedapi/types/getmigrationfeature.go index 3c8941ce95..63afe3cf5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // GetMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 type GetMigrationFeature struct { FeatureName string `json:"feature_name"` Indices []MigrationFeatureIndexInfo `json:"indices"` @@ -94,5 +94,3 @@ func NewGetMigrationFeature() *GetMigrationFeature { return r } - -// false diff --git a/typedapi/types/getresult.go b/typedapi/types/getresult.go index 8818c83f65..30124b3016 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GetResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get/types.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -166,5 +166,3 @@ func NewGetResult() *GetResult { return r } - -// false diff --git a/typedapi/types/getscriptcontext.go b/typedapi/types/getscriptcontext.go index be4a019378..7a7effb680 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GetScriptContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_context/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/get_script_context/types.ts#L22-L25 type GetScriptContext struct { Methods []ContextMethod `json:"methods"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewGetScriptContext() *GetScriptContext { return r } - -// false diff --git a/typedapi/types/getstats.go b/typedapi/types/getstats.go index 6e8f056484..1b494a7a8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GetStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L133-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L155-L166 type GetStats struct { Current int64 `json:"current"` ExistsTime Duration `json:"exists_time,omitempty"` @@ -161,5 +161,3 @@ func NewGetStats() *GetStats { return r } - -// false diff --git a/typedapi/types/getuserprofileerrors.go b/typedapi/types/getuserprofileerrors.go index b83a41aaa2..45f26f80b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GetUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_user_profile/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_user_profile/types.ts#L25-L28 type GetUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` @@ -88,5 +88,3 @@ func NewGetUserProfileErrors() *GetUserProfileErrors { return r } - -// false diff --git a/typedapi/types/globalaggregate.go b/typedapi/types/globalaggregate.go index ddf573c65c..05298fadd5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // GlobalAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L546-L550 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L546-L550 type GlobalAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewGlobalAggregate() *GlobalAggregate { return r } - -// false diff --git a/typedapi/types/globalaggregation.go b/typedapi/types/globalaggregation.go index 1c045574a2..4ca2c9f679 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // GlobalAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L506-L506 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L506-L506 type GlobalAggregation struct { } @@ -33,8 +33,6 @@ func NewGlobalAggregation() *GlobalAggregation { return r } -// true - type GlobalAggregationVariant interface { GlobalAggregationCaster() *GlobalAggregation } diff --git a/typedapi/types/globalordinalfieldstats.go b/typedapi/types/globalordinalfieldstats.go new file mode 100644 index 0000000000..ae93c12697 --- /dev/null +++ b/typedapi/types/globalordinalfieldstats.go @@ -0,0 +1,98 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GlobalOrdinalFieldStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L137-L141 +type GlobalOrdinalFieldStats struct { + BuildTime *string `json:"build_time,omitempty"` + BuildTimeInMillis int64 `json:"build_time_in_millis"` + ShardMaxValueCount int64 `json:"shard_max_value_count"` +} + +func (s *GlobalOrdinalFieldStats) 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 "build_time": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "BuildTime", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.BuildTime = &o + + case "build_time_in_millis": + if err := dec.Decode(&s.BuildTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "BuildTimeInMillis", err) + } + + case "shard_max_value_count": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "ShardMaxValueCount", err) + } + s.ShardMaxValueCount = value + case float64: + f := int64(v) + s.ShardMaxValueCount = f + } + + } + } + return nil +} + +// NewGlobalOrdinalFieldStats returns a GlobalOrdinalFieldStats. +func NewGlobalOrdinalFieldStats() *GlobalOrdinalFieldStats { + r := &GlobalOrdinalFieldStats{} + + return r +} diff --git a/typedapi/types/globalordinalsstats.go b/typedapi/types/globalordinalsstats.go new file mode 100644 index 0000000000..c92e63a2c0 --- /dev/null +++ b/typedapi/types/globalordinalsstats.go @@ -0,0 +1,93 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GlobalOrdinalsStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L131-L135 +type GlobalOrdinalsStats struct { + BuildTime *string `json:"build_time,omitempty"` + BuildTimeInMillis int64 `json:"build_time_in_millis"` + Fields map[string]GlobalOrdinalFieldStats `json:"fields,omitempty"` +} + +func (s *GlobalOrdinalsStats) 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 "build_time": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "BuildTime", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.BuildTime = &o + + case "build_time_in_millis": + if err := dec.Decode(&s.BuildTimeInMillis); err != nil { + return fmt.Errorf("%s | %w", "BuildTimeInMillis", err) + } + + case "fields": + if s.Fields == nil { + s.Fields = make(map[string]GlobalOrdinalFieldStats, 0) + } + if err := dec.Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + + } + } + return nil +} + +// NewGlobalOrdinalsStats returns a GlobalOrdinalsStats. +func NewGlobalOrdinalsStats() *GlobalOrdinalsStats { + r := &GlobalOrdinalsStats{ + Fields: make(map[string]GlobalOrdinalFieldStats), + } + + return r +} diff --git a/typedapi/types/globalprivilege.go b/typedapi/types/globalprivilege.go index 69d541930a..74666f8eab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // GlobalPrivilege type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L430-L432 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/Privileges.ts#L430-L432 type GlobalPrivilege struct { Application ApplicationGlobalUserPrivileges `json:"application"` } @@ -34,8 +34,6 @@ func NewGlobalPrivilege() *GlobalPrivilege { return r } -// true - type GlobalPrivilegeVariant interface { GlobalPrivilegeCaster() *GlobalPrivilege } diff --git a/typedapi/types/googleaistudioservicesettings.go b/typedapi/types/googleaistudioservicesettings.go index a1d98dc50b..684767886d 100644 --- a/typedapi/types/googleaistudioservicesettings.go +++ b/typedapi/types/googleaistudioservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GoogleAiStudioServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L794-L810 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L867-L883 type GoogleAiStudioServiceSettings struct { // ApiKey A valid API key of your Google Gemini account. ApiKey string `json:"api_key"` @@ -101,8 +101,6 @@ func NewGoogleAiStudioServiceSettings() *GoogleAiStudioServiceSettings { return r } -// true - type GoogleAiStudioServiceSettingsVariant interface { GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings } diff --git a/typedapi/types/googlenormalizeddistanceheuristic.go b/typedapi/types/googlenormalizeddistanceheuristic.go index ed0569c774..91ce7da206 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GoogleNormalizedDistanceHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L793-L798 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -79,8 +79,6 @@ func NewGoogleNormalizedDistanceHeuristic() *GoogleNormalizedDistanceHeuristic { return r } -// true - type GoogleNormalizedDistanceHeuristicVariant interface { GoogleNormalizedDistanceHeuristicCaster() *GoogleNormalizedDistanceHeuristic } diff --git a/typedapi/types/googlevertexaiservicesettings.go b/typedapi/types/googlevertexaiservicesettings.go index 935d501b95..8c92112fa2 100644 --- a/typedapi/types/googlevertexaiservicesettings.go +++ b/typedapi/types/googlevertexaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GoogleVertexAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L821-L847 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L894-L920 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. @@ -130,8 +130,6 @@ func NewGoogleVertexAIServiceSettings() *GoogleVertexAIServiceSettings { return r } -// true - type GoogleVertexAIServiceSettingsVariant interface { GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings } diff --git a/typedapi/types/googlevertexaitasksettings.go b/typedapi/types/googlevertexaitasksettings.go index 089ebc7a77..685a78a948 100644 --- a/typedapi/types/googlevertexaitasksettings.go +++ b/typedapi/types/googlevertexaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GoogleVertexAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L849-L858 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L922-L931 type GoogleVertexAITaskSettings struct { // AutoTruncate For a `text_embedding` task, truncate inputs longer than the maximum token // length automatically. @@ -98,8 +98,6 @@ func NewGoogleVertexAITaskSettings() *GoogleVertexAITaskSettings { return r } -// true - type GoogleVertexAITaskSettingsVariant interface { GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings } diff --git a/typedapi/types/grantapikey.go b/typedapi/types/grantapikey.go index 9ede125fe6..4992fc8bdd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // GrantApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/grant_api_key/types.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -111,8 +111,6 @@ func NewGrantApiKey() *GrantApiKey { return r } -// true - type GrantApiKeyVariant interface { GrantApiKeyCaster() *GrantApiKey } diff --git a/typedapi/types/greaterthanvalidation.go b/typedapi/types/greaterthanvalidation.go index 180f449d49..59d9ad3f19 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GreaterThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L63-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L63-L66 type GreaterThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` @@ -98,8 +98,6 @@ func NewGreaterThanValidation() *GreaterThanValidation { return r } -// true - type GreaterThanValidationVariant interface { GreaterThanValidationCaster() *GreaterThanValidation } @@ -107,3 +105,8 @@ type GreaterThanValidationVariant interface { func (s *GreaterThanValidation) GreaterThanValidationCaster() *GreaterThanValidation { return s } + +func (s *GreaterThanValidation) ValidationCaster() *Validation { + o := Validation(s) + return &o +} diff --git a/typedapi/types/greekanalyzer.go b/typedapi/types/greekanalyzer.go index 40e43b773e..6d8d482cc2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // GreekAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L193-L197 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L193-L197 type GreekAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *GreekAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *GreekAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewGreekAnalyzer() *GreekAnalyzer { return r } -// true - type GreekAnalyzerVariant interface { GreekAnalyzerCaster() *GreekAnalyzer } @@ -121,3 +108,8 @@ type GreekAnalyzerVariant interface { func (s *GreekAnalyzer) GreekAnalyzerCaster() *GreekAnalyzer { return s } + +func (s *GreekAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/grokprocessor.go b/typedapi/types/grokprocessor.go index 9c2f1ff5b8..2015bd4bf2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GrokProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L951-L982 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L951-L982 type GrokProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -201,8 +201,6 @@ func NewGrokProcessor() *GrokProcessor { return r } -// true - type GrokProcessorVariant interface { GrokProcessorCaster() *GrokProcessor } diff --git a/typedapi/types/groupings.go b/typedapi/types/groupings.go index c3f0f072f5..386ae1ca71 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Groupings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Groupings.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -46,8 +46,6 @@ func NewGroupings() *Groupings { return r } -// true - type GroupingsVariant interface { GroupingsCaster() *Groupings } diff --git a/typedapi/types/gsubprocessor.go b/typedapi/types/gsubprocessor.go index be342658d0..659eac0158 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // GsubProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L984-L1008 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L984-L1008 type GsubProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -182,8 +182,6 @@ func NewGsubProcessor() *GsubProcessor { return r } -// true - type GsubProcessorVariant interface { GsubProcessorCaster() *GsubProcessor } diff --git a/typedapi/types/halffloatnumberproperty.go b/typedapi/types/halffloatnumberproperty.go index 6de622d116..d56b29b7eb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // HalfFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L160-L163 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L160-L163 type HalfFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -690,6 +696,12 @@ func (s *HalfFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -973,8 +985,6 @@ func NewHalfFloatNumberProperty() *HalfFloatNumberProperty { return r } -// true - type HalfFloatNumberPropertyVariant interface { HalfFloatNumberPropertyCaster() *HalfFloatNumberProperty } @@ -982,3 +992,8 @@ type HalfFloatNumberPropertyVariant interface { func (s *HalfFloatNumberProperty) HalfFloatNumberPropertyCaster() *HalfFloatNumberProperty { return s } + +func (s *HalfFloatNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/haschildquery.go b/typedapi/types/haschildquery.go index dd8c94d991..6b2a82f862 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // HasChildQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/joining.ts#L41-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -189,8 +189,6 @@ func NewHasChildQuery() *HasChildQuery { return r } -// true - type HasChildQueryVariant interface { HasChildQueryCaster() *HasChildQuery } diff --git a/typedapi/types/hasparentquery.go b/typedapi/types/hasparentquery.go index a8ed67f6d2..cf4b6b1f71 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HasParentQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/joining.ts#L81-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -156,8 +156,6 @@ func NewHasParentQuery() *HasParentQuery { return r } -// true - type HasParentQueryVariant interface { HasParentQueryCaster() *HasParentQuery } diff --git a/typedapi/types/hasprivilegesuserprofileerrors.go b/typedapi/types/hasprivilegesuserprofileerrors.go index 9cc5fbd4e3..34d2c42c23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HasPrivilegesUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges_user_profile/types.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/has_privileges_user_profile/types.ts#L39-L42 type HasPrivilegesUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` @@ -88,5 +88,3 @@ func NewHasPrivilegesUserProfileErrors() *HasPrivilegesUserProfileErrors { return r } - -// false diff --git a/typedapi/types/hdrmethod.go b/typedapi/types/hdrmethod.go index 9cd82fb8a4..c315b6f910 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HdrMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L225-L230 type HdrMethod struct { // NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant // digits. @@ -81,8 +81,6 @@ func NewHdrMethod() *HdrMethod { return r } -// true - type HdrMethodVariant interface { HdrMethodCaster() *HdrMethod } diff --git a/typedapi/types/hdrpercentileranksaggregate.go b/typedapi/types/hdrpercentileranksaggregate.go index f1ad64d414..f5a4ef7d3c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HdrPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L171-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L171-L172 type HdrPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -88,5 +88,3 @@ func NewHdrPercentileRanksAggregate() *HdrPercentileRanksAggregate { return r } - -// false diff --git a/typedapi/types/hdrpercentilesaggregate.go b/typedapi/types/hdrpercentilesaggregate.go index 2a1ffbe9d2..0058de8247 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HdrPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L168-L169 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L168-L169 type HdrPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -88,5 +88,3 @@ func NewHdrPercentilesAggregate() *HdrPercentilesAggregate { return r } - -// false diff --git a/typedapi/types/healthrecord.go b/typedapi/types/healthrecord.go index 79deaa94ad..3259db051f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HealthRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/health/types.ts#L23-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/health/types.ts#L23-L99 type HealthRecord struct { // ActiveShardsPercent active number of shards in percent ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` @@ -257,5 +257,3 @@ func NewHealthRecord() *HealthRecord { return r } - -// false diff --git a/typedapi/types/healthstatistics.go b/typedapi/types/healthstatistics.go index 2595ea2951..f6bebd5189 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HealthStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L150-L152 type HealthStatistics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -97,5 +97,3 @@ func NewHealthStatistics() *HealthStatistics { return r } - -// false diff --git a/typedapi/types/highlight.go b/typedapi/types/highlight.go index 98e6a120e5..5af56f75e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -38,7 +38,7 @@ import ( // Highlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L152-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -385,8 +385,6 @@ func NewHighlight() *Highlight { return r } -// true - type HighlightVariant interface { HighlightCaster() *Highlight } diff --git a/typedapi/types/highlightfield.go b/typedapi/types/highlightfield.go index 879aacc831..09c96b9e0a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -37,7 +37,7 @@ import ( // HighlightField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/highlighting.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -402,8 +402,6 @@ func NewHighlightField() *HighlightField { return r } -// true - type HighlightFieldVariant interface { HighlightFieldCaster() *HighlightField } diff --git a/typedapi/types/hindianalyzer.go b/typedapi/types/hindianalyzer.go index dff7854a66..2857adb13a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // HindiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L199-L204 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L199-L204 type HindiAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *HindiAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *HindiAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewHindiAnalyzer() *HindiAnalyzer { return r } -// true - type HindiAnalyzerVariant interface { HindiAnalyzerCaster() *HindiAnalyzer } @@ -128,3 +115,8 @@ type HindiAnalyzerVariant interface { func (s *HindiAnalyzer) HindiAnalyzerCaster() *HindiAnalyzer { return s } + +func (s *HindiAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/hindinormalizationtokenfilter.go b/typedapi/types/hindinormalizationtokenfilter.go new file mode 100644 index 0000000000..ab13a0eb5d --- /dev/null +++ b/typedapi/types/hindinormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// HindiNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L502-L504 +type HindiNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *HindiNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s HindiNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerHindiNormalizationTokenFilter HindiNormalizationTokenFilter + tmp := innerHindiNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "hindi_normalization" + + return json.Marshal(tmp) +} + +// NewHindiNormalizationTokenFilter returns a HindiNormalizationTokenFilter. +func NewHindiNormalizationTokenFilter() *HindiNormalizationTokenFilter { + r := &HindiNormalizationTokenFilter{} + + return r +} + +type HindiNormalizationTokenFilterVariant interface { + HindiNormalizationTokenFilterCaster() *HindiNormalizationTokenFilter +} + +func (s *HindiNormalizationTokenFilter) HindiNormalizationTokenFilterCaster() *HindiNormalizationTokenFilter { + return s +} + +func (s *HindiNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/hint.go b/typedapi/types/hint.go index 8e7bbcf7c7..2aa3062d7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Hint type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/suggest_user_profiles/types.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -41,8 +41,6 @@ func NewHint() *Hint { return r } -// true - type HintVariant interface { HintCaster() *Hint } diff --git a/typedapi/types/histogramaggregate.go b/typedapi/types/histogramaggregate.go index 78b9f4dca9..f19db5af38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L372-L376 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L372-L376 type HistogramAggregate struct { Buckets BucketsHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewHistogramAggregate() *HistogramAggregate { return r } - -// false diff --git a/typedapi/types/histogramaggregation.go b/typedapi/types/histogramaggregation.go index fe91aef392..007b217a8f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // HistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L519-L565 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -224,8 +224,6 @@ func NewHistogramAggregation() *HistogramAggregation { return r } -// true - type HistogramAggregationVariant interface { HistogramAggregationCaster() *HistogramAggregation } diff --git a/typedapi/types/histogrambucket.go b/typedapi/types/histogrambucket.go index 887b9706c2..b5707e9462 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // HistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L378-L381 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L378-L381 type HistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -660,5 +660,3 @@ func NewHistogramBucket() *HistogramBucket { return r } - -// false diff --git a/typedapi/types/histogramgrouping.go b/typedapi/types/histogramgrouping.go index 35b5416776..b0a952c5a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Groupings.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -103,8 +103,6 @@ func NewHistogramGrouping() *HistogramGrouping { return r } -// true - type HistogramGroupingVariant interface { HistogramGroupingCaster() *HistogramGrouping } diff --git a/typedapi/types/histogramproperty.go b/typedapi/types/histogramproperty.go index 9f97fd4463..b7c9ae6756 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // HistogramProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L69-L72 type HistogramProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -578,6 +584,12 @@ func (s *HistogramProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -812,8 +824,6 @@ func NewHistogramProperty() *HistogramProperty { return r } -// true - type HistogramPropertyVariant interface { HistogramPropertyCaster() *HistogramProperty } @@ -821,3 +831,8 @@ type HistogramPropertyVariant interface { func (s *HistogramProperty) HistogramPropertyCaster() *HistogramProperty { return s } + +func (s *HistogramProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/hit.go b/typedapi/types/hit.go index f8b7265ed5..1e498083ad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Hit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L40-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L40-L65 type Hit struct { Explanation_ *Explanation `json:"_explanation,omitempty"` Fields map[string]json.RawMessage `json:"fields,omitempty"` @@ -256,5 +256,3 @@ func NewHit() *Hit { return r } - -// false diff --git a/typedapi/types/hitsevent.go b/typedapi/types/hitsevent.go index 85e76bf246..2bd8fed0e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HitsEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/_types/EqlHits.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -110,5 +110,3 @@ func NewHitsEvent() *HitsEvent { return r } - -// false diff --git a/typedapi/types/hitsmetadata.go b/typedapi/types/hitsmetadata.go index 69b785a04d..11346d9481 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HitsMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L67-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L67-L73 type HitsMetadata struct { Hits []Hit `json:"hits"` MaxScore *Float64 `json:"max_score,omitempty"` @@ -80,5 +80,3 @@ func NewHitsMetadata() *HitsMetadata { return r } - -// false diff --git a/typedapi/types/hitssequence.go b/typedapi/types/hitssequence.go index 81d904c5c3..6bfd8051aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // HitsSequence type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/eql/_types/EqlHits.ts#L56-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -41,5 +41,3 @@ func NewHitsSequence() *HitsSequence { return r } - -// false diff --git a/typedapi/types/holtlinearmodelsettings.go b/typedapi/types/holtlinearmodelsettings.go index 3768d09585..670d589d90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HoltLinearModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/pipeline.ts#L297-L300 type HoltLinearModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` @@ -96,8 +96,6 @@ func NewHoltLinearModelSettings() *HoltLinearModelSettings { return r } -// true - type HoltLinearModelSettingsVariant interface { HoltLinearModelSettingsCaster() *HoltLinearModelSettings } diff --git a/typedapi/types/holtmovingaverageaggregation.go b/typedapi/types/holtmovingaverageaggregation.go index 0d975c13e6..8c7fca06e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // HoltMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L283-L286 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewHoltMovingAverageAggregation() *HoltMovingAverageAggregation { return r } -// true - type HoltMovingAverageAggregationVariant interface { HoltMovingAverageAggregationCaster() *HoltMovingAverageAggregation } @@ -183,3 +181,8 @@ type HoltMovingAverageAggregationVariant interface { func (s *HoltMovingAverageAggregation) HoltMovingAverageAggregationCaster() *HoltMovingAverageAggregation { return s } + +func (s *HoltMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation { + o := MovingAverageAggregation(s) + return &o +} diff --git a/typedapi/types/holtwintersmodelsettings.go b/typedapi/types/holtwintersmodelsettings.go index b86fd955c4..eb1e9a32e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // HoltWintersModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L301-L308 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/pipeline.ts#L301-L308 type HoltWintersModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` @@ -153,8 +153,6 @@ func NewHoltWintersModelSettings() *HoltWintersModelSettings { return r } -// true - type HoltWintersModelSettingsVariant interface { HoltWintersModelSettingsCaster() *HoltWintersModelSettings } diff --git a/typedapi/types/holtwintersmovingaverageaggregation.go b/typedapi/types/holtwintersmovingaverageaggregation.go index 838cf5d616..51d56a18f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // HoltWintersMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L288-L291 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewHoltWintersMovingAverageAggregation() *HoltWintersMovingAverageAggregati return r } -// true - type HoltWintersMovingAverageAggregationVariant interface { HoltWintersMovingAverageAggregationCaster() *HoltWintersMovingAverageAggregation } @@ -183,3 +181,8 @@ type HoltWintersMovingAverageAggregationVariant interface { func (s *HoltWintersMovingAverageAggregation) HoltWintersMovingAverageAggregationCaster() *HoltWintersMovingAverageAggregation { return s } + +func (s *HoltWintersMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation { + o := MovingAverageAggregation(s) + return &o +} diff --git a/typedapi/types/hop.go b/typedapi/types/hop.go index 554ea9d232..9f5db894db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Hop type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/Hop.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -41,8 +41,6 @@ func NewHop() *Hop { return r } -// true - type HopVariant interface { HopCaster() *Hop } diff --git a/typedapi/types/hourandminute.go b/typedapi/types/hourandminute.go index 299d808687..1aca8abce9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // HourAndMinute type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L106-L109 type HourAndMinute struct { Hour []int `json:"hour"` Minute []int `json:"minute"` @@ -35,8 +35,6 @@ func NewHourAndMinute() *HourAndMinute { return r } -// true - type HourAndMinuteVariant interface { HourAndMinuteCaster() *HourAndMinute } @@ -44,3 +42,8 @@ type HourAndMinuteVariant interface { func (s *HourAndMinute) HourAndMinuteCaster() *HourAndMinute { return s } + +func (s *HourAndMinute) ScheduleTimeOfDayCaster() *ScheduleTimeOfDay { + o := ScheduleTimeOfDay(s) + return &o +} diff --git a/typedapi/types/hourlyschedule.go b/typedapi/types/hourlyschedule.go index 342743c75a..b9f59bc965 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // HourlySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L47-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L47-L49 type HourlySchedule struct { Minute []int `json:"minute"` } @@ -34,8 +34,6 @@ func NewHourlySchedule() *HourlySchedule { return r } -// true - type HourlyScheduleVariant interface { HourlyScheduleCaster() *HourlySchedule } diff --git a/typedapi/types/htmlstripcharfilter.go b/typedapi/types/htmlstripcharfilter.go index aece3db34f..cc2dc6b8f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HtmlStripCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/char_filters.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/char_filters.ts#L46-L49 type HtmlStripCharFilter struct { EscapedTags []string `json:"escaped_tags,omitempty"` Type string `json:"type,omitempty"` @@ -93,8 +93,6 @@ func NewHtmlStripCharFilter() *HtmlStripCharFilter { return r } -// true - type HtmlStripCharFilterVariant interface { HtmlStripCharFilterCaster() *HtmlStripCharFilter } @@ -102,3 +100,8 @@ type HtmlStripCharFilterVariant interface { func (s *HtmlStripCharFilter) HtmlStripCharFilterCaster() *HtmlStripCharFilter { return s } + +func (s *HtmlStripCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition { + o := CharFilterDefinition(s) + return &o +} diff --git a/typedapi/types/htmlstripprocessor.go b/typedapi/types/htmlstripprocessor.go index cb7287c836..8976d2f6ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HtmlStripProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1010-L1026 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1010-L1026 type HtmlStripProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewHtmlStripProcessor() *HtmlStripProcessor { return r } -// true - type HtmlStripProcessorVariant interface { HtmlStripProcessorCaster() *HtmlStripProcessor } diff --git a/typedapi/types/http.go b/typedapi/types/http.go index 7c8eced17a..39766a10a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Http type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L669-L688 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L671-L690 type Http struct { // Clients Information on current and recently-closed HTTP client connections. // Clients that have been closed longer than the @@ -118,5 +118,3 @@ func NewHttp() *Http { return r } - -// false diff --git a/typedapi/types/httpemailattachment.go b/typedapi/types/httpemailattachment.go index 8b1cfef1c5..6ec3802376 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HttpEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L218-L222 type HttpEmailAttachment struct { ContentType *string `json:"content_type,omitempty"` Inline *bool `json:"inline,omitempty"` @@ -96,8 +96,6 @@ func NewHttpEmailAttachment() *HttpEmailAttachment { return r } -// true - type HttpEmailAttachmentVariant interface { HttpEmailAttachmentCaster() *HttpEmailAttachment } diff --git a/typedapi/types/httpheaders.go b/typedapi/types/httpheaders.go index 9071be56d8..f960c2d3d6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // HttpHeaders type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L155-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L155-L155 type HttpHeaders map[string][]string type HttpHeadersVariant interface { diff --git a/typedapi/types/httpinput.go b/typedapi/types/httpinput.go index 2ee966d105..3e43b0c293 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // HttpInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L44-L48 type HttpInput struct { Extract []string `json:"extract,omitempty"` Request *HttpInputRequestDefinition `json:"request,omitempty"` @@ -40,8 +40,6 @@ func NewHttpInput() *HttpInput { return r } -// true - type HttpInputVariant interface { HttpInputCaster() *HttpInput } diff --git a/typedapi/types/httpinputauthentication.go b/typedapi/types/httpinputauthentication.go index d46d9c8e59..772cd63a90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // HttpInputAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L50-L52 type HttpInputAuthentication struct { Basic HttpInputBasicAuthentication `json:"basic"` } @@ -34,8 +34,6 @@ func NewHttpInputAuthentication() *HttpInputAuthentication { return r } -// true - type HttpInputAuthenticationVariant interface { HttpInputAuthenticationCaster() *HttpInputAuthentication } diff --git a/typedapi/types/httpinputbasicauthentication.go b/typedapi/types/httpinputbasicauthentication.go index 1aa88f8da3..5daa94b046 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HttpInputBasicAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L54-L57 type HttpInputBasicAuthentication struct { Password string `json:"password"` Username string `json:"username"` @@ -73,8 +73,6 @@ func NewHttpInputBasicAuthentication() *HttpInputBasicAuthentication { return r } -// true - type HttpInputBasicAuthenticationVariant interface { HttpInputBasicAuthenticationCaster() *HttpInputBasicAuthentication } diff --git a/typedapi/types/httpinputproxy.go b/typedapi/types/httpinputproxy.go index eadfdc16b4..955004c524 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // HttpInputProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L67-L70 type HttpInputProxy struct { Host string `json:"host"` Port uint `json:"port"` @@ -73,8 +73,6 @@ func NewHttpInputProxy() *HttpInputProxy { return r } -// true - type HttpInputProxyVariant interface { HttpInputProxyCaster() *HttpInputProxy } diff --git a/typedapi/types/httpinputrequestdefinition.go b/typedapi/types/httpinputrequestdefinition.go index 7e2cbc5c49..8999854c94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L72-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L72-L86 type HttpInputRequestDefinition struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` @@ -173,8 +173,6 @@ func NewHttpInputRequestDefinition() *HttpInputRequestDefinition { return r } -// true - type HttpInputRequestDefinitionVariant interface { HttpInputRequestDefinitionCaster() *HttpInputRequestDefinition } diff --git a/typedapi/types/httpinputrequestresult.go b/typedapi/types/httpinputrequestresult.go index 05a42e9342..52af7d9adc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // HttpInputRequestResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L300-L300 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L300-L300 type HttpInputRequestResult struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` @@ -172,5 +172,3 @@ func NewHttpInputRequestResult() *HttpInputRequestResult { return r } - -// false diff --git a/typedapi/types/httpinputresponseresult.go b/typedapi/types/httpinputresponseresult.go index fae31141dd..12e306357b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HttpInputResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L302-L306 type HttpInputResponseResult struct { Body string `json:"body"` Headers HttpHeaders `json:"headers"` @@ -97,5 +97,3 @@ func NewHttpInputResponseResult() *HttpInputResponseResult { return r } - -// false diff --git a/typedapi/types/httproute.go b/typedapi/types/httproute.go index 389b85ab51..24b072374a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // HttpRoute type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L690-L693 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L692-L695 type HttpRoute struct { Requests HttpRouteRequests `json:"requests"` Responses HttpRouteResponses `json:"responses"` @@ -34,5 +34,3 @@ func NewHttpRoute() *HttpRoute { return r } - -// false diff --git a/typedapi/types/httprouterequests.go b/typedapi/types/httprouterequests.go index ae8ccc0174..2660901841 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HttpRouteRequests type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L695-L699 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L697-L701 type HttpRouteRequests struct { Count int64 `json:"count"` SizeHistogram []SizeHttpHistogram `json:"size_histogram"` @@ -99,5 +99,3 @@ func NewHttpRouteRequests() *HttpRouteRequests { return r } - -// false diff --git a/typedapi/types/httprouteresponses.go b/typedapi/types/httprouteresponses.go index 81eb2541f6..c4cc66f3cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HttpRouteResponses type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L701-L706 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L703-L708 type HttpRouteResponses struct { Count int64 `json:"count"` HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"` @@ -105,5 +105,3 @@ func NewHttpRouteResponses() *HttpRouteResponses { return r } - -// false diff --git a/typedapi/types/huggingfaceservicesettings.go b/typedapi/types/huggingfaceservicesettings.go index 305d03017b..fbe89b55c8 100644 --- a/typedapi/types/huggingfaceservicesettings.go +++ b/typedapi/types/huggingfaceservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // HuggingFaceServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L869-L890 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L942-L963 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. @@ -108,8 +108,6 @@ func NewHuggingFaceServiceSettings() *HuggingFaceServiceSettings { return r } -// true - type HuggingFaceServiceSettingsVariant interface { HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings } diff --git a/typedapi/types/hungariananalyzer.go b/typedapi/types/hungariananalyzer.go index c875eb4c14..df91f43a89 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // HungarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L206-L211 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L206-L211 type HungarianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *HungarianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *HungarianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewHungarianAnalyzer() *HungarianAnalyzer { return r } -// true - type HungarianAnalyzerVariant interface { HungarianAnalyzerCaster() *HungarianAnalyzer } @@ -128,3 +115,8 @@ type HungarianAnalyzerVariant interface { func (s *HungarianAnalyzer) HungarianAnalyzerCaster() *HungarianAnalyzer { return s } + +func (s *HungarianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/hunspelltokenfilter.go b/typedapi/types/hunspelltokenfilter.go index 056172d9a4..6701f457ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,23 @@ import ( // HunspellTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L201-L207 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L268-L280 type HunspellTokenFilter struct { - Dedup *bool `json:"dedup,omitempty"` - Dictionary *string `json:"dictionary,omitempty"` - Locale string `json:"locale"` + // Dedup If `true`, duplicate tokens are removed from the filter’s output. Defaults to + // `true`. + Dedup *bool `json:"dedup,omitempty"` + // Dictionary One or more `.dic` files (e.g, `en_US.dic`, my_custom.dic) to use for the + // Hunspell dictionary. + // By default, the `hunspell` filter uses all `.dic` files in the + // `<$ES_PATH_CONF>/hunspell/` directory specified using the `lang`, + // `language`, or `locale` parameter. + Dictionary *string `json:"dictionary,omitempty"` + // Locale Locale directory used to specify the `.aff` and `.dic` files for a Hunspell + // dictionary. + Locale string `json:"locale"` + // LongestOnly If `true`, only the longest stemmed version of each token is included in the + // output. If `false`, all stemmed versions of the token are included. Defaults + // to `false`. LongestOnly *bool `json:"longest_only,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -82,7 +94,7 @@ func (s *HunspellTokenFilter) UnmarshalJSON(data []byte) error { } s.Dictionary = &o - case "locale": + case "locale", "lang", "language": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { return fmt.Errorf("%s | %w", "Locale", err) @@ -147,8 +159,6 @@ func NewHunspellTokenFilter() *HunspellTokenFilter { return r } -// true - type HunspellTokenFilterVariant interface { HunspellTokenFilterCaster() *HunspellTokenFilter } @@ -156,3 +166,8 @@ type HunspellTokenFilterVariant interface { func (s *HunspellTokenFilter) HunspellTokenFilterCaster() *HunspellTokenFilter { return s } + +func (s *HunspellTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/hyperparameter.go b/typedapi/types/hyperparameter.go index d886a9f43c..20c6174d74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Hyperparameter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L274-L288 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -144,5 +144,3 @@ func NewHyperparameter() *Hyperparameter { return r } - -// false diff --git a/typedapi/types/hyperparameters.go b/typedapi/types/hyperparameters.go index 775c645949..e6643ae831 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Hyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L420-L526 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -382,5 +382,3 @@ func NewHyperparameters() *Hyperparameters { return r } - -// false diff --git a/typedapi/types/hyphenationdecompoundertokenfilter.go b/typedapi/types/hyphenationdecompoundertokenfilter.go index 6f4f1bda70..0a86fb69f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,17 +31,42 @@ import ( // HyphenationDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L67-L76 type HyphenationDecompounderTokenFilter struct { - HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` - MaxSubwordSize *int `json:"max_subword_size,omitempty"` - MinSubwordSize *int `json:"min_subword_size,omitempty"` - MinWordSize *int `json:"min_word_size,omitempty"` - OnlyLongestMatch *bool `json:"only_longest_match,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` - WordList []string `json:"word_list,omitempty"` - WordListPath *string `json:"word_list_path,omitempty"` + // HyphenationPatternsPath Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern + // file. + // This path must be absolute or relative to the `config` location. Only FOP + // v1.2 compatible files are supported. + HyphenationPatternsPath string `json:"hyphenation_patterns_path"` + // MaxSubwordSize Maximum subword character length. Longer subword tokens are excluded from the + // output. Defaults to `15`. + MaxSubwordSize *int `json:"max_subword_size,omitempty"` + // MinSubwordSize Minimum subword character length. Shorter subword tokens are excluded from + // the output. Defaults to `2`. + MinSubwordSize *int `json:"min_subword_size,omitempty"` + // MinWordSize Minimum word character length. Shorter word tokens are excluded from the + // output. Defaults to `5`. + MinWordSize *int `json:"min_word_size,omitempty"` + // NoOverlappingMatches If `true`, do not allow overlapping tokens. Defaults to `false`. + NoOverlappingMatches *bool `json:"no_overlapping_matches,omitempty"` + // NoSubMatches If `true`, do not match sub tokens in tokens that are in the word list. + // Defaults to `false`. + NoSubMatches *bool `json:"no_sub_matches,omitempty"` + // OnlyLongestMatch If `true`, only include the longest matching subword. Defaults to `false`. + OnlyLongestMatch *bool `json:"only_longest_match,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` + // WordList A list of subwords to look for in the token stream. If found, the subword is + // included in the token output. + // Either this parameter or `word_list_path` must be specified. + WordList []string `json:"word_list,omitempty"` + // WordListPath Path to a file that contains a list of subwords to find in the token stream. + // If found, the subword is included in the token output. + // This path must be absolute or relative to the config location, and the file + // must be UTF-8 encoded. Each token in the file must be separated by a line + // break. + // Either this parameter or `word_list` must be specified. + WordListPath *string `json:"word_list_path,omitempty"` } func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error { @@ -69,7 +94,7 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.HyphenationPatternsPath = &o + s.HyphenationPatternsPath = o case "max_subword_size": @@ -119,6 +144,34 @@ func (s *HyphenationDecompounderTokenFilter) UnmarshalJSON(data []byte) error { s.MinWordSize = &f } + case "no_overlapping_matches": + 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", "NoOverlappingMatches", err) + } + s.NoOverlappingMatches = &value + case bool: + s.NoOverlappingMatches = &v + } + + case "no_sub_matches": + 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", "NoSubMatches", err) + } + s.NoSubMatches = &value + case bool: + s.NoSubMatches = &v + } + case "only_longest_match": var tmp any dec.Decode(&tmp) @@ -173,6 +226,8 @@ func (s HyphenationDecompounderTokenFilter) MarshalJSON() ([]byte, error) { MaxSubwordSize: s.MaxSubwordSize, MinSubwordSize: s.MinSubwordSize, MinWordSize: s.MinWordSize, + NoOverlappingMatches: s.NoOverlappingMatches, + NoSubMatches: s.NoSubMatches, OnlyLongestMatch: s.OnlyLongestMatch, Type: s.Type, Version: s.Version, @@ -192,8 +247,6 @@ func NewHyphenationDecompounderTokenFilter() *HyphenationDecompounderTokenFilter return r } -// true - type HyphenationDecompounderTokenFilterVariant interface { HyphenationDecompounderTokenFilterCaster() *HyphenationDecompounderTokenFilter } @@ -201,3 +254,8 @@ type HyphenationDecompounderTokenFilterVariant interface { func (s *HyphenationDecompounderTokenFilter) HyphenationDecompounderTokenFilterCaster() *HyphenationDecompounderTokenFilter { return s } + +func (s *HyphenationDecompounderTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/icuanalyzer.go b/typedapi/types/icuanalyzer.go index 3ab162ac24..7df7d07931 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // IcuAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L68-L72 type IcuAnalyzer struct { Method icunormalizationtype.IcuNormalizationType `json:"method"` Mode icunormalizationmode.IcuNormalizationMode `json:"mode"` @@ -57,8 +57,6 @@ func NewIcuAnalyzer() *IcuAnalyzer { return r } -// true - type IcuAnalyzerVariant interface { IcuAnalyzerCaster() *IcuAnalyzer } @@ -66,3 +64,8 @@ type IcuAnalyzerVariant interface { func (s *IcuAnalyzer) IcuAnalyzerCaster() *IcuAnalyzer { return s } + +func (s *IcuAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/icucollationproperty.go b/typedapi/types/icucollationproperty.go index ba441931dd..664ceb2a81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -39,7 +39,7 @@ import ( // IcuCollationProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L103-L127 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L103-L127 type IcuCollationProperty struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` @@ -306,6 +306,12 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -746,6 +752,12 @@ func (s *IcuCollationProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -1053,8 +1065,6 @@ func NewIcuCollationProperty() *IcuCollationProperty { return r } -// true - type IcuCollationPropertyVariant interface { IcuCollationPropertyCaster() *IcuCollationProperty } @@ -1062,3 +1072,8 @@ type IcuCollationPropertyVariant interface { func (s *IcuCollationProperty) IcuCollationPropertyCaster() *IcuCollationProperty { return s } + +func (s *IcuCollationProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/icucollationtokenfilter.go b/typedapi/types/icucollationtokenfilter.go index 48b191db0a..c241ba6084 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,20 +36,20 @@ import ( // IcuCollationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L51-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L52-L66 type IcuCollationTokenFilter struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` - CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` - CaseLevel *bool `json:"case_level,omitempty"` + CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"caseFirst,omitempty"` + CaseLevel *bool `json:"caseLevel,omitempty"` Country *string `json:"country,omitempty"` Decomposition *icucollationdecomposition.IcuCollationDecomposition `json:"decomposition,omitempty"` - HiraganaQuaternaryMode *bool `json:"hiragana_quaternary_mode,omitempty"` + HiraganaQuaternaryMode *bool `json:"hiraganaQuaternaryMode,omitempty"` Language *string `json:"language,omitempty"` Numeric *bool `json:"numeric,omitempty"` Rules *string `json:"rules,omitempty"` Strength *icucollationstrength.IcuCollationStrength `json:"strength,omitempty"` Type string `json:"type,omitempty"` - VariableTop *string `json:"variable_top,omitempty"` + VariableTop *string `json:"variableTop,omitempty"` Variant *string `json:"variant,omitempty"` Version *string `json:"version,omitempty"` } @@ -74,12 +74,12 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Alternate", err) } - case "case_first": + case "caseFirst": if err := dec.Decode(&s.CaseFirst); err != nil { return fmt.Errorf("%s | %w", "CaseFirst", err) } - case "case_level": + case "caseLevel": var tmp any dec.Decode(&tmp) switch v := tmp.(type) { @@ -110,7 +110,7 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Decomposition", err) } - case "hiragana_quaternary_mode": + case "hiraganaQuaternaryMode": var tmp any dec.Decode(&tmp) switch v := tmp.(type) { @@ -172,7 +172,7 @@ func (s *IcuCollationTokenFilter) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Type", err) } - case "variable_top": + case "variableTop": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { return fmt.Errorf("%s | %w", "VariableTop", err) @@ -238,8 +238,6 @@ func NewIcuCollationTokenFilter() *IcuCollationTokenFilter { return r } -// true - type IcuCollationTokenFilterVariant interface { IcuCollationTokenFilterCaster() *IcuCollationTokenFilter } @@ -247,3 +245,8 @@ type IcuCollationTokenFilterVariant interface { func (s *IcuCollationTokenFilter) IcuCollationTokenFilterCaster() *IcuCollationTokenFilter { return s } + +func (s *IcuCollationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/icufoldingtokenfilter.go b/typedapi/types/icufoldingtokenfilter.go index d8389f51e5..a89727a6fc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IcuFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L47-L50 type IcuFoldingTokenFilter struct { Type string `json:"type,omitempty"` UnicodeSetFilter string `json:"unicode_set_filter"` @@ -101,8 +101,6 @@ func NewIcuFoldingTokenFilter() *IcuFoldingTokenFilter { return r } -// true - type IcuFoldingTokenFilterVariant interface { IcuFoldingTokenFilterCaster() *IcuFoldingTokenFilter } @@ -110,3 +108,8 @@ type IcuFoldingTokenFilterVariant interface { func (s *IcuFoldingTokenFilter) IcuFoldingTokenFilterCaster() *IcuFoldingTokenFilter { return s } + +func (s *IcuFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/icunormalizationcharfilter.go b/typedapi/types/icunormalizationcharfilter.go index 0a838b70e4..75fa23c672 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,6 +26,7 @@ import ( "errors" "fmt" "io" + "strconv" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationmode" "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" @@ -33,12 +34,13 @@ import ( // IcuNormalizationCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L40-L45 type IcuNormalizationCharFilter struct { - Mode *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"` - Name *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + Mode *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"` + Name *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"` + Type string `json:"type,omitempty"` + UnicodeSetFilter *string `json:"unicode_set_filter,omitempty"` + Version *string `json:"version,omitempty"` } func (s *IcuNormalizationCharFilter) UnmarshalJSON(data []byte) error { @@ -71,6 +73,18 @@ func (s *IcuNormalizationCharFilter) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Type", err) } + case "unicode_set_filter": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "UnicodeSetFilter", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.UnicodeSetFilter = &o + case "version": if err := dec.Decode(&s.Version); err != nil { return fmt.Errorf("%s | %w", "Version", err) @@ -85,10 +99,11 @@ func (s *IcuNormalizationCharFilter) UnmarshalJSON(data []byte) error { func (s IcuNormalizationCharFilter) MarshalJSON() ([]byte, error) { type innerIcuNormalizationCharFilter IcuNormalizationCharFilter tmp := innerIcuNormalizationCharFilter{ - Mode: s.Mode, - Name: s.Name, - Type: s.Type, - Version: s.Version, + Mode: s.Mode, + Name: s.Name, + Type: s.Type, + UnicodeSetFilter: s.UnicodeSetFilter, + Version: s.Version, } tmp.Type = "icu_normalizer" @@ -103,8 +118,6 @@ func NewIcuNormalizationCharFilter() *IcuNormalizationCharFilter { return r } -// true - type IcuNormalizationCharFilterVariant interface { IcuNormalizationCharFilterCaster() *IcuNormalizationCharFilter } @@ -112,3 +125,8 @@ type IcuNormalizationCharFilterVariant interface { func (s *IcuNormalizationCharFilter) IcuNormalizationCharFilterCaster() *IcuNormalizationCharFilter { return s } + +func (s *IcuNormalizationCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition { + o := CharFilterDefinition(s) + return &o +} diff --git a/typedapi/types/icunormalizationtokenfilter.go b/typedapi/types/icunormalizationtokenfilter.go index ba580146b8..00038e988f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // IcuNormalizationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L35-L38 type IcuNormalizationTokenFilter struct { Name icunormalizationtype.IcuNormalizationType `json:"name"` Type string `json:"type,omitempty"` @@ -95,8 +95,6 @@ func NewIcuNormalizationTokenFilter() *IcuNormalizationTokenFilter { return r } -// true - type IcuNormalizationTokenFilterVariant interface { IcuNormalizationTokenFilterCaster() *IcuNormalizationTokenFilter } @@ -104,3 +102,8 @@ type IcuNormalizationTokenFilterVariant interface { func (s *IcuNormalizationTokenFilter) IcuNormalizationTokenFilterCaster() *IcuNormalizationTokenFilter { return s } + +func (s *IcuNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/icutokenizer.go b/typedapi/types/icutokenizer.go index 15e9d3c381..c497aa4c0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IcuTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L30-L33 type IcuTokenizer struct { RuleFiles string `json:"rule_files"` Type string `json:"type,omitempty"` @@ -101,8 +101,6 @@ func NewIcuTokenizer() *IcuTokenizer { return r } -// true - type IcuTokenizerVariant interface { IcuTokenizerCaster() *IcuTokenizer } @@ -110,3 +108,8 @@ type IcuTokenizerVariant interface { func (s *IcuTokenizer) IcuTokenizerCaster() *IcuTokenizer { return s } + +func (s *IcuTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/icutransformtokenfilter.go b/typedapi/types/icutransformtokenfilter.go index 58d16fe46f..ff82432a01 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IcuTransformTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/icu-plugin.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/icu-plugin.ts#L24-L28 type IcuTransformTokenFilter struct { Dir *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"` Id string `json:"id"` @@ -110,8 +110,6 @@ func NewIcuTransformTokenFilter() *IcuTransformTokenFilter { return r } -// true - type IcuTransformTokenFilterVariant interface { IcuTransformTokenFilterCaster() *IcuTransformTokenFilter } @@ -119,3 +117,8 @@ type IcuTransformTokenFilterVariant interface { func (s *IcuTransformTokenFilter) IcuTransformTokenFilterCaster() *IcuTransformTokenFilter { return s } + +func (s *IcuTransformTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/ids.go b/typedapi/types/ids.go index fa63e2c6e4..ed4059b266 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Ids type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L56-L56 type Ids []string type IdsVariant interface { diff --git a/typedapi/types/idsquery.go b/typedapi/types/idsquery.go index 27e13f1b6e..b6637aff5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IdsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -115,8 +115,6 @@ func NewIdsQuery() *IdsQuery { return r } -// true - type IdsQueryVariant interface { IdsQueryCaster() *IdsQuery } diff --git a/typedapi/types/ilm.go b/typedapi/types/ilm.go index ea9800bb4d..c3e802d6c2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Ilm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L172-L175 type Ilm struct { PolicyCount int `json:"policy_count"` PolicyStats []IlmPolicyStatistics `json:"policy_stats"` @@ -84,5 +84,3 @@ func NewIlm() *Ilm { return r } - -// false diff --git a/typedapi/types/ilmactions.go b/typedapi/types/ilmactions.go index ee2e52b2c2..35e8b52a2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IlmActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L39-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L39-L93 type IlmActions struct { // Allocate Phases allowed: warm, cold. Allocate *AllocateAction `json:"allocate,omitempty"` @@ -59,8 +59,6 @@ func NewIlmActions() *IlmActions { return r } -// true - type IlmActionsVariant interface { IlmActionsCaster() *IlmActions } diff --git a/typedapi/types/ilmindicator.go b/typedapi/types/ilmindicator.go index e7312aea38..9f18df4e9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L164-L168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L165-L169 type IlmIndicator struct { Details *IlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewIlmIndicator() *IlmIndicator { return r } - -// false diff --git a/typedapi/types/ilmindicatordetails.go b/typedapi/types/ilmindicatordetails.go index 67a37d3231..f415047c08 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L169-L173 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L170-L174 type IlmIndicatorDetails struct { IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` Policies int64 `json:"policies"` @@ -102,5 +102,3 @@ func NewIlmIndicatorDetails() *IlmIndicatorDetails { return r } - -// false diff --git a/typedapi/types/ilmpolicy.go b/typedapi/types/ilmpolicy.go index a87d87660d..8d85f99570 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IlmPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Policy.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Policy.ts#L23-L29 type IlmPolicy struct { // Meta_ Arbitrary metadata that is not automatically generated or used by // Elasticsearch. @@ -75,8 +75,6 @@ func NewIlmPolicy() *IlmPolicy { return r } -// true - type IlmPolicyVariant interface { IlmPolicyCaster() *IlmPolicy } diff --git a/typedapi/types/ilmpolicystatistics.go b/typedapi/types/ilmpolicystatistics.go index 47fd135fa8..55121648a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IlmPolicyStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L167-L170 type IlmPolicyStatistics struct { IndicesManaged int `json:"indices_managed"` Phases UsagePhases `json:"phases"` @@ -84,5 +84,3 @@ func NewIlmPolicyStatistics() *IlmPolicyStatistics { return r } - -// false diff --git a/typedapi/types/impact.go b/typedapi/types/impact.go index 2d9d66daa4..577bc56192 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Impact type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L68-L73 type Impact struct { Description string `json:"description"` Id string `json:"id"` @@ -112,5 +112,3 @@ func NewImpact() *Impact { return r } - -// false diff --git a/typedapi/types/includedinvalidation.go b/typedapi/types/includedinvalidation.go index 4ae4746b5b..f62be30aff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // IncludedInValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L73-L76 type IncludedInValidation struct { Constraint []ScalarValue `json:"constraint"` Type string `json:"type,omitempty"` @@ -52,8 +52,6 @@ func NewIncludedInValidation() *IncludedInValidation { return r } -// true - type IncludedInValidationVariant interface { IncludedInValidationCaster() *IncludedInValidation } @@ -61,3 +59,8 @@ type IncludedInValidationVariant interface { func (s *IncludedInValidation) IncludedInValidationCaster() *IncludedInValidation { return s } + +func (s *IncludedInValidation) ValidationCaster() *Validation { + o := Validation(s) + return &o +} diff --git a/typedapi/types/indexaction.go b/typedapi/types/indexaction.go index f777c5e7fc..39359488ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L256-L265 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L256-L265 type IndexAction struct { DocId *string `json:"doc_id,omitempty"` ExecutionTimeField *string `json:"execution_time_field,omitempty"` @@ -100,8 +100,6 @@ func NewIndexAction() *IndexAction { return r } -// true - type IndexActionVariant interface { IndexActionCaster() *IndexAction } diff --git a/typedapi/types/indexaliases.go b/typedapi/types/indexaliases.go index 2b896a8b65..5a872f7f66 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexAliases type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_alias/_types/response.ts#L24-L26 type IndexAliases struct { Aliases map[string]AliasDefinition `json:"aliases"` } @@ -35,5 +35,3 @@ func NewIndexAliases() *IndexAliases { return r } - -// false diff --git a/typedapi/types/indexanddatastreamaction.go b/typedapi/types/indexanddatastreamaction.go index 3e0b22cb78..7c77e54586 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexAndDataStreamAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/modify_data_stream/types.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/modify_data_stream/types.ts#L39-L44 type IndexAndDataStreamAction struct { // DataStream Data stream targeted by the action. DataStream string `json:"data_stream"` @@ -75,8 +75,6 @@ func NewIndexAndDataStreamAction() *IndexAndDataStreamAction { return r } -// true - type IndexAndDataStreamActionVariant interface { IndexAndDataStreamActionCaster() *IndexAndDataStreamAction } diff --git a/typedapi/types/indexcapabilities.go b/typedapi/types/indexcapabilities.go index de865de8ef..4a7b166e2e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 type IndexCapabilities struct { RollupJobs []RollupJobSummary `json:"rollup_jobs"` } @@ -33,5 +33,3 @@ func NewIndexCapabilities() *IndexCapabilities { return r } - -// false diff --git a/typedapi/types/indexdetails.go b/typedapi/types/indexdetails.go index 9f1f03e76e..5ef569dc84 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 type IndexDetails struct { MaxSegmentsPerShard int64 `json:"max_segments_per_shard"` ShardCount int `json:"shard_count"` @@ -116,5 +116,3 @@ func NewIndexDetails() *IndexDetails { return r } - -// false diff --git a/typedapi/types/indexfield.go b/typedapi/types/indexfield.go index 07fad65c33..5db3d1d431 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L46-L48 type IndexField struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewIndexField() *IndexField { return r } -// true - type IndexFieldVariant interface { IndexFieldCaster() *IndexField } diff --git a/typedapi/types/indexhealthstats.go b/typedapi/types/indexhealthstats.go index e549ba0fc1..0ef7983289 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndexHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/health/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/health/types.ts#L24-L35 type IndexHealthStats struct { ActivePrimaryShards int `json:"active_primary_shards"` ActiveShards int `json:"active_shards"` @@ -216,5 +216,3 @@ func NewIndexHealthStats() *IndexHealthStats { return r } - -// false diff --git a/typedapi/types/indexingpressurememorysummary.go b/typedapi/types/indexingpressurememorysummary.go deleted file mode 100644 index 6352b6e5dc..0000000000 --- a/typedapi/types/indexingpressurememorysummary.go +++ /dev/null @@ -1,193 +0,0 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -// Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb - -package types - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "strconv" -) - -// IndexingPressureMemorySummary type. -// -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/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"` - CoordinatingInBytes int64 `json:"coordinating_in_bytes"` - CoordinatingRejections *int64 `json:"coordinating_rejections,omitempty"` - PrimaryInBytes int64 `json:"primary_in_bytes"` - PrimaryRejections *int64 `json:"primary_rejections,omitempty"` - ReplicaInBytes int64 `json:"replica_in_bytes"` - ReplicaRejections *int64 `json:"replica_rejections,omitempty"` -} - -func (s *IndexingPressureMemorySummary) 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 "all_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "AllInBytes", err) - } - s.AllInBytes = value - case float64: - f := int64(v) - s.AllInBytes = f - } - - case "combined_coordinating_and_primary_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "CombinedCoordinatingAndPrimaryInBytes", err) - } - s.CombinedCoordinatingAndPrimaryInBytes = value - case float64: - f := int64(v) - s.CombinedCoordinatingAndPrimaryInBytes = f - } - - case "coordinating_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "CoordinatingInBytes", err) - } - s.CoordinatingInBytes = value - case float64: - f := int64(v) - s.CoordinatingInBytes = f - } - - case "coordinating_rejections": - 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", "CoordinatingRejections", err) - } - s.CoordinatingRejections = &value - case float64: - f := int64(v) - s.CoordinatingRejections = &f - } - - case "primary_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "PrimaryInBytes", err) - } - s.PrimaryInBytes = value - case float64: - f := int64(v) - s.PrimaryInBytes = f - } - - case "primary_rejections": - 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", "PrimaryRejections", err) - } - s.PrimaryRejections = &value - case float64: - f := int64(v) - s.PrimaryRejections = &f - } - - case "replica_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "ReplicaInBytes", err) - } - s.ReplicaInBytes = value - case float64: - f := int64(v) - s.ReplicaInBytes = f - } - - case "replica_rejections": - 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", "ReplicaRejections", err) - } - s.ReplicaRejections = &value - case float64: - f := int64(v) - s.ReplicaRejections = &f - } - - } - } - return nil -} - -// NewIndexingPressureMemorySummary returns a IndexingPressureMemorySummary. -func NewIndexingPressureMemorySummary() *IndexingPressureMemorySummary { - r := &IndexingPressureMemorySummary{} - - return r -} - -// false diff --git a/typedapi/types/indexingslowlogsettings.go b/typedapi/types/indexingslowlogsettings.go index 38416bbbce..5a57c01dd3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexingSlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L588-L593 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L592-L597 type IndexingSlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` @@ -113,8 +113,6 @@ func NewIndexingSlowlogSettings() *IndexingSlowlogSettings { return r } -// true - type IndexingSlowlogSettingsVariant interface { IndexingSlowlogSettingsCaster() *IndexingSlowlogSettings } diff --git a/typedapi/types/indexingslowlogtresholds.go b/typedapi/types/indexingslowlogtresholds.go index 2623113877..1122ec7a4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexingSlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L595-L602 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L599-L606 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`. @@ -37,8 +37,6 @@ func NewIndexingSlowlogTresholds() *IndexingSlowlogTresholds { return r } -// true - type IndexingSlowlogTresholdsVariant interface { IndexingSlowlogTresholdsCaster() *IndexingSlowlogTresholds } diff --git a/typedapi/types/indexingstats.go b/typedapi/types/indexingstats.go index 56f9fee1b5..190fa188c9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L146-L162 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L168-L184 type IndexingStats struct { DeleteCurrent int64 `json:"delete_current"` DeleteTime Duration `json:"delete_time,omitempty"` @@ -236,5 +236,3 @@ func NewIndexingStats() *IndexingStats { return r } - -// false diff --git a/typedapi/types/indexmappingrecord.go b/typedapi/types/indexmappingrecord.go index 629dd165ab..954bba8532 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexMappingRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 type IndexMappingRecord struct { Item *TypeMapping `json:"item,omitempty"` Mappings TypeMapping `json:"mappings"` @@ -34,5 +34,3 @@ func NewIndexMappingRecord() *IndexMappingRecord { return r } - -// false diff --git a/typedapi/types/indexoperation.go b/typedapi/types/indexoperation.go index 7cf8623a51..7de11e87e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndexOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L142-L142 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -170,8 +170,6 @@ func NewIndexOperation() *IndexOperation { return r } -// true - type IndexOperationVariant interface { IndexOperationCaster() *IndexOperation } diff --git a/typedapi/types/indexprivilegescheck.go b/typedapi/types/indexprivilegescheck.go index d30af2fe1e..6c8a9dd96a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndexPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/types.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -112,8 +112,6 @@ func NewIndexPrivilegesCheck() *IndexPrivilegesCheck { return r } -// true - type IndexPrivilegesCheckVariant interface { IndexPrivilegesCheckCaster() *IndexPrivilegesCheck } diff --git a/typedapi/types/indexresult.go b/typedapi/types/indexresult.go index ea78d7e609..ede2fbe0dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L267-L269 type IndexResult struct { Response IndexResultSummary `json:"response"` } @@ -33,5 +33,3 @@ func NewIndexResult() *IndexResult { return r } - -// false diff --git a/typedapi/types/indexresultsummary.go b/typedapi/types/indexresultsummary.go index ed9f9fdf85..72076ad66c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndexResultSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L271-L277 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L271-L277 type IndexResultSummary struct { Created bool `json:"created"` Id string `json:"id"` @@ -102,5 +102,3 @@ func NewIndexResultSummary() *IndexResultSummary { return r } - -// false diff --git a/typedapi/types/indexrouting.go b/typedapi/types/indexrouting.go index d6f5837000..22a16c5331 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L22-L25 type IndexRouting struct { Allocation *IndexRoutingAllocation `json:"allocation,omitempty"` Rebalance *IndexRoutingRebalance `json:"rebalance,omitempty"` @@ -35,8 +35,6 @@ func NewIndexRouting() *IndexRouting { return r } -// true - type IndexRoutingVariant interface { IndexRoutingCaster() *IndexRouting } diff --git a/typedapi/types/indexroutingallocation.go b/typedapi/types/indexroutingallocation.go index 8394ec2a98..b4266fd085 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingAllocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L27-L32 type IndexRoutingAllocation struct { Disk *IndexRoutingAllocationDisk `json:"disk,omitempty"` Enable *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"` @@ -41,8 +41,6 @@ func NewIndexRoutingAllocation() *IndexRoutingAllocation { return r } -// true - type IndexRoutingAllocationVariant interface { IndexRoutingAllocationCaster() *IndexRoutingAllocation } diff --git a/typedapi/types/indexroutingallocationdisk.go b/typedapi/types/indexroutingallocationdisk.go index 4461ca9992..ab85489fd1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,9 +31,9 @@ import ( // IndexRoutingAllocationDisk type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L62-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L62-L64 type IndexRoutingAllocationDisk struct { - ThresholdEnabled string `json:"threshold_enabled,omitempty"` + ThresholdEnabled *string `json:"threshold_enabled,omitempty"` } func (s *IndexRoutingAllocationDisk) UnmarshalJSON(data []byte) error { @@ -61,7 +61,7 @@ func (s *IndexRoutingAllocationDisk) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.ThresholdEnabled = o + s.ThresholdEnabled = &o } } @@ -75,8 +75,6 @@ func NewIndexRoutingAllocationDisk() *IndexRoutingAllocationDisk { return r } -// true - type IndexRoutingAllocationDiskVariant interface { IndexRoutingAllocationDiskCaster() *IndexRoutingAllocationDisk } diff --git a/typedapi/types/indexroutingallocationinclude.go b/typedapi/types/indexroutingallocationinclude.go index f718ceca73..6d08b39163 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L52-L55 type IndexRoutingAllocationInclude struct { Id_ *string `json:"_id,omitempty"` TierPreference_ *string `json:"_tier_preference,omitempty"` @@ -81,8 +81,6 @@ func NewIndexRoutingAllocationInclude() *IndexRoutingAllocationInclude { return r } -// true - type IndexRoutingAllocationIncludeVariant interface { IndexRoutingAllocationIncludeCaster() *IndexRoutingAllocationInclude } diff --git a/typedapi/types/indexroutingallocationinitialrecovery.go b/typedapi/types/indexroutingallocationinitialrecovery.go index 6e64489eec..6d1e56efcd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexRoutingAllocationInitialRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L57-L59 type IndexRoutingAllocationInitialRecovery struct { Id_ *string `json:"_id,omitempty"` } @@ -67,8 +67,6 @@ func NewIndexRoutingAllocationInitialRecovery() *IndexRoutingAllocationInitialRe return r } -// true - type IndexRoutingAllocationInitialRecoveryVariant interface { IndexRoutingAllocationInitialRecoveryCaster() *IndexRoutingAllocationInitialRecovery } diff --git a/typedapi/types/indexroutingrebalance.go b/typedapi/types/indexroutingrebalance.go index 3d7bb33f4a..6d7efbd8f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // IndexRoutingRebalance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexRouting.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexRouting.ts#L34-L36 type IndexRoutingRebalance struct { Enable indexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"` } @@ -38,8 +38,6 @@ func NewIndexRoutingRebalance() *IndexRoutingRebalance { return r } -// true - type IndexRoutingRebalanceVariant interface { IndexRoutingRebalanceCaster() *IndexRoutingRebalance } diff --git a/typedapi/types/indexsegment.go b/typedapi/types/indexsegment.go index 58a7a2085c..dfb039ebdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/segments/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/segments/types.ts#L24-L26 type IndexSegment struct { Shards map[string][]ShardsSegment `json:"shards"` } @@ -35,5 +35,3 @@ func NewIndexSegment() *IndexSegment { return r } - -// false diff --git a/typedapi/types/indexsegmentsort.go b/typedapi/types/indexsegmentsort.go index 3243c80564..b3f13c19f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // IndexSegmentSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSegmentSort.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSegmentSort.ts#L22-L27 type IndexSegmentSort struct { Field []string `json:"field,omitempty"` Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"` @@ -133,8 +133,6 @@ func NewIndexSegmentSort() *IndexSegmentSort { return r } -// true - type IndexSegmentSortVariant interface { IndexSegmentSortCaster() *IndexSegmentSort } diff --git a/typedapi/types/indexsettingblocks.go b/typedapi/types/indexsettingblocks.go index 77f1e2fe8f..27eecf5b92 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexSettingBlocks type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L262-L268 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L264-L270 type IndexSettingBlocks struct { Metadata Stringifiedboolean `json:"metadata,omitempty"` Read Stringifiedboolean `json:"read,omitempty"` @@ -91,8 +91,6 @@ func NewIndexSettingBlocks() *IndexSettingBlocks { return r } -// true - type IndexSettingBlocksVariant interface { IndexSettingBlocksCaster() *IndexSettingBlocks } diff --git a/typedapi/types/indexsettings.go b/typedapi/types/indexsettings.go index fc16321179..e48a1d165e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,11 +33,13 @@ import ( // IndexSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L70-L176 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L70-L178 type IndexSettings struct { Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"` // Analyze Settings to define analyzers, tokenizers, token filters and character // filters. + // Refer to the linked documentation for step-by-step examples of updating + // analyzers on existing indices. Analyze *SettingsAnalyze `json:"analyze,omitempty"` AutoExpandReplicas any `json:"auto_expand_replicas,omitempty"` Blocks *IndexSettingBlocks `json:"blocks,omitempty"` @@ -47,9 +49,9 @@ type IndexSettings struct { CreationDateString DateTime `json:"creation_date_string,omitempty"` DefaultPipeline *string `json:"default_pipeline,omitempty"` FinalPipeline *string `json:"final_pipeline,omitempty"` - Format string `json:"format,omitempty"` + Format *string `json:"format,omitempty"` GcDeletes Duration `json:"gc_deletes,omitempty"` - Hidden string `json:"hidden,omitempty"` + Hidden *string `json:"hidden,omitempty"` Highlight *SettingsHighlight `json:"highlight,omitempty"` Index *IndexSettings `json:"index,omitempty"` IndexSettings map[string]json.RawMessage `json:"-"` @@ -73,10 +75,10 @@ type IndexSettings struct { MaxTermsCount *int `json:"max_terms_count,omitempty"` Merge *Merge `json:"merge,omitempty"` Mode *string `json:"mode,omitempty"` - NumberOfReplicas string `json:"number_of_replicas,omitempty"` + NumberOfReplicas *string `json:"number_of_replicas,omitempty"` NumberOfRoutingShards *int `json:"number_of_routing_shards,omitempty"` - NumberOfShards string `json:"number_of_shards,omitempty"` - Priority string `json:"priority,omitempty"` + NumberOfShards *string `json:"number_of_shards,omitempty"` + Priority *string `json:"priority,omitempty"` ProvidedName *string `json:"provided_name,omitempty"` Queries *Queries `json:"queries,omitempty"` QueryString *SettingsQueryString `json:"query_string,omitempty"` @@ -98,7 +100,7 @@ type IndexSettings struct { TopMetricsMaxSize *int `json:"top_metrics_max_size,omitempty"` Translog *Translog `json:"translog,omitempty"` Uuid *string `json:"uuid,omitempty"` - VerifiedBeforeClose string `json:"verified_before_close,omitempty"` + VerifiedBeforeClose *string `json:"verified_before_close,omitempty"` Version *IndexVersioning `json:"version,omitempty"` } @@ -184,7 +186,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Format = o + s.Format = &o case "gc_deletes": if err := dec.Decode(&s.GcDeletes); err != nil { @@ -201,7 +203,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Hidden = o + s.Hidden = &o case "highlight": if err := dec.Decode(&s.Highlight); err != nil { @@ -450,7 +452,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.NumberOfReplicas = o + s.NumberOfReplicas = &o case "number_of_routing_shards": @@ -478,7 +480,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.NumberOfShards = o + s.NumberOfShards = &o case "priority": var tmp json.RawMessage @@ -490,7 +492,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Priority = o + s.Priority = &o case "provided_name": if err := dec.Decode(&s.ProvidedName); err != nil { @@ -675,7 +677,7 @@ func (s *IndexSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.VerifiedBeforeClose = o + s.VerifiedBeforeClose = &o case "version": if err := dec.Decode(&s.Version); err != nil { @@ -739,8 +741,6 @@ func NewIndexSettings() *IndexSettings { return r } -// true - type IndexSettingsVariant interface { IndexSettingsCaster() *IndexSettings } diff --git a/typedapi/types/indexsettingsanalysis.go b/typedapi/types/indexsettingsanalysis.go index 0b6b00728d..468a61dc4d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L333-L339 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L335-L341 type IndexSettingsAnalysis struct { Analyzer map[string]Analyzer `json:"analyzer,omitempty"` CharFilter map[string]CharFilter `json:"char_filter,omitempty"` @@ -440,12 +440,60 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { buf.Seek(0, io.SeekStart) switch kind["type"] { + case "apostrophe": + oo := NewApostropheTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "arabic_stem": + oo := NewArabicStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "arabic_normalization": + oo := NewArabicNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "asciifolding": oo := NewAsciiFoldingTokenFilter() if err := localDec.Decode(&oo); err != nil { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "bengali_normalization": + oo := NewBengaliNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "brazilian_stem": + oo := NewBrazilianStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "cjk_bigram": + oo := NewCjkBigramTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "cjk_width": + oo := NewCjkWidthTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "classic": + oo := NewClassicTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "common_grams": oo := NewCommonGramsTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -458,12 +506,30 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "czech_stem": + oo := NewCzechStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "decimal_digit": + oo := NewDecimalDigitTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "delimited_payload": oo := NewDelimitedPayloadTokenFilter() if err := localDec.Decode(&oo); err != nil { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "dutch_stem": + oo := NewDutchStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "edge_ngram": oo := NewEdgeNGramTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -482,6 +548,36 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "flatten_graph": + oo := NewFlattenGraphTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "french_stem": + oo := NewFrenchStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "german_normalization": + oo := NewGermanNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "german_stem": + oo := NewGermanStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "hindi_normalization": + oo := NewHindiNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "hunspell": oo := NewHunspellTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -494,6 +590,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "indic_normalization": + oo := NewIndicNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "keep_types": oo := NewKeepTypesTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -512,6 +614,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "keyword_repeat": + oo := NewKeywordRepeatTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "kstem": oo := NewKStemTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -536,6 +644,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "min_hash": + oo := NewMinHashTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "multiplexer": oo := NewMultiplexerTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -566,6 +680,18 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "persian_normalization": + oo := NewPersianNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "persian_stem": + oo := NewPersianStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "porter_stem": oo := NewPorterStemTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -590,6 +716,30 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "russian_stem": + oo := NewRussianStemTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "scandinavian_folding": + oo := NewScandinavianFoldingTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "scandinavian_normalization": + oo := NewScandinavianNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo + case "serbian_normalization": + oo := NewSerbianNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "shingle": oo := NewShingleTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -602,6 +752,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "sorani_normalization": + oo := NewSoraniNormalizationTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "stemmer_override": oo := NewStemmerOverrideTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -668,6 +824,12 @@ func (s *IndexSettingsAnalysis) UnmarshalJSON(data []byte) error { return fmt.Errorf("Filter | %w", err) } s.Filter[key] = oo + case "ja_stop": + oo := NewJaStopTokenFilter() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Filter | %w", err) + } + s.Filter[key] = oo case "kuromoji_stemmer": oo := NewKuromojiStemmerTokenFilter() if err := localDec.Decode(&oo); err != nil { @@ -917,8 +1079,6 @@ func NewIndexSettingsAnalysis() *IndexSettingsAnalysis { return r } -// true - type IndexSettingsAnalysisVariant interface { IndexSettingsAnalysisCaster() *IndexSettingsAnalysis } diff --git a/typedapi/types/indexsettingslifecycle.go b/typedapi/types/indexsettingslifecycle.go index fdb458a4f8..015cf07e30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexSettingsLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L284-L323 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L286-L325 type IndexSettingsLifecycle struct { // IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to // true when ILM completes the rollover action. @@ -58,7 +58,7 @@ type IndexSettingsLifecycle struct { // PreferIlm Preference for the system that manages a data stream backing index // (preferring ILM when both ILM and DLM are // applicable for an index). - PreferIlm string `json:"prefer_ilm,omitempty"` + PreferIlm *string `json:"prefer_ilm,omitempty"` // RolloverAlias The index alias to update when the index rolls over. Specify when using a // policy that contains a rollover action. // When the index rolls over, the alias is updated to reflect that the index is @@ -132,7 +132,7 @@ func (s *IndexSettingsLifecycle) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.PreferIlm = o + s.PreferIlm = &o case "rollover_alias": var tmp json.RawMessage @@ -163,8 +163,6 @@ func NewIndexSettingsLifecycle() *IndexSettingsLifecycle { return r } -// true - type IndexSettingsLifecycleVariant interface { IndexSettingsLifecycleCaster() *IndexSettingsLifecycle } diff --git a/typedapi/types/indexsettingslifecyclestep.go b/typedapi/types/indexsettingslifecyclestep.go index 0731818f02..35623ab08f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsLifecycleStep type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L325-L331 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L327-L333 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). @@ -70,8 +70,6 @@ func NewIndexSettingsLifecycleStep() *IndexSettingsLifecycleStep { return r } -// true - type IndexSettingsLifecycleStepVariant interface { IndexSettingsLifecycleStepCaster() *IndexSettingsLifecycleStep } diff --git a/typedapi/types/indexsettingstimeseries.go b/typedapi/types/indexsettingstimeseries.go index 87863e0f45..4ede4360f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsTimeSeries type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L341-L344 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L343-L346 type IndexSettingsTimeSeries struct { EndTime DateTime `json:"end_time,omitempty"` StartTime DateTime `json:"start_time,omitempty"` @@ -73,8 +73,6 @@ func NewIndexSettingsTimeSeries() *IndexSettingsTimeSeries { return r } -// true - type IndexSettingsTimeSeriesVariant interface { IndexSettingsTimeSeriesCaster() *IndexSettingsTimeSeries } diff --git a/typedapi/types/indexstate.go b/typedapi/types/indexstate.go index ea37c02309..82898b8ee8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexState.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexState.ts#L27-L40 type IndexState struct { Aliases map[string]Alias `json:"aliases,omitempty"` DataStream *string `json:"data_stream,omitempty"` @@ -104,8 +104,6 @@ func NewIndexState() *IndexState { return r } -// true - type IndexStateVariant interface { IndexStateCaster() *IndexState } diff --git a/typedapi/types/indexstats.go b/typedapi/types/indexstats.go index ed1a95f26f..06444663b3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L52-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -72,5 +72,3 @@ func NewIndexStats() *IndexStats { return r } - -// false diff --git a/typedapi/types/indextemplate.go b/typedapi/types/indextemplate.go index 1e66018f8a..8a744a5fa4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexTemplate.ts#L28-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -198,8 +198,6 @@ func NewIndexTemplate() *IndexTemplate { return r } -// true - type IndexTemplateVariant interface { IndexTemplateCaster() *IndexTemplate } diff --git a/typedapi/types/indextemplatedatastreamconfiguration.go b/typedapi/types/indextemplatedatastreamconfiguration.go index af6ef4df20..f00209f7fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexTemplateDataStreamConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexTemplate.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewIndexTemplateDataStreamConfiguration() *IndexTemplateDataStreamConfigura return r } -// true - type IndexTemplateDataStreamConfigurationVariant interface { IndexTemplateDataStreamConfigurationCaster() *IndexTemplateDataStreamConfiguration } diff --git a/typedapi/types/indextemplateitem.go b/typedapi/types/indextemplateitem.go index 74772db65e..55bdc9a062 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IndexTemplateItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 type IndexTemplateItem struct { IndexTemplate IndexTemplate `json:"index_template"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewIndexTemplateItem() *IndexTemplateItem { return r } - -// false diff --git a/typedapi/types/indextemplatemapping.go b/typedapi/types/indextemplatemapping.go index bb6bf6c5df..a9d8922140 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexTemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -49,8 +49,6 @@ func NewIndexTemplateMapping() *IndexTemplateMapping { return r } -// true - type IndexTemplateMappingVariant interface { IndexTemplateMappingCaster() *IndexTemplateMapping } diff --git a/typedapi/types/indextemplatesummary.go b/typedapi/types/indextemplatesummary.go index 0d379fc15f..e3690528cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndexTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexTemplate.ts#L96-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -49,8 +49,6 @@ func NewIndexTemplateSummary() *IndexTemplateSummary { return r } -// true - type IndexTemplateSummaryVariant interface { IndexTemplateSummaryCaster() *IndexTemplateSummary } diff --git a/typedapi/types/indexversioning.go b/typedapi/types/indexversioning.go index 5685378184..1ea59bf46b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndexVersioning type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L279-L282 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L281-L284 type IndexVersioning struct { Created *string `json:"created,omitempty"` CreatedString *string `json:"created_string,omitempty"` @@ -81,8 +81,6 @@ func NewIndexVersioning() *IndexVersioning { return r } -// true - type IndexVersioningVariant interface { IndexVersioningCaster() *IndexVersioning } diff --git a/typedapi/types/indicatornode.go b/typedapi/types/indicatornode.go index d8a72f3789..37110efae6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndicatorNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L92-L95 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L93-L96 type IndicatorNode struct { Name *string `json:"name,omitempty"` NodeId *string `json:"node_id,omitempty"` @@ -87,5 +87,3 @@ func NewIndicatorNode() *IndicatorNode { return r } - -// false diff --git a/typedapi/types/indicators.go b/typedapi/types/indicators.go index 9cd2f49af6..b0f572e230 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Indicators type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L32-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L33-L43 type Indicators struct { DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"` Disk *DiskIndicator `json:"disk,omitempty"` @@ -41,5 +41,3 @@ func NewIndicators() *Indicators { return r } - -// false diff --git a/typedapi/types/indices.go b/typedapi/types/indices.go index abcc27908a..2fda5be0ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Indices type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L61-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L61-L61 type Indices []string type IndicesVariant interface { diff --git a/typedapi/types/indicesaction.go b/typedapi/types/indicesaction.go index 04a21e1548..d46f67f0c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // IndicesAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -78,8 +78,6 @@ func NewIndicesAction() *IndicesAction { return r } -// true - type IndicesActionVariant interface { IndicesActionCaster() *IndicesAction } diff --git a/typedapi/types/indicesblockstatus.go b/typedapi/types/indicesblockstatus.go index 2490c7627c..49ee68436a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndicesBlockStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 type IndicesBlockStatus struct { Blocked bool `json:"blocked"` Name string `json:"name"` @@ -82,5 +82,3 @@ func NewIndicesBlockStatus() *IndicesBlockStatus { return r } - -// false diff --git a/typedapi/types/indicesindexingpressure.go b/typedapi/types/indicesindexingpressure.go index f0966c0ad7..bedd802223 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndicesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L575-L577 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L579-L581 type IndicesIndexingPressure struct { Memory IndicesIndexingPressureMemory `json:"memory"` } @@ -34,8 +34,6 @@ func NewIndicesIndexingPressure() *IndicesIndexingPressure { return r } -// true - type IndicesIndexingPressureVariant interface { IndicesIndexingPressureCaster() *IndicesIndexingPressure } diff --git a/typedapi/types/indicesindexingpressurememory.go b/typedapi/types/indicesindexingpressurememory.go index de81b7bfa7..6e1bcc6d00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndicesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L579-L586 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L583-L590 type IndicesIndexingPressureMemory struct { // Limit Number of outstanding bytes that may be consumed by indexing requests. When // this limit is reached or exceeded, @@ -84,8 +84,6 @@ func NewIndicesIndexingPressureMemory() *IndicesIndexingPressureMemory { return r } -// true - type IndicesIndexingPressureMemoryVariant interface { IndicesIndexingPressureMemoryCaster() *IndicesIndexingPressureMemory } diff --git a/typedapi/types/indicesmodifyaction.go b/typedapi/types/indicesmodifyaction.go index cc5c0c533b..806f8c6580 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // IndicesModifyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/modify_data_stream/types.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -80,8 +80,6 @@ func NewIndicesModifyAction() *IndicesModifyAction { return r } -// true - type IndicesModifyActionVariant interface { IndicesModifyActionCaster() *IndicesModifyAction } diff --git a/typedapi/types/indicesoptions.go b/typedapi/types/indicesoptions.go index bd483274e8..319184282e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndicesOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L332-L359 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L334-L361 type IndicesOptions struct { // AllowNoIndices If false, the request returns an error if any wildcard expression, index // alias, or `_all` value targets only @@ -139,8 +139,6 @@ func NewIndicesOptions() *IndicesOptions { return r } -// true - type IndicesOptionsVariant interface { IndicesOptionsCaster() *IndicesOptions } diff --git a/typedapi/types/indicesprivileges.go b/typedapi/types/indicesprivileges.go index 088d7fcb9f..f6c1a13146 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L216-L242 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -168,8 +168,6 @@ func NewIndicesPrivileges() *IndicesPrivileges { return r } -// true - type IndicesPrivilegesVariant interface { IndicesPrivilegesCaster() *IndicesPrivileges } diff --git a/typedapi/types/indicesprivilegesquery.go b/typedapi/types/indicesprivilegesquery.go index d967fdd670..6066c95a41 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ package types // Query // RoleTemplateQuery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L341-L349 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 914ae56344..23648909b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndicesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/indices/types.ts#L20-L808 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -2051,5 +2051,3 @@ func NewIndicesRecord() *IndicesRecord { return r } - -// false diff --git a/typedapi/types/indicesshardsstats.go b/typedapi/types/indicesshardsstats.go index 08d1a60646..c8e247026d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndicesShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56 type IndicesShardsStats struct { AllFields FieldSummary `json:"all_fields"` Fields map[string]FieldSummary `json:"fields"` @@ -36,5 +36,3 @@ func NewIndicesShardsStats() *IndicesShardsStats { return r } - -// false diff --git a/typedapi/types/indicesshardstats.go b/typedapi/types/indicesshardstats.go index 156f2982be..53aa24c470 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // IndicesShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L192-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L192-L223 type IndicesShardStats struct { Bulk *BulkStats `json:"bulk,omitempty"` Commit *ShardCommit `json:"commit,omitempty"` @@ -64,5 +64,3 @@ func NewIndicesShardStats() *IndicesShardStats { return r } - -// false diff --git a/typedapi/types/indicesshardstores.go b/typedapi/types/indicesshardstores.go index 310ac06673..8ab42c355b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IndicesShardStores type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/shard_stores/types.ts#L25-L27 type IndicesShardStores struct { Shards map[string]ShardStoreWrapper `json:"shards"` } @@ -35,5 +35,3 @@ func NewIndicesShardStores() *IndicesShardStores { return r } - -// false diff --git a/typedapi/types/indicesstats.go b/typedapi/types/indicesstats.go index d169a9a674..961bd18e4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // IndicesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L95-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L95-L110 type IndicesStats struct { Health *healthstatus.HealthStatus `json:"health,omitempty"` Primaries *IndexStats `json:"primaries,omitempty"` @@ -104,5 +104,3 @@ func NewIndicesStats() *IndicesStats { return r } - -// false diff --git a/typedapi/types/indicesvalidationexplanation.go b/typedapi/types/indicesvalidationexplanation.go index 6792b9ffc8..079667325f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IndicesValidationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 type IndicesValidationExplanation struct { Error *string `json:"error,omitempty"` Explanation *string `json:"explanation,omitempty"` @@ -108,5 +108,3 @@ func NewIndicesValidationExplanation() *IndicesValidationExplanation { return r } - -// false diff --git a/typedapi/types/indicesversions.go b/typedapi/types/indicesversions.go index de3e5efdc1..d432382d25 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,13 @@ import ( // IndicesVersions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L263-L268 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L359-L365 type IndicesVersions struct { - IndexCount int `json:"index_count"` - PrimaryShardCount int `json:"primary_shard_count"` - TotalPrimaryBytes int64 `json:"total_primary_bytes"` - Version string `json:"version"` + IndexCount int `json:"index_count"` + PrimaryShardCount int `json:"primary_shard_count"` + TotalPrimaryBytes int64 `json:"total_primary_bytes"` + TotalPrimarySize ByteSize `json:"total_primary_size,omitempty"` + Version string `json:"version"` } func (s *IndicesVersions) UnmarshalJSON(data []byte) error { @@ -101,6 +102,11 @@ func (s *IndicesVersions) UnmarshalJSON(data []byte) error { s.TotalPrimaryBytes = f } + case "total_primary_size": + if err := dec.Decode(&s.TotalPrimarySize); err != nil { + return fmt.Errorf("%s | %w", "TotalPrimarySize", err) + } + case "version": if err := dec.Decode(&s.Version); err != nil { return fmt.Errorf("%s | %w", "Version", err) @@ -117,5 +123,3 @@ func NewIndicesVersions() *IndicesVersions { return r } - -// false diff --git a/typedapi/types/indicnormalizationtokenfilter.go b/typedapi/types/indicnormalizationtokenfilter.go new file mode 100644 index 0000000000..feca26719a --- /dev/null +++ b/typedapi/types/indicnormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// IndicNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L506-L508 +type IndicNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *IndicNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s IndicNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerIndicNormalizationTokenFilter IndicNormalizationTokenFilter + tmp := innerIndicNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "indic_normalization" + + return json.Marshal(tmp) +} + +// NewIndicNormalizationTokenFilter returns a IndicNormalizationTokenFilter. +func NewIndicNormalizationTokenFilter() *IndicNormalizationTokenFilter { + r := &IndicNormalizationTokenFilter{} + + return r +} + +type IndicNormalizationTokenFilterVariant interface { + IndicNormalizationTokenFilterCaster() *IndicNormalizationTokenFilter +} + +func (s *IndicNormalizationTokenFilter) IndicNormalizationTokenFilterCaster() *IndicNormalizationTokenFilter { + return s +} + +func (s *IndicNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/indonesiananalyzer.go b/typedapi/types/indonesiananalyzer.go index baa8800fe6..d8c0a8bc39 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // IndonesianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L213-L218 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L213-L218 type IndonesianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *IndonesianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *IndonesianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewIndonesianAnalyzer() *IndonesianAnalyzer { return r } -// true - type IndonesianAnalyzerVariant interface { IndonesianAnalyzerCaster() *IndonesianAnalyzer } @@ -128,3 +115,8 @@ type IndonesianAnalyzerVariant interface { func (s *IndonesianAnalyzer) IndonesianAnalyzerCaster() *IndonesianAnalyzer { return s } + +func (s *IndonesianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/inferenceaggregate.go b/typedapi/types/inferenceaggregate.go index 7abd241ed6..4853291cbd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L755-L770 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L757-L772 type InferenceAggregate struct { Data map[string]json.RawMessage `json:"-"` FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"` @@ -143,5 +143,3 @@ func NewInferenceAggregate() *InferenceAggregate { return r } - -// false diff --git a/typedapi/types/inferenceaggregation.go b/typedapi/types/inferenceaggregation.go index 8cee1f17a1..b8413d58e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // InferenceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L225-L234 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -108,8 +108,6 @@ func NewInferenceAggregation() *InferenceAggregation { return r } -// true - type InferenceAggregationVariant interface { InferenceAggregationCaster() *InferenceAggregation } diff --git a/typedapi/types/inferencechunkingsettings.go b/typedapi/types/inferencechunkingsettings.go index a601bbefa7..81f19bcf4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceChunkingSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Services.ts#L60-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Services.ts#L254-L283 type InferenceChunkingSettings struct { // MaxChunkSize The maximum size of a chunk in words. // This value cannot be higher than `300` or lower than `20` (for `sentence` @@ -136,8 +136,6 @@ func NewInferenceChunkingSettings() *InferenceChunkingSettings { return r } -// true - type InferenceChunkingSettingsVariant interface { InferenceChunkingSettingsCaster() *InferenceChunkingSettings } diff --git a/typedapi/types/inferenceclassimportance.go b/typedapi/types/inferenceclassimportance.go index c3f8724cb4..3cba396342 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L784-L787 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L786-L789 type InferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` @@ -91,5 +91,3 @@ func NewInferenceClassImportance() *InferenceClassImportance { return r } - -// false diff --git a/typedapi/types/inferenceconfig.go b/typedapi/types/inferenceconfig.go index 127c9276e4..103c67d4cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // InferenceConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1067-L1079 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1067-L1079 type InferenceConfig struct { AdditionalInferenceConfigProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. @@ -74,8 +74,6 @@ func NewInferenceConfig() *InferenceConfig { return r } -// true - type InferenceConfigVariant interface { InferenceConfigCaster() *InferenceConfig } diff --git a/typedapi/types/inferenceconfigclassification.go b/typedapi/types/inferenceconfigclassification.go index 8478e4cd37..62be4e675c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1094-L1120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1094-L1120 type InferenceConfigClassification struct { // NumTopClasses Specifies the number of top class predictions to return. NumTopClasses *int `json:"num_top_classes,omitempty"` @@ -128,8 +128,6 @@ func NewInferenceConfigClassification() *InferenceConfigClassification { return r } -// true - type InferenceConfigClassificationVariant interface { InferenceConfigClassificationCaster() *InferenceConfigClassification } diff --git a/typedapi/types/inferenceconfigcontainer.go b/typedapi/types/inferenceconfigcontainer.go index c6cd233e10..bce3908419 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L236-L242 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/pipeline.ts#L236-L242 type InferenceConfigContainer struct { AdditionalInferenceConfigContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. @@ -74,8 +74,6 @@ func NewInferenceConfigContainer() *InferenceConfigContainer { return r } -// true - type InferenceConfigContainerVariant interface { InferenceConfigContainerCaster() *InferenceConfigContainer } diff --git a/typedapi/types/inferenceconfigcreatecontainer.go b/typedapi/types/inferenceconfigcreatecontainer.go index ef400f3f49..76b062212f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigCreateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L26-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L26-L85 type InferenceConfigCreateContainer struct { AdditionalInferenceConfigCreateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. @@ -91,8 +91,6 @@ func NewInferenceConfigCreateContainer() *InferenceConfigCreateContainer { return r } -// true - type InferenceConfigCreateContainerVariant interface { InferenceConfigCreateContainerCaster() *InferenceConfigCreateContainer } diff --git a/typedapi/types/inferenceconfigregression.go b/typedapi/types/inferenceconfigregression.go index ae69a273c8..d1ffc575e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1081-L1092 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1081-L1092 type InferenceConfigRegression struct { // NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document. NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"` @@ -88,8 +88,6 @@ func NewInferenceConfigRegression() *InferenceConfigRegression { return r } -// true - type InferenceConfigRegressionVariant interface { InferenceConfigRegressionCaster() *InferenceConfigRegression } diff --git a/typedapi/types/inferenceconfigupdatecontainer.go b/typedapi/types/inferenceconfigupdatecontainer.go index 58073243a9..32ee9e9002 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigUpdateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L315-L337 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L315-L337 type InferenceConfigUpdateContainer struct { AdditionalInferenceConfigUpdateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. @@ -90,8 +90,6 @@ func NewInferenceConfigUpdateContainer() *InferenceConfigUpdateContainer { return r } -// true - type InferenceConfigUpdateContainerVariant interface { InferenceConfigUpdateContainerCaster() *InferenceConfigUpdateContainer } diff --git a/typedapi/types/inferenceendpoint.go b/typedapi/types/inferenceendpoint.go index c961ebb3e4..e2a23ff7d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceEndpoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Services.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Services.ts#L42-L62 type InferenceEndpoint struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` @@ -97,8 +97,6 @@ func NewInferenceEndpoint() *InferenceEndpoint { return r } -// true - type InferenceEndpointVariant interface { InferenceEndpointCaster() *InferenceEndpoint } diff --git a/typedapi/types/inferenceendpointinfo.go b/typedapi/types/inferenceendpointinfo.go index 7bf0e6dca3..0e14a009ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // InferenceEndpointInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Services.ts#L46-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Services.ts#L64-L76 type InferenceEndpointInfo struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` @@ -119,5 +119,3 @@ func NewInferenceEndpointInfo() *InferenceEndpointInfo { return r } - -// false diff --git a/typedapi/types/inferencefeatureimportance.go b/typedapi/types/inferencefeatureimportance.go index 9be029ed64..ec6ccc3426 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L778-L782 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L780-L784 type InferenceFeatureImportance struct { Classes []InferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` @@ -97,5 +97,3 @@ func NewInferenceFeatureImportance() *InferenceFeatureImportance { return r } - -// false diff --git a/typedapi/types/inferenceprocessor.go b/typedapi/types/inferenceprocessor.go index c4ce4edd19..20def95f56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1028-L1060 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1028-L1060 type InferenceProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -197,8 +197,6 @@ func NewInferenceProcessor() *InferenceProcessor { return r } -// true - type InferenceProcessorVariant interface { InferenceProcessorCaster() *InferenceProcessor } diff --git a/typedapi/types/inferenceresponseresult.go b/typedapi/types/inferenceresponseresult.go index 74f0d659e7..9baecacd27 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L478-L526 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -200,5 +200,3 @@ func NewInferenceResponseResult() *InferenceResponseResult { return r } - -// false diff --git a/typedapi/types/inferencetopclassentry.go b/typedapi/types/inferencetopclassentry.go index 16bd8ef828..cccb66f593 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InferenceTopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L772-L776 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L774-L778 type InferenceTopClassEntry struct { ClassName FieldValue `json:"class_name"` ClassProbability Float64 `json:"class_probability"` @@ -101,5 +101,3 @@ func NewInferenceTopClassEntry() *InferenceTopClassEntry { return r } - -// false diff --git a/typedapi/types/influence.go b/typedapi/types/influence.go index b8d9c40b6a..bbbe4cf01d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Influence type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Anomaly.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Anomaly.ts#L141-L144 type Influence struct { InfluencerFieldName string `json:"influencer_field_name"` InfluencerFieldValues []string `json:"influencer_field_values"` @@ -80,5 +80,3 @@ func NewInfluence() *Influence { return r } - -// false diff --git a/typedapi/types/influencer.go b/typedapi/types/influencer.go index 738a144f36..b4a1625d23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Influencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Influencer.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -218,5 +218,3 @@ func NewInfluencer() *Influencer { return r } - -// false diff --git a/typedapi/types/infofeaturestate.go b/typedapi/types/infofeaturestate.go index 5f88a93d6b..2f07907fbc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InfoFeatureState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 type InfoFeatureState struct { FeatureName string `json:"feature_name"` Indices []string `json:"indices"` @@ -91,5 +91,3 @@ func NewInfoFeatureState() *InfoFeatureState { return r } - -// false diff --git a/typedapi/types/ingest.go b/typedapi/types/ingest.go index c2aad9b037..13fe7d9e34 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Ingest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L29-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L28-L36 type Ingest struct { Pipeline *string `json:"pipeline,omitempty"` Redact_ *Redact `json:"_redact,omitempty"` @@ -78,5 +78,3 @@ func NewIngest() *Ingest { return r } - -// false diff --git a/typedapi/types/ingestdocumentsimulation.go b/typedapi/types/ingestdocumentsimulation.go index 42ded934d7..acbbec2bd8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IngestDocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -166,5 +166,3 @@ func NewIngestDocumentSimulation() *IngestDocumentSimulation { return r } - -// false diff --git a/typedapi/types/ingestpipeline.go b/typedapi/types/ingestpipeline.go index 48c3e48c4a..92c926eb7d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IngestPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Pipeline.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -125,8 +125,6 @@ func NewIngestPipeline() *IngestPipeline { return r } -// true - type IngestPipelineVariant interface { IngestPipelineCaster() *IngestPipeline } diff --git a/typedapi/types/ingestpipelineparams.go b/typedapi/types/ingestpipelineparams.go index 43b01bd688..5f81800ef5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IngestPipelineParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L148-L153 type IngestPipelineParams struct { ExtractBinaryContent bool `json:"extract_binary_content"` Name string `json:"name"` @@ -120,8 +120,6 @@ func NewIngestPipelineParams() *IngestPipelineParams { return r } -// true - type IngestPipelineParamsVariant interface { IngestPipelineParamsCaster() *IngestPipelineParams } diff --git a/typedapi/types/ingeststats.go b/typedapi/types/ingeststats.go index a5036cfa6e..ff3a2703d7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IngestStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L356-L394 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L358-L396 type IngestStats struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` @@ -173,5 +173,3 @@ func NewIngestStats() *IngestStats { return r } - -// false diff --git a/typedapi/types/ingesttotal.go b/typedapi/types/ingesttotal.go index f11af8138c..076b783c9f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IngestTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L396-L413 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L398-L415 type IngestTotal struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` @@ -120,5 +120,3 @@ func NewIngestTotal() *IngestTotal { return r } - -// false diff --git a/typedapi/types/inlineget.go b/typedapi/types/inlineget.go index 34b33b10e7..56120416ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InlineGet type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L317-L330 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L319-L332 type InlineGet struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` @@ -165,5 +165,3 @@ func NewInlineGet() *InlineGet { return r } - -// false diff --git a/typedapi/types/inlinegetdictuserdefined.go b/typedapi/types/inlinegetdictuserdefined.go index 95f98fc377..6137a95f20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InlineGetDictUserDefined type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L317-L330 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L319-L332 type InlineGetDictUserDefined struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` @@ -169,5 +169,3 @@ func NewInlineGetDictUserDefined() *InlineGetDictUserDefined { return r } - -// false diff --git a/typedapi/types/innerhits.go b/typedapi/types/innerhits.go index 067276436a..b3e877c8de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InnerHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L107-L141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L107-L141 type InnerHits struct { Collapse *FieldCollapse `json:"collapse,omitempty"` DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` @@ -97,19 +97,8 @@ func (s *InnerHits) UnmarshalJSON(data []byte) error { } 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) - } + if err := dec.Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) } case "from": @@ -300,8 +289,6 @@ func NewInnerHits() *InnerHits { return r } -// true - type InnerHitsVariant interface { InnerHitsCaster() *InnerHits } diff --git a/typedapi/types/innerhitsresult.go b/typedapi/types/innerhitsresult.go index 712a499ce8..912a5b2100 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // InnerHitsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L85-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L85-L87 type InnerHitsResult struct { Hits HitsMetadata `json:"hits"` } @@ -33,5 +33,3 @@ func NewInnerHitsResult() *InnerHitsResult { return r } - -// false diff --git a/typedapi/types/innerretriever.go b/typedapi/types/innerretriever.go new file mode 100644 index 0000000000..3bbd99acb6 --- /dev/null +++ b/typedapi/types/innerretriever.go @@ -0,0 +1,102 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scorenormalizer" +) + +// InnerRetriever type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L82-L86 +type InnerRetriever struct { + Normalizer scorenormalizer.ScoreNormalizer `json:"normalizer"` + Retriever RetrieverContainer `json:"retriever"` + Weight float32 `json:"weight"` +} + +func (s *InnerRetriever) 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 "normalizer": + if err := dec.Decode(&s.Normalizer); err != nil { + return fmt.Errorf("%s | %w", "Normalizer", err) + } + + case "retriever": + if err := dec.Decode(&s.Retriever); err != nil { + return fmt.Errorf("%s | %w", "Retriever", err) + } + + case "weight": + 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", "Weight", err) + } + f := float32(value) + s.Weight = f + case float64: + f := float32(v) + s.Weight = f + } + + } + } + return nil +} + +// NewInnerRetriever returns a InnerRetriever. +func NewInnerRetriever() *InnerRetriever { + r := &InnerRetriever{} + + return r +} + +type InnerRetrieverVariant interface { + InnerRetrieverCaster() *InnerRetriever +} + +func (s *InnerRetriever) InnerRetrieverCaster() *InnerRetriever { + return s +} diff --git a/typedapi/types/inprogress.go b/typedapi/types/inprogress.go index dfe8efc487..33cc918449 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 type InProgress struct { Name string `json:"name"` StartTimeMillis int64 `json:"start_time_millis"` @@ -92,5 +92,3 @@ func NewInProgress() *InProgress { return r } - -// false diff --git a/typedapi/types/input.go b/typedapi/types/input.go index a47ff5256a..a0a0e7cdc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Input type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L56-L58 type Input struct { FieldNames []string `json:"field_names"` } @@ -78,8 +78,6 @@ func NewInput() *Input { return r } -// true - type InputVariant interface { InputCaster() *Input } diff --git a/typedapi/types/inputconfig.go b/typedapi/types/inputconfig.go index d075d7a7c7..559d9ab8f7 100644 --- a/typedapi/types/inputconfig.go +++ b/typedapi/types/inputconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // InputConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1062-L1065 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1062-L1065 type InputConfig struct { InputField string `json:"input_field"` OutputField string `json:"output_field"` @@ -88,8 +88,6 @@ func NewInputConfig() *InputConfig { return r } -// true - type InputConfigVariant interface { InputConfigCaster() *InputConfig } diff --git a/typedapi/types/integernumberproperty.go b/typedapi/types/integernumberproperty.go index 684763b220..5f344d4399 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // IntegerNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L170-L173 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L170-L173 type IntegerNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -690,6 +696,12 @@ func (s *IntegerNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -973,8 +985,6 @@ func NewIntegerNumberProperty() *IntegerNumberProperty { return r } -// true - type IntegerNumberPropertyVariant interface { IntegerNumberPropertyCaster() *IntegerNumberProperty } @@ -982,3 +992,8 @@ type IntegerNumberPropertyVariant interface { func (s *IntegerNumberProperty) IntegerNumberPropertyCaster() *IntegerNumberProperty { return s } + +func (s *IntegerNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/integerrangeproperty.go b/typedapi/types/integerrangeproperty.go index 16fa809290..65202b456a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // IntegerRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L42-L44 type IntegerRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -274,6 +274,12 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -643,6 +649,12 @@ func (s *IntegerRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -896,8 +908,6 @@ func NewIntegerRangeProperty() *IntegerRangeProperty { return r } -// true - type IntegerRangePropertyVariant interface { IntegerRangePropertyCaster() *IntegerRangeProperty } @@ -905,3 +915,8 @@ type IntegerRangePropertyVariant interface { func (s *IntegerRangeProperty) IntegerRangePropertyCaster() *IntegerRangeProperty { return s } + +func (s *IntegerRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/intervals.go b/typedapi/types/intervals.go index 3457c083c9..afe2dd2754 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // Intervals type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L83-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L83-L112 type Intervals struct { AdditionalIntervalsProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. @@ -40,6 +40,8 @@ type Intervals struct { Match *IntervalsMatch `json:"match,omitempty"` // Prefix Matches terms that start with a specified set of characters. Prefix *IntervalsPrefix `json:"prefix,omitempty"` + Range *IntervalsRange `json:"range,omitempty"` + Regexp *IntervalsRegexp `json:"regexp,omitempty"` // Wildcard Matches terms using a wildcard pattern. Wildcard *IntervalsWildcard `json:"wildcard,omitempty"` } @@ -82,8 +84,6 @@ func NewIntervals() *Intervals { return r } -// true - type IntervalsVariant interface { IntervalsCaster() *Intervals } diff --git a/typedapi/types/intervalsallof.go b/typedapi/types/intervalsallof.go index 6fff82ce26..416878bca8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsAllOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L50-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L50-L70 type IntervalsAllOf struct { // Filter Rule used to filter returned intervals. Filter *IntervalsFilter `json:"filter,omitempty"` @@ -114,8 +114,6 @@ func NewIntervalsAllOf() *IntervalsAllOf { return r } -// true - type IntervalsAllOfVariant interface { IntervalsAllOfCaster() *IntervalsAllOf } diff --git a/typedapi/types/intervalsanyof.go b/typedapi/types/intervalsanyof.go index 3b15c5ce33..c5dee7b19d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IntervalsAnyOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L72-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L72-L81 type IntervalsAnyOf struct { // Filter Rule used to filter returned intervals. Filter *IntervalsFilter `json:"filter,omitempty"` @@ -37,8 +37,6 @@ func NewIntervalsAnyOf() *IntervalsAnyOf { return r } -// true - type IntervalsAnyOfVariant interface { IntervalsAnyOfCaster() *IntervalsAnyOf } diff --git a/typedapi/types/intervalsfilter.go b/typedapi/types/intervalsfilter.go index 7989f8d683..349456843e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // IntervalsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L112-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L114-L154 type IntervalsFilter struct { AdditionalIntervalsFilterProperty map[string]json.RawMessage `json:"-"` // After Query used to return intervals that follow an interval from the `filter` @@ -97,8 +97,6 @@ func NewIntervalsFilter() *IntervalsFilter { return r } -// true - type IntervalsFilterVariant interface { IntervalsFilterCaster() *IntervalsFilter } diff --git a/typedapi/types/intervalsfuzzy.go b/typedapi/types/intervalsfuzzy.go index f41bdc7f1f..e77595a205 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsFuzzy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L154-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L156-L186 type IntervalsFuzzy struct { // Analyzer Analyzer used to normalize the term. Analyzer *string `json:"analyzer,omitempty"` @@ -142,8 +142,6 @@ func NewIntervalsFuzzy() *IntervalsFuzzy { return r } -// true - type IntervalsFuzzyVariant interface { IntervalsFuzzyCaster() *IntervalsFuzzy } diff --git a/typedapi/types/intervalsmatch.go b/typedapi/types/intervalsmatch.go index 1b1664b72f..11a8fae425 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsMatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L186-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L188-L218 type IntervalsMatch struct { // Analyzer Analyzer used to analyze terms in the query. Analyzer *string `json:"analyzer,omitempty"` @@ -142,8 +142,6 @@ func NewIntervalsMatch() *IntervalsMatch { return r } -// true - type IntervalsMatchVariant interface { IntervalsMatchCaster() *IntervalsMatch } diff --git a/typedapi/types/intervalsprefix.go b/typedapi/types/intervalsprefix.go index 895dd89c18..b85de6a55d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsPrefix type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L218-L233 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L220-L235 type IntervalsPrefix struct { // Analyzer Analyzer used to analyze the `prefix`. Analyzer *string `json:"analyzer,omitempty"` @@ -100,8 +100,6 @@ func NewIntervalsPrefix() *IntervalsPrefix { return r } -// true - type IntervalsPrefixVariant interface { IntervalsPrefixCaster() *IntervalsPrefix } diff --git a/typedapi/types/intervalsquery.go b/typedapi/types/intervalsquery.go index 9d8b8c8c65..396955157f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L235-L266 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L283-L317 type IntervalsQuery struct { AdditionalIntervalsQueryProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. @@ -52,6 +52,8 @@ type IntervalsQuery struct { // Prefix Matches terms that start with a specified set of characters. Prefix *IntervalsPrefix `json:"prefix,omitempty"` QueryName_ *string `json:"_name,omitempty"` + Range *IntervalsRange `json:"range,omitempty"` + Regexp *IntervalsRegexp `json:"regexp,omitempty"` // Wildcard Matches terms using a wildcard pattern. Wildcard *IntervalsWildcard `json:"wildcard,omitempty"` } @@ -124,6 +126,16 @@ func (s *IntervalsQuery) UnmarshalJSON(data []byte) error { } s.QueryName_ = &o + case "range": + if err := dec.Decode(&s.Range); err != nil { + return fmt.Errorf("%s | %w", "Range", err) + } + + case "regexp": + if err := dec.Decode(&s.Regexp); err != nil { + return fmt.Errorf("%s | %w", "Regexp", err) + } + case "wildcard": if err := dec.Decode(&s.Wildcard); err != nil { return fmt.Errorf("%s | %w", "Wildcard", err) @@ -185,8 +197,6 @@ func NewIntervalsQuery() *IntervalsQuery { return r } -// true - type IntervalsQueryVariant interface { IntervalsQueryCaster() *IntervalsQuery } diff --git a/typedapi/types/intervalsrange.go b/typedapi/types/intervalsrange.go new file mode 100644 index 0000000000..0a21055d3a --- /dev/null +++ b/typedapi/types/intervalsrange.go @@ -0,0 +1,151 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// IntervalsRange type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L237-L264 +type IntervalsRange struct { + // Analyzer Analyzer used to analyze the `prefix`. + Analyzer *string `json:"analyzer,omitempty"` + // Gt Lower term, either gte or gt must be provided. + Gt *string `json:"gt,omitempty"` + // Gte Lower term, either gte or gt must be provided. + Gte *string `json:"gte,omitempty"` + // Lt Upper term, either lte or lt must be provided. + Lt *string `json:"lt,omitempty"` + // Lte Upper term, either lte or lt must be provided. + Lte *string `json:"lte,omitempty"` + // UseField If specified, match intervals from this field rather than the top-level + // field. + // The `prefix` is normalized using the search analyzer from this field, unless + // `analyzer` is specified separately. + UseField *string `json:"use_field,omitempty"` +} + +func (s *IntervalsRange) 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 "analyzer": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Analyzer", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Analyzer = &o + + case "gt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gt = &o + + case "gte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Gte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Gte = &o + + case "lt": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lt", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lt = &o + + case "lte": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Lte", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Lte = &o + + case "use_field": + if err := dec.Decode(&s.UseField); err != nil { + return fmt.Errorf("%s | %w", "UseField", err) + } + + } + } + return nil +} + +// NewIntervalsRange returns a IntervalsRange. +func NewIntervalsRange() *IntervalsRange { + r := &IntervalsRange{} + + return r +} + +type IntervalsRangeVariant interface { + IntervalsRangeCaster() *IntervalsRange +} + +func (s *IntervalsRange) IntervalsRangeCaster() *IntervalsRange { + return s +} diff --git a/typedapi/types/nodeinfonetworkinterface.go b/typedapi/types/intervalsregexp.go similarity index 52% rename from typedapi/types/nodeinfonetworkinterface.go rename to typedapi/types/intervalsregexp.go index 6766e42582..3b518b82bd 100644 --- a/typedapi/types/nodeinfonetworkinterface.go +++ b/typedapi/types/intervalsregexp.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,16 +29,22 @@ import ( "strconv" ) -// NodeInfoNetworkInterface type. +// IntervalsRegexp type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L341-L345 -type NodeInfoNetworkInterface struct { - Address string `json:"address"` - MacAddress string `json:"mac_address"` - Name string `json:"name"` +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L266-L281 +type IntervalsRegexp struct { + // Analyzer Analyzer used to analyze the `prefix`. + Analyzer *string `json:"analyzer,omitempty"` + // Pattern Regex pattern. + Pattern string `json:"pattern"` + // UseField If specified, match intervals from this field rather than the top-level + // field. + // The `prefix` is normalized using the search analyzer from this field, unless + // `analyzer` is specified separately. + UseField *string `json:"use_field,omitempty"` } -func (s *NodeInfoNetworkInterface) UnmarshalJSON(data []byte) error { +func (s *IntervalsRegexp) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -53,33 +59,33 @@ func (s *NodeInfoNetworkInterface) UnmarshalJSON(data []byte) error { switch t { - case "address": + case "analyzer": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Address", err) + return fmt.Errorf("%s | %w", "Analyzer", err) } o := string(tmp[:]) o, err = strconv.Unquote(o) if err != nil { o = string(tmp[:]) } - s.Address = o + s.Analyzer = &o - case "mac_address": + case "pattern": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "MacAddress", err) + return fmt.Errorf("%s | %w", "Pattern", err) } o := string(tmp[:]) o, err = strconv.Unquote(o) if err != nil { o = string(tmp[:]) } - s.MacAddress = o + s.Pattern = o - case "name": - if err := dec.Decode(&s.Name); err != nil { - return fmt.Errorf("%s | %w", "Name", err) + case "use_field": + if err := dec.Decode(&s.UseField); err != nil { + return fmt.Errorf("%s | %w", "UseField", err) } } @@ -87,11 +93,17 @@ func (s *NodeInfoNetworkInterface) UnmarshalJSON(data []byte) error { return nil } -// NewNodeInfoNetworkInterface returns a NodeInfoNetworkInterface. -func NewNodeInfoNetworkInterface() *NodeInfoNetworkInterface { - r := &NodeInfoNetworkInterface{} +// NewIntervalsRegexp returns a IntervalsRegexp. +func NewIntervalsRegexp() *IntervalsRegexp { + r := &IntervalsRegexp{} return r } -// false +type IntervalsRegexpVariant interface { + IntervalsRegexpCaster() *IntervalsRegexp +} + +func (s *IntervalsRegexp) IntervalsRegexpCaster() *IntervalsRegexp { + return s +} diff --git a/typedapi/types/intervalswildcard.go b/typedapi/types/intervalswildcard.go index fcc2e0152e..ef0bb3a076 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IntervalsWildcard type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L268-L283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L319-L334 type IntervalsWildcard struct { // Analyzer Analyzer used to analyze the `pattern`. // Defaults to the top-level field's analyzer. @@ -101,8 +101,6 @@ func NewIntervalsWildcard() *IntervalsWildcard { return r } -// true - type IntervalsWildcardVariant interface { IntervalsWildcardCaster() *IntervalsWildcard } diff --git a/typedapi/types/invertedindex.go b/typedapi/types/invertedindex.go index 5b2d1e48b3..a2e270e974 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // InvertedIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77 type InvertedIndex struct { Offsets uint `json:"offsets"` Payloads uint `json:"payloads"` @@ -39,5 +39,3 @@ func NewInvertedIndex() *InvertedIndex { return r } - -// false diff --git a/typedapi/types/invocation.go b/typedapi/types/invocation.go index 427352468a..64caa32880 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Invocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 type Invocation struct { SnapshotName string `json:"snapshot_name"` Time DateTime `json:"time"` @@ -72,5 +72,3 @@ func NewInvocation() *Invocation { return r } - -// false diff --git a/typedapi/types/invocations.go b/typedapi/types/invocations.go index 3e560fac1a..8f1e36d287 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Invocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L41-L43 type Invocations struct { Total int64 `json:"total"` } @@ -77,5 +77,3 @@ func NewInvocations() *Invocations { return r } - -// false diff --git a/typedapi/types/iostatdevice.go b/typedapi/types/iostatdevice.go index c858426764..7cf3a1b34a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IoStatDevice type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L801-L826 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L803-L828 type IoStatDevice struct { // DeviceName The Linux device name. DeviceName *string `json:"device_name,omitempty"` @@ -165,5 +165,3 @@ func NewIoStatDevice() *IoStatDevice { return r } - -// false diff --git a/typedapi/types/iostats.go b/typedapi/types/iostats.go index f3b86a13fb..b08c5eda3d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // IoStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L789-L799 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L791-L801 type IoStats struct { // Devices Array of disk metrics for each device that is backing an Elasticsearch data // path. @@ -40,5 +40,3 @@ func NewIoStats() *IoStats { return r } - -// false diff --git a/typedapi/types/ipfilter.go b/typedapi/types/ipfilter.go index 7e7e3dcbe9..761da9fffb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IpFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L177-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L177-L180 type IpFilter struct { Http bool `json:"http"` Transport bool `json:"transport"` @@ -91,5 +91,3 @@ func NewIpFilter() *IpFilter { return r } - -// false diff --git a/typedapi/types/ipinfo.go b/typedapi/types/ipinfo.go index ad130ddb8f..464465c7e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Ipinfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L59-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L59-L59 type Ipinfo struct { } @@ -33,8 +33,6 @@ func NewIpinfo() *Ipinfo { return r } -// true - type IpinfoVariant interface { IpinfoCaster() *Ipinfo } diff --git a/typedapi/types/iplocationdatabaseconfigurationmetadata.go b/typedapi/types/iplocationdatabaseconfigurationmetadata.go index e9ece582bf..f6ec461e31 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IpLocationDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 type IpLocationDatabaseConfigurationMetadata struct { Database DatabaseConfigurationFull `json:"database"` Id string `json:"id"` @@ -90,5 +90,3 @@ func NewIpLocationDatabaseConfigurationMetadata() *IpLocationDatabaseConfigurati return r } - -// false diff --git a/typedapi/types/iplocationprocessor.go b/typedapi/types/iplocationprocessor.go index 7481bd3316..2a0205d4b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IpLocationProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L479-L513 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L479-L513 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 @@ -214,8 +214,6 @@ func NewIpLocationProcessor() *IpLocationProcessor { return r } -// true - type IpLocationProcessorVariant interface { IpLocationProcessorCaster() *IpLocationProcessor } diff --git a/typedapi/types/ipprefixaggregate.go b/typedapi/types/ipprefixaggregate.go index fd10fbd148..dc47a07f06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IpPrefixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L709-L713 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L711-L715 type IpPrefixAggregate struct { Buckets BucketsIpPrefixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewIpPrefixAggregate() *IpPrefixAggregate { return r } - -// false diff --git a/typedapi/types/ipprefixaggregation.go b/typedapi/types/ipprefixaggregation.go index 09f6a3e59a..7641e5f687 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IpPrefixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1196-L1225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1196-L1225 type IpPrefixAggregation struct { // AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the // response. @@ -157,8 +157,6 @@ func NewIpPrefixAggregation() *IpPrefixAggregation { return r } -// true - type IpPrefixAggregationVariant interface { IpPrefixAggregationCaster() *IpPrefixAggregation } diff --git a/typedapi/types/ipprefixbucket.go b/typedapi/types/ipprefixbucket.go index 002efff0fc..1576905866 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // IpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L715-L720 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L717-L722 type IpPrefixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -688,5 +688,3 @@ func NewIpPrefixBucket() *IpPrefixBucket { return r } - -// false diff --git a/typedapi/types/ipproperty.go b/typedapi/types/ipproperty.go index 31e3057763..8f736b2859 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // IpProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L74-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L74-L88 type IpProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -267,6 +267,12 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -667,6 +673,12 @@ func (s *IpProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -943,8 +955,6 @@ func NewIpProperty() *IpProperty { return r } -// true - type IpPropertyVariant interface { IpPropertyCaster() *IpProperty } @@ -952,3 +962,8 @@ type IpPropertyVariant interface { func (s *IpProperty) IpPropertyCaster() *IpProperty { return s } + +func (s *IpProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/iprangeaggregate.go b/typedapi/types/iprangeaggregate.go index 8a5c398c00..7ce8fcff7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L624-L629 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L624-L629 type IpRangeAggregate struct { Buckets BucketsIpRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewIpRangeAggregate() *IpRangeAggregate { return r } - -// false diff --git a/typedapi/types/iprangeaggregation.go b/typedapi/types/iprangeaggregation.go index fdb28761ef..b1a634b278 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L567-L576 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -75,8 +75,6 @@ func NewIpRangeAggregation() *IpRangeAggregation { return r } -// true - type IpRangeAggregationVariant interface { IpRangeAggregationCaster() *IpRangeAggregation } diff --git a/typedapi/types/iprangeaggregationrange.go b/typedapi/types/iprangeaggregationrange.go index b6357d8194..8d00b143e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // IpRangeAggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L578-L591 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L578-L591 type IpRangeAggregationRange struct { // From Start of the range. From *string `json:"from,omitempty"` @@ -104,8 +104,6 @@ func NewIpRangeAggregationRange() *IpRangeAggregationRange { return r } -// true - type IpRangeAggregationRangeVariant interface { IpRangeAggregationRangeCaster() *IpRangeAggregationRange } diff --git a/typedapi/types/iprangebucket.go b/typedapi/types/iprangebucket.go index 921e8353fa..1c5a3ceadc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // IpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L631-L635 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L631-L635 type IpRangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -669,5 +669,3 @@ func NewIpRangeBucket() *IpRangeBucket { return r } - -// false diff --git a/typedapi/types/iprangeproperty.go b/typedapi/types/iprangeproperty.go index 6912a5cfee..8b90d9520d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // IpRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L46-L48 type IpRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -274,6 +274,12 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -643,6 +649,12 @@ func (s *IpRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -896,8 +908,6 @@ func NewIpRangeProperty() *IpRangeProperty { return r } -// true - type IpRangePropertyVariant interface { IpRangePropertyCaster() *IpRangeProperty } @@ -905,3 +915,8 @@ type IpRangePropertyVariant interface { func (s *IpRangeProperty) IpRangePropertyCaster() *IpRangeProperty { return s } + +func (s *IpRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/irishanalyzer.go b/typedapi/types/irishanalyzer.go index b03b60542b..639c20ef23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // IrishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L220-L225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L220-L225 type IrishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *IrishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *IrishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewIrishAnalyzer() *IrishAnalyzer { return r } -// true - type IrishAnalyzerVariant interface { IrishAnalyzerCaster() *IrishAnalyzer } @@ -128,3 +115,8 @@ type IrishAnalyzerVariant interface { func (s *IrishAnalyzer) IrishAnalyzerCaster() *IrishAnalyzer { return s } + +func (s *IrishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/italiananalyzer.go b/typedapi/types/italiananalyzer.go index 28650336f8..2fb8052911 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // ItalianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L227-L232 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L227-L232 type ItalianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *ItalianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *ItalianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewItalianAnalyzer() *ItalianAnalyzer { return r } -// true - type ItalianAnalyzerVariant interface { ItalianAnalyzerCaster() *ItalianAnalyzer } @@ -128,3 +115,8 @@ type ItalianAnalyzerVariant interface { func (s *ItalianAnalyzer) ItalianAnalyzerCaster() *ItalianAnalyzer { return s } + +func (s *ItalianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/jastoptokenfilter.go b/typedapi/types/jastoptokenfilter.go new file mode 100644 index 0000000000..5c5e61c2c2 --- /dev/null +++ b/typedapi/types/jastoptokenfilter.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// JaStopTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L32-L35 +type JaStopTokenFilter struct { + Stopwords StopWords `json:"stopwords,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *JaStopTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "stopwords": + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s JaStopTokenFilter) MarshalJSON() ([]byte, error) { + type innerJaStopTokenFilter JaStopTokenFilter + tmp := innerJaStopTokenFilter{ + Stopwords: s.Stopwords, + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "ja_stop" + + return json.Marshal(tmp) +} + +// NewJaStopTokenFilter returns a JaStopTokenFilter. +func NewJaStopTokenFilter() *JaStopTokenFilter { + r := &JaStopTokenFilter{} + + return r +} + +type JaStopTokenFilterVariant interface { + JaStopTokenFilterCaster() *JaStopTokenFilter +} + +func (s *JaStopTokenFilter) JaStopTokenFilterCaster() *JaStopTokenFilter { + return s +} + +func (s *JaStopTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/jinaaiservicesettings.go b/typedapi/types/jinaaiservicesettings.go index 0d2f606a81..dce2bdb653 100644 --- a/typedapi/types/jinaaiservicesettings.go +++ b/typedapi/types/jinaaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // JinaAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L900-L929 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L973-L1002 type JinaAIServiceSettings struct { // ApiKey A valid API key of your JinaAI account. // @@ -122,8 +122,6 @@ func NewJinaAIServiceSettings() *JinaAIServiceSettings { return r } -// true - type JinaAIServiceSettingsVariant interface { JinaAIServiceSettingsCaster() *JinaAIServiceSettings } diff --git a/typedapi/types/jinaaitasksettings.go b/typedapi/types/jinaaitasksettings.go index 4f2c82d719..27daa47d7a 100644 --- a/typedapi/types/jinaaitasksettings.go +++ b/typedapi/types/jinaaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // JinaAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L931-L952 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1004-L1025 type JinaAITaskSettings struct { // ReturnDocuments For a `rerank` task, return the doc text within the results. ReturnDocuments *bool `json:"return_documents,omitempty"` @@ -116,8 +116,6 @@ func NewJinaAITaskSettings() *JinaAITaskSettings { return r } -// true - type JinaAITaskSettingsVariant interface { JinaAITaskSettingsCaster() *JinaAITaskSettings } diff --git a/typedapi/types/job.go b/typedapi/types/job.go index 974db93a65..cd9ff5f26c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Job type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L61-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -351,5 +351,3 @@ func NewJob() *Job { return r } - -// false diff --git a/typedapi/types/jobblocked.go b/typedapi/types/jobblocked.go index 14204cdc9b..f9c2f805c0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // JobBlocked type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Job.ts#L392-L395 type JobBlocked struct { Reason jobblockedreason.JobBlockedReason `json:"reason"` TaskId TaskId `json:"task_id,omitempty"` @@ -74,5 +74,3 @@ func NewJobBlocked() *JobBlocked { return r } - -// false diff --git a/typedapi/types/jobconfig.go b/typedapi/types/jobconfig.go index 5930fd80a9..98249eadc4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JobConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L182-L283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -294,8 +294,6 @@ func NewJobConfig() *JobConfig { return r } -// true - type JobConfigVariant interface { JobConfigCaster() *JobConfig } diff --git a/typedapi/types/jobforecaststatistics.go b/typedapi/types/jobforecaststatistics.go index c8d6d2686f..c68d97c5fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JobForecastStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L343-L350 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Job.ts#L343-L350 type JobForecastStatistics struct { ForecastedJobs int `json:"forecasted_jobs"` MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"` @@ -123,5 +123,3 @@ func NewJobForecastStatistics() *JobForecastStatistics { return r } - -// false diff --git a/typedapi/types/jobsrecord.go b/typedapi/types/jobsrecord.go index 6117451755..1a5981656b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // JobsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_jobs/types.ts#L24-L347 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -909,5 +909,3 @@ func NewJobsRecord() *JobsRecord { return r } - -// false diff --git a/typedapi/types/jobstatistics.go b/typedapi/types/jobstatistics.go index 37a77f28a8..4e1c4fdcad 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JobStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Job.ts#L54-L59 type JobStatistics struct { Avg Float64 `json:"avg"` Max Float64 `json:"max"` @@ -129,5 +129,3 @@ func NewJobStatistics() *JobStatistics { return r } - -// false diff --git a/typedapi/types/jobstats.go b/typedapi/types/jobstats.go index 34cc14e4f2..c7132fa331 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // JobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L284-L330 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -167,5 +167,3 @@ func NewJobStats() *JobStats { return r } - -// false diff --git a/typedapi/types/jobtimingstats.go b/typedapi/types/jobtimingstats.go index aea59c1cba..19d71b4aa3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JobTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Job.ts#L332-L341 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Job.ts#L332-L341 type JobTimingStats struct { AverageBucketProcessingTimeMs Float64 `json:"average_bucket_processing_time_ms,omitempty"` BucketCount int64 `json:"bucket_count"` @@ -119,5 +119,3 @@ func NewJobTimingStats() *JobTimingStats { return r } - -// false diff --git a/typedapi/types/jobusage.go b/typedapi/types/jobusage.go index a8123652af..07d38396c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JobUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L370-L376 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L370-L376 type JobUsage struct { Count int `json:"count"` CreatedBy map[string]int64 `json:"created_by"` @@ -107,5 +107,3 @@ func NewJobUsage() *JobUsage { return r } - -// false diff --git a/typedapi/types/joinprocessor.go b/typedapi/types/joinprocessor.go index 55ce3c6066..26be1b4af1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JoinProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1122-L1137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1122-L1137 type JoinProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -151,8 +151,6 @@ func NewJoinProcessor() *JoinProcessor { return r } -// true - type JoinProcessorVariant interface { JoinProcessorCaster() *JoinProcessor } diff --git a/typedapi/types/joinproperty.go b/typedapi/types/joinproperty.go index d519bafca9..44d2d0d23e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // JoinProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L101-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L101-L105 type JoinProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"` @@ -224,6 +224,12 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -579,6 +585,12 @@ func (s *JoinProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -840,8 +852,6 @@ func NewJoinProperty() *JoinProperty { return r } -// true - type JoinPropertyVariant interface { JoinPropertyCaster() *JoinProperty } @@ -849,3 +859,8 @@ type JoinPropertyVariant interface { func (s *JoinProperty) JoinPropertyCaster() *JoinProperty { return s } + +func (s *JoinProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/jsonprocessor.go b/typedapi/types/jsonprocessor.go index 42bad1ade0..1e6134b6bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // JsonProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1139-L1168 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1139-L1168 type JsonProcessor struct { // AddToRoot Flag that forces the parsed JSON to be added at the top level of the // document. @@ -185,8 +185,6 @@ func NewJsonProcessor() *JsonProcessor { return r } -// true - type JsonProcessorVariant interface { JsonProcessorCaster() *JsonProcessor } diff --git a/typedapi/types/jvm.go b/typedapi/types/jvm.go index facc30d11a..9dc2fab8ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Jvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L882-L916 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L884-L918 type Jvm struct { // BufferPools Contains statistics about JVM buffer pools for the node. BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"` @@ -150,5 +150,3 @@ func NewJvm() *Jvm { return r } - -// false diff --git a/typedapi/types/jvmclasses.go b/typedapi/types/jvmclasses.go index 04b8c3dd30..5bac47e55e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JvmClasses type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L979-L992 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L986-L999 type JvmClasses struct { // CurrentLoadedCount Number of classes currently loaded by JVM. CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"` @@ -112,5 +112,3 @@ func NewJvmClasses() *JvmClasses { return r } - -// false diff --git a/typedapi/types/jvmmemorystats.go b/typedapi/types/jvmmemorystats.go index 97335c8038..41c7b2e64e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,12 @@ import ( // JvmMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L918-L947 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L920-L954 type JvmMemoryStats struct { // HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap. HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"` + // HeapMax Maximum amount of memory, available for use by the heap. + HeapMax ByteSize `json:"heap_max,omitempty"` // HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap. HeapMaxInBytes *int64 `json:"heap_max_in_bytes,omitempty"` // HeapUsedInBytes Memory, in bytes, currently in use by the heap. @@ -79,6 +81,11 @@ func (s *JvmMemoryStats) UnmarshalJSON(data []byte) error { s.HeapCommittedInBytes = &f } + case "heap_max": + if err := dec.Decode(&s.HeapMax); err != nil { + return fmt.Errorf("%s | %w", "HeapMax", err) + } + case "heap_max_in_bytes": var tmp any dec.Decode(&tmp) @@ -175,5 +182,3 @@ func NewJvmMemoryStats() *JvmMemoryStats { return r } - -// false diff --git a/typedapi/types/jvmstats.go b/typedapi/types/jvmstats.go index 36a616ac5a..2d565bcf1a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JvmStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_memory_stats/types.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -138,5 +138,3 @@ func NewJvmStats() *JvmStats { return r } - -// false diff --git a/typedapi/types/jvmthreads.go b/typedapi/types/jvmthreads.go index 1b0f06e2dd..ec30a02821 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // JvmThreads type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L968-L977 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L975-L984 type JvmThreads struct { // Count Number of active threads in use by JVM. Count *int64 `json:"count,omitempty"` @@ -95,5 +95,3 @@ func NewJvmThreads() *JvmThreads { return r } - -// false diff --git a/typedapi/types/keeptypestokenfilter.go b/typedapi/types/keeptypestokenfilter.go index 827a8a76a2..b454996dbc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,12 +32,14 @@ import ( // KeepTypesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L219-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L287-L293 type KeepTypesTokenFilter struct { - Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"` - Type string `json:"type,omitempty"` - Types []string `json:"types,omitempty"` - Version *string `json:"version,omitempty"` + // Mode Indicates whether to keep or remove the specified token types. + Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"` + Type string `json:"type,omitempty"` + // Types List of token types to keep or remove. + Types []string `json:"types"` + Version *string `json:"version,omitempty"` } func (s *KeepTypesTokenFilter) UnmarshalJSON(data []byte) error { @@ -102,8 +104,6 @@ func NewKeepTypesTokenFilter() *KeepTypesTokenFilter { return r } -// true - type KeepTypesTokenFilterVariant interface { KeepTypesTokenFilterCaster() *KeepTypesTokenFilter } @@ -111,3 +111,8 @@ type KeepTypesTokenFilterVariant interface { func (s *KeepTypesTokenFilter) KeepTypesTokenFilterCaster() *KeepTypesTokenFilter { return s } + +func (s *KeepTypesTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/keepwordstokenfilter.go b/typedapi/types/keepwordstokenfilter.go index a803b70c5d..919864c98d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,23 @@ import ( // KeepWordsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L295-L306 type KeepWordsTokenFilter struct { - KeepWords []string `json:"keep_words,omitempty"` - KeepWordsCase *bool `json:"keep_words_case,omitempty"` - KeepWordsPath *string `json:"keep_words_path,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // KeepWords List of words to keep. Only tokens that match words in this list are included + // in the output. + // Either this parameter or `keep_words_path` must be specified. + KeepWords []string `json:"keep_words,omitempty"` + // KeepWordsCase If `true`, lowercase all keep words. Defaults to `false`. + KeepWordsCase *bool `json:"keep_words_case,omitempty"` + // KeepWordsPath Path to a file that contains a list of words to keep. Only tokens that match + // words in this list are included in the output. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each word in the file must be separated by a line + // break. + // Either this parameter or `keep_words` must be specified. + KeepWordsPath *string `json:"keep_words_path,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *KeepWordsTokenFilter) UnmarshalJSON(data []byte) error { @@ -124,8 +134,6 @@ func NewKeepWordsTokenFilter() *KeepWordsTokenFilter { return r } -// true - type KeepWordsTokenFilterVariant interface { KeepWordsTokenFilterCaster() *KeepWordsTokenFilter } @@ -133,3 +141,8 @@ type KeepWordsTokenFilterVariant interface { func (s *KeepWordsTokenFilter) KeepWordsTokenFilterCaster() *KeepWordsTokenFilter { return s } + +func (s *KeepWordsTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/keyedpercentiles.go b/typedapi/types/keyedpercentiles.go index 73bb8c4d29..1cdcd70d37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // KeyedPercentiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L160-L160 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b552a1ed3d..dc37983091 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KeyedProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L415-L418 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L417-L420 type KeyedProcessor struct { Stats *Processor `json:"stats,omitempty"` Type *string `json:"type,omitempty"` @@ -80,5 +80,3 @@ func NewKeyedProcessor() *KeyedProcessor { return r } - -// false diff --git a/typedapi/types/keyvalueprocessor.go b/typedapi/types/keyvalueprocessor.go index 35e19848ed..ae131d1481 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KeyValueProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1177-L1229 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1177-L1229 type KeyValueProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -259,8 +259,6 @@ func NewKeyValueProcessor() *KeyValueProcessor { return r } -// true - type KeyValueProcessorVariant interface { KeyValueProcessorCaster() *KeyValueProcessor } diff --git a/typedapi/types/keywordanalyzer.go b/typedapi/types/keywordanalyzer.go index 71d9e159be..472d9b2db9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // KeywordAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L66-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L66-L70 type KeywordAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewKeywordAnalyzer() *KeywordAnalyzer { return r } -// true - type KeywordAnalyzerVariant interface { KeywordAnalyzerCaster() *KeywordAnalyzer } @@ -95,3 +93,8 @@ type KeywordAnalyzerVariant interface { func (s *KeywordAnalyzer) KeywordAnalyzerCaster() *KeywordAnalyzer { return s } + +func (s *KeywordAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/keywordmarkertokenfilter.go b/typedapi/types/keywordmarkertokenfilter.go index f0005c9762..c11fb11bcc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,14 +31,30 @@ import ( // KeywordMarkerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L308-L322 type KeywordMarkerTokenFilter struct { - IgnoreCase *bool `json:"ignore_case,omitempty"` - Keywords []string `json:"keywords,omitempty"` - KeywordsPath *string `json:"keywords_path,omitempty"` - KeywordsPattern *string `json:"keywords_pattern,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // IgnoreCase If `true`, matching for the `keywords` and `keywords_path` parameters ignores + // letter case. Defaults to `false`. + IgnoreCase *bool `json:"ignore_case,omitempty"` + // Keywords Array of keywords. Tokens that match these keywords are not stemmed. + // This parameter, `keywords_path`, or `keywords_pattern` must be specified. You + // cannot specify this parameter and `keywords_pattern`. + Keywords []string `json:"keywords,omitempty"` + // KeywordsPath Path to a file that contains a list of keywords. Tokens that match these + // keywords are not stemmed. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each word in the file must be separated by a line + // break. + // This parameter, `keywords`, or `keywords_pattern` must be specified. You + // cannot specify this parameter and `keywords_pattern`. + KeywordsPath *string `json:"keywords_path,omitempty"` + // KeywordsPattern Java regular expression used to match tokens. Tokens that match this + // expression are marked as keywords and not stemmed. + // This parameter, `keywords`, or `keywords_path` must be specified. You cannot + // specify this parameter and `keywords` or `keywords_pattern`. + KeywordsPattern *string `json:"keywords_pattern,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *KeywordMarkerTokenFilter) UnmarshalJSON(data []byte) error { @@ -149,8 +165,6 @@ func NewKeywordMarkerTokenFilter() *KeywordMarkerTokenFilter { return r } -// true - type KeywordMarkerTokenFilterVariant interface { KeywordMarkerTokenFilterCaster() *KeywordMarkerTokenFilter } @@ -158,3 +172,8 @@ type KeywordMarkerTokenFilterVariant interface { func (s *KeywordMarkerTokenFilter) KeywordMarkerTokenFilterCaster() *KeywordMarkerTokenFilter { return s } + +func (s *KeywordMarkerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/keywordproperty.go b/typedapi/types/keywordproperty.go index 0834edf9a2..9d47a90c62 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // KeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L107-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L107-L126 type KeywordProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -287,6 +287,12 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -704,6 +710,12 @@ func (s *KeywordProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -1011,8 +1023,6 @@ func NewKeywordProperty() *KeywordProperty { return r } -// true - type KeywordPropertyVariant interface { KeywordPropertyCaster() *KeywordProperty } @@ -1020,3 +1030,8 @@ type KeywordPropertyVariant interface { func (s *KeywordProperty) KeywordPropertyCaster() *KeywordProperty { return s } + +func (s *KeywordProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/keywordrepeattokenfilter.go b/typedapi/types/keywordrepeattokenfilter.go new file mode 100644 index 0000000000..9a88afdc7e --- /dev/null +++ b/typedapi/types/keywordrepeattokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// KeywordRepeatTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L510-L512 +type KeywordRepeatTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *KeywordRepeatTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s KeywordRepeatTokenFilter) MarshalJSON() ([]byte, error) { + type innerKeywordRepeatTokenFilter KeywordRepeatTokenFilter + tmp := innerKeywordRepeatTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "keyword_repeat" + + return json.Marshal(tmp) +} + +// NewKeywordRepeatTokenFilter returns a KeywordRepeatTokenFilter. +func NewKeywordRepeatTokenFilter() *KeywordRepeatTokenFilter { + r := &KeywordRepeatTokenFilter{} + + return r +} + +type KeywordRepeatTokenFilterVariant interface { + KeywordRepeatTokenFilterCaster() *KeywordRepeatTokenFilter +} + +func (s *KeywordRepeatTokenFilter) KeywordRepeatTokenFilterCaster() *KeywordRepeatTokenFilter { + return s +} + +func (s *KeywordRepeatTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/keywordtokenizer.go b/typedapi/types/keywordtokenizer.go index c55971ed4a..363422ccc4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KeywordTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L69-L75 type KeywordTokenizer struct { BufferSize *int `json:"buffer_size,omitempty"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewKeywordTokenizer() *KeywordTokenizer { return r } -// true - type KeywordTokenizerVariant interface { KeywordTokenizerCaster() *KeywordTokenizer } @@ -114,3 +112,8 @@ type KeywordTokenizerVariant interface { func (s *KeywordTokenizer) KeywordTokenizerCaster() *KeywordTokenizer { return s } + +func (s *KeywordTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/kibanatoken.go b/typedapi/types/kibanatoken.go index b596f106a7..34fd77f05a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KibanaToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/enroll_kibana/Response.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -90,5 +90,3 @@ func NewKibanaToken() *KibanaToken { return r } - -// false diff --git a/typedapi/types/knncollectorresult.go b/typedapi/types/knncollectorresult.go index 97249df5ea..8920ae2f26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnCollectorResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L222-L228 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L222-L228 type KnnCollectorResult struct { Children []KnnCollectorResult `json:"children,omitempty"` Name string `json:"name"` @@ -105,5 +105,3 @@ func NewKnnCollectorResult() *KnnCollectorResult { return r } - -// false diff --git a/typedapi/types/knnquery.go b/typedapi/types/knnquery.go index 672f96dca9..aae722ddda 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Knn.ts#L64-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Knn.ts#L64-L87 type KnnQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -198,8 +198,6 @@ func NewKnnQuery() *KnnQuery { return r } -// true - type KnnQueryVariant interface { KnnQueryCaster() *KnnQuery } diff --git a/typedapi/types/knnqueryprofilebreakdown.go b/typedapi/types/knnqueryprofilebreakdown.go index b364450006..295ac0f36f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L199-L220 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L199-L220 type KnnQueryProfileBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` @@ -381,5 +381,3 @@ func NewKnnQueryProfileBreakdown() *KnnQueryProfileBreakdown { return r } - -// false diff --git a/typedapi/types/knnqueryprofileresult.go b/typedapi/types/knnqueryprofileresult.go index fa00b9a353..30ba914793 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L188-L196 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L188-L196 type KnnQueryProfileResult struct { Breakdown KnnQueryProfileBreakdown `json:"breakdown"` Children []KnnQueryProfileResult `json:"children,omitempty"` @@ -122,5 +122,3 @@ func NewKnnQueryProfileResult() *KnnQueryProfileResult { return r } - -// false diff --git a/typedapi/types/knnretriever.go b/typedapi/types/knnretriever.go index 0a01e5821c..ec54ba38ef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L111-L129 type KnnRetriever struct { // Field The name of the vector field to search against. Field string `json:"field"` @@ -42,6 +42,8 @@ type KnnRetriever struct { // MinScore Minimum _score for matching documents. Documents with a lower _score are not // included in the top documents. MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` // NumCandidates Number of nearest neighbor candidates to consider per shard. NumCandidates int `json:"num_candidates"` // QueryVector Query vector. Must have the same number of dimensions as the vector field you @@ -131,6 +133,18 @@ func (s *KnnRetriever) UnmarshalJSON(data []byte) error { s.MinScore = &f } + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + case "num_candidates": var tmp any @@ -190,8 +204,6 @@ func NewKnnRetriever() *KnnRetriever { return r } -// true - type KnnRetrieverVariant interface { KnnRetrieverCaster() *KnnRetriever } diff --git a/typedapi/types/knnsearch.go b/typedapi/types/knnsearch.go index 391a379f16..5c682a470d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KnnSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Knn.ts#L35-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Knn.ts#L35-L62 type KnnSearch struct { // Boost Boost value to apply to kNN scores Boost *float32 `json:"boost,omitempty"` @@ -188,8 +188,6 @@ func NewKnnSearch() *KnnSearch { return r } -// true - type KnnSearchVariant interface { KnnSearchCaster() *KnnSearch } diff --git a/typedapi/types/kstemtokenfilter.go b/typedapi/types/kstemtokenfilter.go index 3492675fba..8c8a621c30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // KStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L240-L242 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L324-L326 type KStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewKStemTokenFilter() *KStemTokenFilter { return r } -// true - type KStemTokenFilterVariant interface { KStemTokenFilterCaster() *KStemTokenFilter } @@ -95,3 +93,8 @@ type KStemTokenFilterVariant interface { func (s *KStemTokenFilter) KStemTokenFilterCaster() *KStemTokenFilter { return s } + +func (s *KStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/kuromojianalyzer.go b/typedapi/types/kuromojianalyzer.go index 49ccaf768b..82cc0ee84b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // KuromojiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L26-L30 type KuromojiAnalyzer struct { Mode kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"` Type string `json:"type,omitempty"` @@ -103,8 +103,6 @@ func NewKuromojiAnalyzer() *KuromojiAnalyzer { return r } -// true - type KuromojiAnalyzerVariant interface { KuromojiAnalyzerCaster() *KuromojiAnalyzer } @@ -112,3 +110,8 @@ type KuromojiAnalyzerVariant interface { func (s *KuromojiAnalyzer) KuromojiAnalyzerCaster() *KuromojiAnalyzer { return s } + +func (s *KuromojiAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/kuromojiiterationmarkcharfilter.go b/typedapi/types/kuromojiiterationmarkcharfilter.go index d6c14520eb..037c3e39d2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KuromojiIterationMarkCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L37-L41 type KuromojiIterationMarkCharFilter struct { NormalizeKana bool `json:"normalize_kana"` NormalizeKanji bool `json:"normalize_kanji"` @@ -119,8 +119,6 @@ func NewKuromojiIterationMarkCharFilter() *KuromojiIterationMarkCharFilter { return r } -// true - type KuromojiIterationMarkCharFilterVariant interface { KuromojiIterationMarkCharFilterCaster() *KuromojiIterationMarkCharFilter } @@ -128,3 +126,8 @@ type KuromojiIterationMarkCharFilterVariant interface { func (s *KuromojiIterationMarkCharFilter) KuromojiIterationMarkCharFilterCaster() *KuromojiIterationMarkCharFilter { return s } + +func (s *KuromojiIterationMarkCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition { + o := CharFilterDefinition(s) + return &o +} diff --git a/typedapi/types/kuromojipartofspeechtokenfilter.go b/typedapi/types/kuromojipartofspeechtokenfilter.go index 9dd1875d2e..1464ef5753 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // KuromojiPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L43-L46 type KuromojiPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags"` Type string `json:"type,omitempty"` @@ -93,8 +93,6 @@ func NewKuromojiPartOfSpeechTokenFilter() *KuromojiPartOfSpeechTokenFilter { return r } -// true - type KuromojiPartOfSpeechTokenFilterVariant interface { KuromojiPartOfSpeechTokenFilterCaster() *KuromojiPartOfSpeechTokenFilter } @@ -102,3 +100,8 @@ type KuromojiPartOfSpeechTokenFilterVariant interface { func (s *KuromojiPartOfSpeechTokenFilter) KuromojiPartOfSpeechTokenFilterCaster() *KuromojiPartOfSpeechTokenFilter { return s } + +func (s *KuromojiPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/kuromojireadingformtokenfilter.go b/typedapi/types/kuromojireadingformtokenfilter.go index d8452014c2..fe748c6ea6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KuromojiReadingFormTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L48-L51 type KuromojiReadingFormTokenFilter struct { Type string `json:"type,omitempty"` UseRomaji bool `json:"use_romaji"` @@ -103,8 +103,6 @@ func NewKuromojiReadingFormTokenFilter() *KuromojiReadingFormTokenFilter { return r } -// true - type KuromojiReadingFormTokenFilterVariant interface { KuromojiReadingFormTokenFilterCaster() *KuromojiReadingFormTokenFilter } @@ -112,3 +110,8 @@ type KuromojiReadingFormTokenFilterVariant interface { func (s *KuromojiReadingFormTokenFilter) KuromojiReadingFormTokenFilterCaster() *KuromojiReadingFormTokenFilter { return s } + +func (s *KuromojiReadingFormTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/kuromojistemmertokenfilter.go b/typedapi/types/kuromojistemmertokenfilter.go index 37094afbee..9e6a22fd25 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // KuromojiStemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L53-L56 type KuromojiStemmerTokenFilter struct { MinimumLength int `json:"minimum_length"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewKuromojiStemmerTokenFilter() *KuromojiStemmerTokenFilter { return r } -// true - type KuromojiStemmerTokenFilterVariant interface { KuromojiStemmerTokenFilterCaster() *KuromojiStemmerTokenFilter } @@ -114,3 +112,8 @@ type KuromojiStemmerTokenFilterVariant interface { func (s *KuromojiStemmerTokenFilter) KuromojiStemmerTokenFilterCaster() *KuromojiStemmerTokenFilter { return s } + +func (s *KuromojiStemmerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/kuromojitokenizer.go b/typedapi/types/kuromojitokenizer.go index 9451459367..8228f070b2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // KuromojiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/kuromoji-plugin.ts#L64-L73 type KuromojiTokenizer struct { DiscardCompoundToken *bool `json:"discard_compound_token,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` @@ -181,8 +181,6 @@ func NewKuromojiTokenizer() *KuromojiTokenizer { return r } -// true - type KuromojiTokenizerVariant interface { KuromojiTokenizerCaster() *KuromojiTokenizer } @@ -190,3 +188,8 @@ type KuromojiTokenizerVariant interface { func (s *KuromojiTokenizer) KuromojiTokenizerCaster() *KuromojiTokenizer { return s } + +func (s *KuromojiTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/languagecontext.go b/typedapi/types/languagecontext.go index f22a68a66a..f3250906dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // LanguageContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/get_script_languages/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/get_script_languages/types.ts#L22-L25 type LanguageContext struct { Contexts []string `json:"contexts"` Language scriptlanguage.ScriptLanguage `json:"language"` @@ -38,5 +38,3 @@ func NewLanguageContext() *LanguageContext { return r } - -// false diff --git a/typedapi/types/laplacesmoothingmodel.go b/typedapi/types/laplacesmoothingmodel.go index 795813dee8..2332c0ddd3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LaplaceSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L431-L436 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L431-L436 type LaplaceSmoothingModel struct { // Alpha A constant that is added to all counts to balance weights. Alpha Float64 `json:"alpha"` @@ -80,8 +80,6 @@ func NewLaplaceSmoothingModel() *LaplaceSmoothingModel { return r } -// true - type LaplaceSmoothingModelVariant interface { LaplaceSmoothingModelCaster() *LaplaceSmoothingModel } diff --git a/typedapi/types/latest.go b/typedapi/types/latest.go index 4069447534..5a31384226 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Latest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -75,8 +75,6 @@ func NewLatest() *Latest { return r } -// true - type LatestVariant interface { LatestCaster() *Latest } diff --git a/typedapi/types/latlongeolocation.go b/typedapi/types/latlongeolocation.go index 6818f67b5a..42353b861c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LatLonGeoLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L120-L129 type LatLonGeoLocation struct { // Lat Latitude Lat Float64 `json:"lat"` @@ -98,8 +98,6 @@ func NewLatLonGeoLocation() *LatLonGeoLocation { return r } -// true - type LatLonGeoLocationVariant interface { LatLonGeoLocationCaster() *LatLonGeoLocation } @@ -107,3 +105,8 @@ type LatLonGeoLocationVariant interface { func (s *LatLonGeoLocation) LatLonGeoLocationCaster() *LatLonGeoLocation { return s } + +func (s *LatLonGeoLocation) GeoLocationCaster() *GeoLocation { + o := GeoLocation(s) + return &o +} diff --git a/typedapi/types/latviananalyzer.go b/typedapi/types/latviananalyzer.go index 00ddecf743..ad22c54298 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // LatvianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L234-L239 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L234-L239 type LatvianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *LatvianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *LatvianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewLatvianAnalyzer() *LatvianAnalyzer { return r } -// true - type LatvianAnalyzerVariant interface { LatvianAnalyzerCaster() *LatvianAnalyzer } @@ -128,3 +115,8 @@ type LatvianAnalyzerVariant interface { func (s *LatvianAnalyzer) LatvianAnalyzerCaster() *LatvianAnalyzer { return s } + +func (s *LatvianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/learningtorank.go b/typedapi/types/learningtorank.go index b6ef46e1b7..728694ca1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LearningToRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/rescoring.ts#L88-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -88,8 +88,6 @@ func NewLearningToRank() *LearningToRank { return r } -// true - type LearningToRankVariant interface { LearningToRankCaster() *LearningToRank } diff --git a/typedapi/types/learningtorankconfig.go b/typedapi/types/learningtorankconfig.go index 48b1ba47b7..28c3bb7753 100644 --- a/typedapi/types/learningtorankconfig.go +++ b/typedapi/types/learningtorankconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LearningToRankConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L87-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -96,8 +96,6 @@ func NewLearningToRankConfig() *LearningToRankConfig { return r } -// true - type LearningToRankConfigVariant interface { LearningToRankConfigCaster() *LearningToRankConfig } diff --git a/typedapi/types/lengthtokenfilter.go b/typedapi/types/lengthtokenfilter.go index 9597e569da..7674171e30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,9 +31,13 @@ import ( // LengthTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L244-L248 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L328-L334 type LengthTokenFilter struct { - Max *int `json:"max,omitempty"` + // Max Maximum character length of a token. Longer tokens are excluded from the + // output. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`. + Max *int `json:"max,omitempty"` + // Min Minimum character length of a token. Shorter tokens are excluded from the + // output. Defaults to `0`. Min *int `json:"min,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -123,8 +127,6 @@ func NewLengthTokenFilter() *LengthTokenFilter { return r } -// true - type LengthTokenFilterVariant interface { LengthTokenFilterCaster() *LengthTokenFilter } @@ -132,3 +134,8 @@ type LengthTokenFilterVariant interface { func (s *LengthTokenFilter) LengthTokenFilterCaster() *LengthTokenFilter { return s } + +func (s *LengthTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/lessthanvalidation.go b/typedapi/types/lessthanvalidation.go index 6ffbdf5797..cf710a3fd2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LessThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L58-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L58-L61 type LessThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` @@ -98,8 +98,6 @@ func NewLessThanValidation() *LessThanValidation { return r } -// true - type LessThanValidationVariant interface { LessThanValidationCaster() *LessThanValidation } @@ -107,3 +105,8 @@ type LessThanValidationVariant interface { func (s *LessThanValidation) LessThanValidationCaster() *LessThanValidation { return s } + +func (s *LessThanValidation) ValidationCaster() *Validation { + o := Validation(s) + return &o +} diff --git a/typedapi/types/lettertokenizer.go b/typedapi/types/lettertokenizer.go index 9c48e778a1..b46ee60d2b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // LetterTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L76-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L77-L79 type LetterTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewLetterTokenizer() *LetterTokenizer { return r } -// true - type LetterTokenizerVariant interface { LetterTokenizerCaster() *LetterTokenizer } @@ -95,3 +93,8 @@ type LetterTokenizerVariant interface { func (s *LetterTokenizer) LetterTokenizerCaster() *LetterTokenizer { return s } + +func (s *LetterTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/license.go b/typedapi/types/license.go index eb6481eeb9..91b53b7fb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // License type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/_types/License.ts#L42-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/license/_types/License.ts#L42-L53 type License struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` IssueDateInMillis int64 `json:"issue_date_in_millis"` @@ -162,8 +162,6 @@ func NewLicense() *License { return r } -// true - type LicenseVariant interface { LicenseCaster() *License } diff --git a/typedapi/types/licenseinformation.go b/typedapi/types/licenseinformation.go index 7a82b5fa2e..ad96edd1ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // LicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/license/get/types.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/license/get/types.ts#L25-L38 type LicenseInformation struct { ExpiryDate DateTime `json:"expiry_date,omitempty"` ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"` @@ -150,5 +150,3 @@ func NewLicenseInformation() *LicenseInformation { return r } - -// false diff --git a/typedapi/types/lifecycle.go b/typedapi/types/lifecycle.go index 1d9fc4d6ed..b746ddaf58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Lifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/get_lifecycle/types.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/get_lifecycle/types.ts#L24-L28 type Lifecycle struct { ModifiedDate DateTime `json:"modified_date"` Policy IlmPolicy `json:"policy"` @@ -78,5 +78,3 @@ func NewLifecycle() *Lifecycle { return r } - -// false diff --git a/typedapi/types/lifecycleexplain.go b/typedapi/types/lifecycleexplain.go index 7c3ea88d04..170cde4f96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // LifecycleExplainManaged // LifecycleExplainUnmanaged // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/explain_lifecycle/types.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/explain_lifecycle/types.ts#L64-L67 type LifecycleExplain any diff --git a/typedapi/types/lifecycleexplainmanaged.go b/typedapi/types/lifecycleexplainmanaged.go index f707092598..0c0b61171e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LifecycleExplainManaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/explain_lifecycle/types.ts#L27-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/explain_lifecycle/types.ts#L27-L57 type LifecycleExplainManaged struct { Action *string `json:"action,omitempty"` ActionTime DateTime `json:"action_time,omitempty"` @@ -46,7 +46,7 @@ type LifecycleExplainManaged struct { LifecycleDate DateTime `json:"lifecycle_date,omitempty"` LifecycleDateMillis *int64 `json:"lifecycle_date_millis,omitempty"` Managed bool `json:"managed,omitempty"` - Phase string `json:"phase"` + Phase *string `json:"phase,omitempty"` PhaseExecution *LifecycleExplainPhaseExecution `json:"phase_execution,omitempty"` PhaseTime DateTime `json:"phase_time,omitempty"` PhaseTimeMillis *int64 `json:"phase_time_millis,omitempty"` @@ -311,5 +311,3 @@ func NewLifecycleExplainManaged() *LifecycleExplainManaged { return r } - -// false diff --git a/typedapi/types/lifecycleexplainphaseexecution.go b/typedapi/types/lifecycleexplainphaseexecution.go index a43225134f..d4607c41c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainPhaseExecution type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/explain_lifecycle/types.ts#L69-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/explain_lifecycle/types.ts#L69-L74 type LifecycleExplainPhaseExecution struct { ModifiedDateInMillis int64 `json:"modified_date_in_millis"` PhaseDefinition *Phase `json:"phase_definition,omitempty"` @@ -84,5 +84,3 @@ func NewLifecycleExplainPhaseExecution() *LifecycleExplainPhaseExecution { return r } - -// false diff --git a/typedapi/types/lifecycleexplainunmanaged.go b/typedapi/types/lifecycleexplainunmanaged.go index 6dec798ed9..1e7fa372e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainUnmanaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/explain_lifecycle/types.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/explain_lifecycle/types.ts#L59-L62 type LifecycleExplainUnmanaged struct { Index string `json:"index"` Managed bool `json:"managed,omitempty"` @@ -85,5 +85,3 @@ func NewLifecycleExplainUnmanaged() *LifecycleExplainUnmanaged { return r } - -// false diff --git a/typedapi/types/like.go b/typedapi/types/like.go index 17b76f1442..7d5511529f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // LikeDocument // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 cb3ba4e414..2e91cd760f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // LikeDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L174-L196 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -120,8 +120,6 @@ func NewLikeDocument() *LikeDocument { return r } -// true - type LikeDocumentVariant interface { LikeDocumentCaster() *LikeDocument } @@ -129,3 +127,8 @@ type LikeDocumentVariant interface { func (s *LikeDocument) LikeDocumentCaster() *LikeDocument { return s } + +func (s *LikeDocument) LikeCaster() *Like { + o := Like(s) + return &o +} diff --git a/typedapi/types/limits.go b/typedapi/types/limits.go index b7b8557282..d79fe71509 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Limits type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -113,5 +113,3 @@ func NewLimits() *Limits { return r } - -// false diff --git a/typedapi/types/limittokencounttokenfilter.go b/typedapi/types/limittokencounttokenfilter.go index 8dd5a2e2c8..6b4e047aa1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,16 @@ import ( // LimitTokenCountTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L250-L254 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L336-L342 type LimitTokenCountTokenFilter struct { - ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` - MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // ConsumeAllTokens If `true`, the limit filter exhausts the token stream, even if the + // `max_token_count` has already been reached. Defaults to `false`. + ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` + // MaxTokenCount Maximum number of tokens to keep. Once this limit is reached, any remaining + // tokens are excluded from the output. Defaults to `1`. + MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *LimitTokenCountTokenFilter) UnmarshalJSON(data []byte) error { @@ -110,8 +114,6 @@ func NewLimitTokenCountTokenFilter() *LimitTokenCountTokenFilter { return r } -// true - type LimitTokenCountTokenFilterVariant interface { LimitTokenCountTokenFilterCaster() *LimitTokenCountTokenFilter } @@ -119,3 +121,8 @@ type LimitTokenCountTokenFilterVariant interface { func (s *LimitTokenCountTokenFilter) LimitTokenCountTokenFilterCaster() *LimitTokenCountTokenFilter { return s } + +func (s *LimitTokenCountTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/linearinterpolationsmoothingmodel.go b/typedapi/types/linearinterpolationsmoothingmodel.go index 5bf546e096..796f223042 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LinearInterpolationSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L438-L442 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L438-L442 type LinearInterpolationSmoothingModel struct { BigramLambda Float64 `json:"bigram_lambda"` TrigramLambda Float64 `json:"trigram_lambda"` @@ -113,8 +113,6 @@ func NewLinearInterpolationSmoothingModel() *LinearInterpolationSmoothingModel { return r } -// true - type LinearInterpolationSmoothingModelVariant interface { LinearInterpolationSmoothingModelCaster() *LinearInterpolationSmoothingModel } diff --git a/typedapi/types/linearmovingaverageaggregation.go b/typedapi/types/linearmovingaverageaggregation.go index 9733a0939b..2318fc6bf9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // LinearMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L268-L271 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewLinearMovingAverageAggregation() *LinearMovingAverageAggregation { return r } -// true - type LinearMovingAverageAggregationVariant interface { LinearMovingAverageAggregationCaster() *LinearMovingAverageAggregation } @@ -183,3 +181,8 @@ type LinearMovingAverageAggregationVariant interface { func (s *LinearMovingAverageAggregation) LinearMovingAverageAggregationCaster() *LinearMovingAverageAggregation { return s } + +func (s *LinearMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation { + o := MovingAverageAggregation(s) + return &o +} diff --git a/typedapi/types/linearretriever.go b/typedapi/types/linearretriever.go new file mode 100644 index 0000000000..5f13abae96 --- /dev/null +++ b/typedapi/types/linearretriever.go @@ -0,0 +1,146 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LinearRetriever type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L68-L72 +type LinearRetriever struct { + // Filter Query to filter the documents that can match. + Filter []Query `json:"filter,omitempty"` + // MinScore Minimum _score for matching documents. Documents with a lower _score are not + // included in the top documents. + MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` + RankWindowSize *int `json:"rank_window_size,omitempty"` + // Retrievers Inner retrievers. + Retrievers []InnerRetriever `json:"retrievers,omitempty"` +} + +func (s *LinearRetriever) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "filter": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewQuery() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + s.Filter = append(s.Filter, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + } + + case "min_score": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "MinScore", err) + } + f := float32(value) + s.MinScore = &f + case float64: + f := float32(v) + s.MinScore = &f + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + + case "rank_window_size": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "RankWindowSize", err) + } + s.RankWindowSize = &value + case float64: + f := int(v) + s.RankWindowSize = &f + } + + case "retrievers": + if err := dec.Decode(&s.Retrievers); err != nil { + return fmt.Errorf("%s | %w", "Retrievers", err) + } + + } + } + return nil +} + +// NewLinearRetriever returns a LinearRetriever. +func NewLinearRetriever() *LinearRetriever { + r := &LinearRetriever{} + + return r +} + +type LinearRetrieverVariant interface { + LinearRetrieverCaster() *LinearRetriever +} + +func (s *LinearRetriever) LinearRetrieverCaster() *LinearRetriever { + return s +} diff --git a/typedapi/types/listtypevalidation.go b/typedapi/types/listtypevalidation.go index c9ee02b3b4..572e5a7d7a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ListTypeValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L68-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L68-L71 type ListTypeValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` @@ -94,8 +94,6 @@ func NewListTypeValidation() *ListTypeValidation { return r } -// true - type ListTypeValidationVariant interface { ListTypeValidationCaster() *ListTypeValidation } @@ -103,3 +101,8 @@ type ListTypeValidationVariant interface { func (s *ListTypeValidation) ListTypeValidationCaster() *ListTypeValidation { return s } + +func (s *ListTypeValidation) ValidationCaster() *Validation { + o := Validation(s) + return &o +} diff --git a/typedapi/types/lithuaniananalyzer.go b/typedapi/types/lithuaniananalyzer.go index 5f33992073..7c0bf7a102 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // LithuanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L241-L246 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L241-L246 type LithuanianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *LithuanianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *LithuanianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewLithuanianAnalyzer() *LithuanianAnalyzer { return r } -// true - type LithuanianAnalyzerVariant interface { LithuanianAnalyzerCaster() *LithuanianAnalyzer } @@ -128,3 +115,8 @@ type LithuanianAnalyzerVariant interface { func (s *LithuanianAnalyzer) LithuanianAnalyzerCaster() *LithuanianAnalyzer { return s } + +func (s *LithuanianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/local.go b/typedapi/types/local.go index 6d20a36b77..180cfecffe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Local type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L63-L65 type Local struct { Type string `json:"type"` } @@ -74,5 +74,3 @@ func NewLocal() *Local { return r } - -// false diff --git a/typedapi/types/loggingaction.go b/typedapi/types/loggingaction.go index e269099190..3ca374aed1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LoggingAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L281-L285 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L281-L285 type LoggingAction struct { Category *string `json:"category,omitempty"` Level *string `json:"level,omitempty"` @@ -101,8 +101,6 @@ func NewLoggingAction() *LoggingAction { return r } -// true - type LoggingActionVariant interface { LoggingActionCaster() *LoggingAction } diff --git a/typedapi/types/loggingresult.go b/typedapi/types/loggingresult.go index 5872ab0b9b..b1d84748e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LoggingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L287-L289 type LoggingResult struct { LoggedText string `json:"logged_text"` } @@ -74,5 +74,3 @@ func NewLoggingResult() *LoggingResult { return r } - -// false diff --git a/typedapi/types/logstashpipeline.go b/typedapi/types/logstashpipeline.go index a5f580a295..55f7b65beb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LogstashPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/logstash/_types/Pipeline.ts#L56-L87 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -129,8 +129,6 @@ func NewLogstashPipeline() *LogstashPipeline { return r } -// true - type LogstashPipelineVariant interface { LogstashPipelineCaster() *LogstashPipeline } diff --git a/typedapi/types/longnumberproperty.go b/typedapi/types/longnumberproperty.go index ca54f0d155..329a418c4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // LongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L175-L178 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L175-L178 type LongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -689,6 +695,12 @@ func (s *LongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -972,8 +984,6 @@ func NewLongNumberProperty() *LongNumberProperty { return r } -// true - type LongNumberPropertyVariant interface { LongNumberPropertyCaster() *LongNumberProperty } @@ -981,3 +991,8 @@ type LongNumberPropertyVariant interface { func (s *LongNumberProperty) LongNumberPropertyCaster() *LongNumberProperty { return s } + +func (s *LongNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/longrangeproperty.go b/typedapi/types/longrangeproperty.go index bb26340299..cddf2a7c22 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // LongRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/range.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/range.ts#L50-L52 type LongRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -274,6 +274,12 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -643,6 +649,12 @@ func (s *LongRangeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -896,8 +908,6 @@ func NewLongRangeProperty() *LongRangeProperty { return r } -// true - type LongRangePropertyVariant interface { LongRangePropertyCaster() *LongRangeProperty } @@ -905,3 +915,8 @@ type LongRangePropertyVariant interface { func (s *LongRangeProperty) LongRangePropertyCaster() *LongRangeProperty { return s } + +func (s *LongRangeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/longraretermsaggregate.go b/typedapi/types/longraretermsaggregate.go index 0cc1f8eba5..d9e6d92e61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // LongRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L471-L476 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L471-L476 type LongRareTermsAggregate struct { Buckets BucketsLongRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewLongRareTermsAggregate() *LongRareTermsAggregate { return r } - -// false diff --git a/typedapi/types/longraretermsbucket.go b/typedapi/types/longraretermsbucket.go index 63c2d906a2..a343eb9dd8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // LongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L478-L481 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L478-L481 type LongRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -659,5 +659,3 @@ func NewLongRareTermsBucket() *LongRareTermsBucket { return r } - -// false diff --git a/typedapi/types/longtermsaggregate.go b/typedapi/types/longtermsaggregate.go index 562f84bebb..2021606f27 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L439-L444 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L439-L444 type LongTermsAggregate struct { Buckets BucketsLongTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` @@ -121,5 +121,3 @@ func NewLongTermsAggregate() *LongTermsAggregate { return r } - -// false diff --git a/typedapi/types/longtermsbucket.go b/typedapi/types/longtermsbucket.go index 55f5573b72..13ec1a6c4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // LongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L446-L449 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L446-L449 type LongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -675,5 +675,3 @@ func NewLongTermsBucket() *LongTermsBucket { return r } - -// false diff --git a/typedapi/types/lowercasenormalizer.go b/typedapi/types/lowercasenormalizer.go index d092e65196..e50ddf28d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // LowercaseNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/normalizers.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/normalizers.ts#L26-L28 type LowercaseNormalizer struct { Type string `json:"type,omitempty"` } @@ -50,8 +50,6 @@ func NewLowercaseNormalizer() *LowercaseNormalizer { return r } -// true - type LowercaseNormalizerVariant interface { LowercaseNormalizerCaster() *LowercaseNormalizer } @@ -59,3 +57,8 @@ type LowercaseNormalizerVariant interface { func (s *LowercaseNormalizer) LowercaseNormalizerCaster() *LowercaseNormalizer { return s } + +func (s *LowercaseNormalizer) NormalizerCaster() *Normalizer { + o := Normalizer(s) + return &o +} diff --git a/typedapi/types/lowercaseprocessor.go b/typedapi/types/lowercaseprocessor.go index b939e44934..6dcb131a61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // LowercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1231-L1247 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1231-L1247 type LowercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewLowercaseProcessor() *LowercaseProcessor { return r } -// true - type LowercaseProcessorVariant interface { LowercaseProcessorCaster() *LowercaseProcessor } diff --git a/typedapi/types/lowercasetokenfilter.go b/typedapi/types/lowercasetokenfilter.go index 94ba67cb1e..1dc7a58cfc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,16 +26,18 @@ import ( "errors" "fmt" "io" - "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lowercasetokenfilterlanguages" ) // LowercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L256-L259 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L350-L354 type LowercaseTokenFilter struct { - Language *string `json:"language,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // Language Language-specific lowercase token filter to use. + Language *lowercasetokenfilterlanguages.LowercaseTokenFilterLanguages `json:"language,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *LowercaseTokenFilter) UnmarshalJSON(data []byte) error { @@ -54,16 +56,9 @@ func (s *LowercaseTokenFilter) UnmarshalJSON(data []byte) error { switch t { case "language": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.Language); err != nil { return fmt.Errorf("%s | %w", "Language", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Language = &o case "type": if err := dec.Decode(&s.Type); err != nil { @@ -101,8 +96,6 @@ func NewLowercaseTokenFilter() *LowercaseTokenFilter { return r } -// true - type LowercaseTokenFilterVariant interface { LowercaseTokenFilterCaster() *LowercaseTokenFilter } @@ -110,3 +103,8 @@ type LowercaseTokenFilterVariant interface { func (s *LowercaseTokenFilter) LowercaseTokenFilterCaster() *LowercaseTokenFilter { return s } + +func (s *LowercaseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/lowercasetokenizer.go b/typedapi/types/lowercasetokenizer.go index 63c6af7390..0a4b01be93 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // LowercaseTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L80-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L81-L83 type LowercaseTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewLowercaseTokenizer() *LowercaseTokenizer { return r } -// true - type LowercaseTokenizerVariant interface { LowercaseTokenizerCaster() *LowercaseTokenizer } @@ -95,3 +93,8 @@ type LowercaseTokenizerVariant interface { func (s *LowercaseTokenizer) LowercaseTokenizerCaster() *LowercaseTokenizer { return s } + +func (s *LowercaseTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/machinelearning.go b/typedapi/types/machinelearning.go index 1a31a9c6f6..41232da1c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MachineLearning type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L378-L385 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L378-L385 type MachineLearning struct { Available bool `json:"available"` DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"` @@ -143,5 +143,3 @@ func NewMachineLearning() *MachineLearning { return r } - -// false diff --git a/typedapi/types/manageuserprivileges.go b/typedapi/types/manageuserprivileges.go index a6723a4f54..7adc1e55e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ManageUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L438-L440 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/Privileges.ts#L438-L440 type ManageUserPrivileges struct { Applications []string `json:"applications"` } @@ -34,8 +34,6 @@ func NewManageUserPrivileges() *ManageUserPrivileges { return r } -// true - type ManageUserPrivilegesVariant interface { ManageUserPrivilegesCaster() *ManageUserPrivileges } diff --git a/typedapi/types/mapboxvectortiles.go b/typedapi/types/mapboxvectortiles.go index 3d5b9b59a8..161ae2cee4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MapboxVectorTiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Binary.ts#L21-L21 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Binary.ts#L21-L21 type MapboxVectorTiles []byte diff --git a/typedapi/types/mappingcharfilter.go b/typedapi/types/mappingcharfilter.go index 479a5ab943..de7143379a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/char_filters.ts#L51-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/char_filters.ts#L51-L55 type MappingCharFilter struct { Mappings []string `json:"mappings,omitempty"` MappingsPath *string `json:"mappings_path,omitempty"` @@ -108,8 +108,6 @@ func NewMappingCharFilter() *MappingCharFilter { return r } -// true - type MappingCharFilterVariant interface { MappingCharFilterCaster() *MappingCharFilter } @@ -117,3 +115,8 @@ type MappingCharFilterVariant interface { func (s *MappingCharFilter) MappingCharFilterCaster() *MappingCharFilter { return s } + +func (s *MappingCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition { + o := CharFilterDefinition(s) + return &o +} diff --git a/typedapi/types/mappinglimitsettings.go b/typedapi/types/mappinglimitsettings.go index 8769d688ee..50f999d82f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,13 @@ import ( // MappingLimitSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L425-L439 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L427-L441 type MappingLimitSettings struct { Coerce *bool `json:"coerce,omitempty"` Depth *MappingLimitSettingsDepth `json:"depth,omitempty"` DimensionFields *MappingLimitSettingsDimensionFields `json:"dimension_fields,omitempty"` FieldNameLength *MappingLimitSettingsFieldNameLength `json:"field_name_length,omitempty"` - IgnoreMalformed string `json:"ignore_malformed,omitempty"` + IgnoreMalformed *string `json:"ignore_malformed,omitempty"` NestedFields *MappingLimitSettingsNestedFields `json:"nested_fields,omitempty"` NestedObjects *MappingLimitSettingsNestedObjects `json:"nested_objects,omitempty"` Source *MappingLimitSettingsSourceFields `json:"source,omitempty"` @@ -98,7 +98,7 @@ func (s *MappingLimitSettings) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.IgnoreMalformed = o + s.IgnoreMalformed = &o case "nested_fields": if err := dec.Decode(&s.NestedFields); err != nil { @@ -132,8 +132,6 @@ func NewMappingLimitSettings() *MappingLimitSettings { return r } -// true - type MappingLimitSettingsVariant interface { MappingLimitSettingsCaster() *MappingLimitSettings } diff --git a/typedapi/types/mappinglimitsettingsdepth.go b/typedapi/types/mappinglimitsettingsdepth.go index e32cc56172..e7b34657ae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDepth type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L460-L467 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L462-L469 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 @@ -82,8 +82,6 @@ func NewMappingLimitSettingsDepth() *MappingLimitSettingsDepth { return r } -// true - type MappingLimitSettingsDepthVariant interface { MappingLimitSettingsDepthCaster() *MappingLimitSettingsDepth } diff --git a/typedapi/types/mappinglimitsettingsdimensionfields.go b/typedapi/types/mappinglimitsettingsdimensionfields.go index b47f0d2bdc..7ebd09e5df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDimensionFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L497-L503 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L499-L505 type MappingLimitSettingsDimensionFields struct { // Limit [preview] This functionality is in technical preview and may be changed or // removed in a future release. @@ -82,8 +82,6 @@ func NewMappingLimitSettingsDimensionFields() *MappingLimitSettingsDimensionFiel return r } -// true - type MappingLimitSettingsDimensionFieldsVariant interface { MappingLimitSettingsDimensionFieldsCaster() *MappingLimitSettingsDimensionFields } diff --git a/typedapi/types/mappinglimitsettingsfieldnamelength.go b/typedapi/types/mappinglimitsettingsfieldnamelength.go index 7ee7eb3556..6139c76bd6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsFieldNameLength type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L488-L495 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L490-L497 type MappingLimitSettingsFieldNameLength struct { // Limit Setting for the maximum length of a field name. This setting isn’t really // something that addresses mappings explosion but @@ -84,8 +84,6 @@ func NewMappingLimitSettingsFieldNameLength() *MappingLimitSettingsFieldNameLeng return r } -// true - type MappingLimitSettingsFieldNameLengthVariant interface { MappingLimitSettingsFieldNameLengthCaster() *MappingLimitSettingsFieldNameLength } diff --git a/typedapi/types/mappinglimitsettingsnestedfields.go b/typedapi/types/mappinglimitsettingsnestedfields.go index 5d46163a9a..4e0df326a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L469-L477 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L471-L479 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 @@ -83,8 +83,6 @@ func NewMappingLimitSettingsNestedFields() *MappingLimitSettingsNestedFields { return r } -// true - type MappingLimitSettingsNestedFieldsVariant interface { MappingLimitSettingsNestedFieldsCaster() *MappingLimitSettingsNestedFields } diff --git a/typedapi/types/mappinglimitsettingsnestedobjects.go b/typedapi/types/mappinglimitsettingsnestedobjects.go index 2d0872569c..342ae4c929 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedObjects type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L479-L486 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L481-L488 type MappingLimitSettingsNestedObjects struct { // Limit The maximum number of nested JSON objects that a single document can contain // across all nested types. This limit helps @@ -82,8 +82,6 @@ func NewMappingLimitSettingsNestedObjects() *MappingLimitSettingsNestedObjects { return r } -// true - type MappingLimitSettingsNestedObjectsVariant interface { MappingLimitSettingsNestedObjectsCaster() *MappingLimitSettingsNestedObjects } diff --git a/typedapi/types/mappinglimitsettingssourcefields.go b/typedapi/types/mappinglimitsettingssourcefields.go index 7f2fb9d57d..f393baae94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // MappingLimitSettingsSourceFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L505-L507 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L507-L509 type MappingLimitSettingsSourceFields struct { Mode sourcemode.SourceMode `json:"mode"` } @@ -38,8 +38,6 @@ func NewMappingLimitSettingsSourceFields() *MappingLimitSettingsSourceFields { return r } -// true - type MappingLimitSettingsSourceFieldsVariant interface { MappingLimitSettingsSourceFieldsCaster() *MappingLimitSettingsSourceFields } diff --git a/typedapi/types/mappinglimitsettingstotalfields.go b/typedapi/types/mappinglimitsettingstotalfields.go index 3caa5a990a..e54c2be67a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsTotalFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L441-L458 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L443-L460 type MappingLimitSettingsTotalFields struct { // IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would // exceed the total fields limit. When set @@ -43,14 +43,14 @@ type MappingLimitSettingsTotalFields struct { // similar to dynamic: false. // The fields that were not added to the mapping will be added to the _ignored // field. - IgnoreDynamicBeyondLimit string `json:"ignore_dynamic_beyond_limit,omitempty"` + IgnoreDynamicBeyondLimit *string `json:"ignore_dynamic_beyond_limit,omitempty"` // Limit The maximum number of fields in an index. Field and object mappings, as well // as field aliases count towards this limit. // The limit is in place to prevent mappings and searches from becoming too // large. Higher values can lead to performance // degradations and memory issues, especially in clusters with a high load or // few resources. - Limit string `json:"limit,omitempty"` + Limit *string `json:"limit,omitempty"` } func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error { @@ -78,7 +78,7 @@ func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.IgnoreDynamicBeyondLimit = o + s.IgnoreDynamicBeyondLimit = &o case "limit": var tmp json.RawMessage @@ -90,7 +90,7 @@ func (s *MappingLimitSettingsTotalFields) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Limit = o + s.Limit = &o } } @@ -104,8 +104,6 @@ func NewMappingLimitSettingsTotalFields() *MappingLimitSettingsTotalFields { return r } -// true - type MappingLimitSettingsTotalFieldsVariant interface { MappingLimitSettingsTotalFieldsCaster() *MappingLimitSettingsTotalFields } diff --git a/typedapi/types/mappingstats.go b/typedapi/types/mappingstats.go index e73737d995..58d3059b51 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MappingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L186-L190 type MappingStats struct { TotalCount int64 `json:"total_count"` TotalEstimatedOverhead ByteSize `json:"total_estimated_overhead,omitempty"` @@ -99,5 +99,3 @@ func NewMappingStats() *MappingStats { return r } - -// false diff --git a/typedapi/types/masterisstableindicator.go b/typedapi/types/masterisstableindicator.go index 0a49215cea..c1885373d2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MasterIsStableIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L81-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L82-L86 type MasterIsStableIndicator struct { Details *MasterIsStableIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewMasterIsStableIndicator() *MasterIsStableIndicator { return r } - -// false diff --git a/typedapi/types/masterisstableindicatorclusterformationnode.go b/typedapi/types/masterisstableindicatorclusterformationnode.go index a8d90ed102..3f699feb89 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorClusterFormationNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L101-L105 type MasterIsStableIndicatorClusterFormationNode struct { ClusterFormationMessage string `json:"cluster_formation_message"` Name *string `json:"name,omitempty"` @@ -100,5 +100,3 @@ func NewMasterIsStableIndicatorClusterFormationNode() *MasterIsStableIndicatorCl return r } - -// false diff --git a/typedapi/types/masterisstableindicatordetails.go b/typedapi/types/masterisstableindicatordetails.go index 01de896adb..f787b18b68 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MasterIsStableIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L87-L92 type MasterIsStableIndicatorDetails struct { ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"` CurrentMaster IndicatorNode `json:"current_master"` @@ -36,5 +36,3 @@ func NewMasterIsStableIndicatorDetails() *MasterIsStableIndicatorDetails { return r } - -// false diff --git a/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go b/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go index b70246eb32..919f2f8b19 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorExceptionFetchingHistory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L97-L100 type MasterIsStableIndicatorExceptionFetchingHistory struct { Message string `json:"message"` StackTrace string `json:"stack_trace"` @@ -87,5 +87,3 @@ func NewMasterIsStableIndicatorExceptionFetchingHistory() *MasterIsStableIndicat return r } - -// false diff --git a/typedapi/types/masterrecord.go b/typedapi/types/masterrecord.go index 31477d9e8f..bf86363ec7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MasterRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/master/types.ts#L20-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/master/types.ts#L20-L39 type MasterRecord struct { // Host host name Host *string `json:"host,omitempty"` @@ -117,5 +117,3 @@ func NewMasterRecord() *MasterRecord { return r } - -// false diff --git a/typedapi/types/matchallquery.go b/typedapi/types/matchallquery.go index 17a09f9628..f7bac7b802 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatchAllQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -97,8 +97,6 @@ func NewMatchAllQuery() *MatchAllQuery { return r } -// true - type MatchAllQueryVariant interface { MatchAllQueryCaster() *MatchAllQuery } diff --git a/typedapi/types/matchboolprefixquery.go b/typedapi/types/matchboolprefixquery.go index eefa9a1c95..ce30cd9282 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MatchBoolPrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L355-L412 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L406-L463 type MatchBoolPrefixQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -233,8 +233,6 @@ func NewMatchBoolPrefixQuery() *MatchBoolPrefixQuery { return r } -// true - type MatchBoolPrefixQueryVariant interface { MatchBoolPrefixQueryCaster() *MatchBoolPrefixQuery } diff --git a/typedapi/types/matchedfield.go b/typedapi/types/matchedfield.go index 78ac30aacc..5a4018d016 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatchedField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/test_grok_pattern/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/text_structure/test_grok_pattern/types.ts#L23-L27 type MatchedField struct { Length int `json:"length"` Match string `json:"match"` @@ -108,5 +108,3 @@ func NewMatchedField() *MatchedField { return r } - -// false diff --git a/typedapi/types/matchedtext.go b/typedapi/types/matchedtext.go index 79cdf7494d..4729382356 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatchedText type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/test_grok_pattern/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/text_structure/test_grok_pattern/types.ts#L29-L32 type MatchedText struct { Fields map[string][]MatchedField `json:"fields,omitempty"` Matched bool `json:"matched"` @@ -87,5 +87,3 @@ func NewMatchedText() *MatchedText { return r } - -// false diff --git a/typedapi/types/matchnonequery.go b/typedapi/types/matchnonequery.go index 3fc37dc6e3..947b0a4ee0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatchNoneQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -97,8 +97,6 @@ func NewMatchNoneQuery() *MatchNoneQuery { return r } -// true - type MatchNoneQueryVariant interface { MatchNoneQueryCaster() *MatchNoneQuery } diff --git a/typedapi/types/matchonlytextproperty.go b/typedapi/types/matchonlytextproperty.go index e9221b0b97..858b3e8e02 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MatchOnlyTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L256-L281 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L266-L291 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. @@ -218,6 +218,12 @@ func (s *MatchOnlyTextProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -450,8 +456,6 @@ func NewMatchOnlyTextProperty() *MatchOnlyTextProperty { return r } -// true - type MatchOnlyTextPropertyVariant interface { MatchOnlyTextPropertyCaster() *MatchOnlyTextProperty } @@ -459,3 +463,8 @@ type MatchOnlyTextPropertyVariant interface { func (s *MatchOnlyTextProperty) MatchOnlyTextPropertyCaster() *MatchOnlyTextProperty { return s } + +func (s *MatchOnlyTextProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/matchphraseprefixquery.go b/typedapi/types/matchphraseprefixquery.go index 070674a893..5f4c3eaf9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MatchPhrasePrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L440-L469 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L491-L520 type MatchPhrasePrefixQuery struct { // Analyzer Analyzer used to convert text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -184,8 +184,6 @@ func NewMatchPhrasePrefixQuery() *MatchPhrasePrefixQuery { return r } -// true - type MatchPhrasePrefixQueryVariant interface { MatchPhrasePrefixQueryCaster() *MatchPhrasePrefixQuery } diff --git a/typedapi/types/matchphrasequery.go b/typedapi/types/matchphrasequery.go index d915445be4..b8e29d7528 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MatchPhraseQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L414-L438 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L465-L489 type MatchPhraseQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -165,8 +165,6 @@ func NewMatchPhraseQuery() *MatchPhraseQuery { return r } -// true - type MatchPhraseQueryVariant interface { MatchPhraseQueryCaster() *MatchPhraseQuery } diff --git a/typedapi/types/matchquery.go b/typedapi/types/matchquery.go index 1fe5555cd6..5130fa10ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // MatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L285-L353 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L336-L404 type MatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -280,8 +280,6 @@ func NewMatchQuery() *MatchQuery { return r } -// true - type MatchQueryVariant interface { MatchQueryCaster() *MatchQuery } diff --git a/typedapi/types/matrixstatsaggregate.go b/typedapi/types/matrixstatsaggregate.go index 194b632088..c9bede5a0e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L866-L873 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L868-L875 type MatrixStatsAggregate struct { DocCount int64 `json:"doc_count"` Fields []MatrixStatsFields `json:"fields,omitempty"` @@ -89,5 +89,3 @@ func NewMatrixStatsAggregate() *MatrixStatsAggregate { return r } - -// false diff --git a/typedapi/types/matrixstatsaggregation.go b/typedapi/types/matrixstatsaggregation.go index 2bc287b570..b2eef45840 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // MatrixStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/matrix.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/matrix.ts#L38-L44 type MatrixStatsAggregation struct { // Fields An array of fields for computing the statistics. Fields []string `json:"fields,omitempty"` @@ -101,8 +101,6 @@ func NewMatrixStatsAggregation() *MatrixStatsAggregation { return r } -// true - type MatrixStatsAggregationVariant interface { MatrixStatsAggregationCaster() *MatrixStatsAggregation } diff --git a/typedapi/types/matrixstatsfields.go b/typedapi/types/matrixstatsfields.go index ab24d1f0c3..c93895059e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L875-L884 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L877-L886 type MatrixStatsFields struct { Correlation map[string]Float64 `json:"correlation"` Count int64 `json:"count"` @@ -172,5 +172,3 @@ func NewMatrixStatsFields() *MatrixStatsFields { return r } - -// false diff --git a/typedapi/types/maxaggregate.go b/typedapi/types/maxaggregate.go index d974e0eec2..74ead891d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MaxAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewMaxAggregate() *MaxAggregate { return r } - -// false diff --git a/typedapi/types/maxaggregation.go b/typedapi/types/maxaggregation.go index b42cabe88c..ad20605ed0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MaxAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L165-L165 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L165-L165 type MaxAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewMaxAggregation() *MaxAggregation { return r } -// true - type MaxAggregationVariant interface { MaxAggregationCaster() *MaxAggregation } diff --git a/typedapi/types/maxbucketaggregation.go b/typedapi/types/maxbucketaggregation.go index 58d0d8db85..48bb65d2c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MaxBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L244-L247 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewMaxBucketAggregation() *MaxBucketAggregation { return r } -// true - type MaxBucketAggregationVariant interface { MaxBucketAggregationCaster() *MaxBucketAggregation } diff --git a/typedapi/types/maxmind.go b/typedapi/types/maxmind.go index dab1b13905..24f96a91cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Maxmind type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L55-L57 type Maxmind struct { AccountId string `json:"account_id"` } @@ -67,8 +67,6 @@ func NewMaxmind() *Maxmind { return r } -// true - type MaxmindVariant interface { MaxmindCaster() *Maxmind } diff --git a/typedapi/types/medianabsolutedeviationaggregate.go b/typedapi/types/medianabsolutedeviationaggregate.go index 833ce69742..7bee55c820 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L196-L197 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewMedianAbsoluteDeviationAggregate() *MedianAbsoluteDeviationAggregate { return r } - -// false diff --git a/typedapi/types/medianabsolutedeviationaggregation.go b/typedapi/types/medianabsolutedeviationaggregation.go index a1d1083064..40aaf4074f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L167-L176 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -116,8 +116,6 @@ func NewMedianAbsoluteDeviationAggregation() *MedianAbsoluteDeviationAggregation return r } -// true - type MedianAbsoluteDeviationAggregationVariant interface { MedianAbsoluteDeviationAggregationCaster() *MedianAbsoluteDeviationAggregation } diff --git a/typedapi/types/memmlstats.go b/typedapi/types/memmlstats.go index dd97cf0114..a77d3fae1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MemMlStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_memory_stats/types.ts#L90-L111 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -192,5 +192,3 @@ func NewMemMlStats() *MemMlStats { return r } - -// false diff --git a/typedapi/types/memory.go b/typedapi/types/memory.go index b784efd7d5..778173393d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Memory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_memory_stats/types.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/get_memory_stats/types.ts#L25-L48 type Memory struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` @@ -113,5 +113,3 @@ func NewMemory() *Memory { return r } - -// false diff --git a/typedapi/types/memorystats.go b/typedapi/types/memorystats.go index 6a9a63101a..ba221c472b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L632-L656 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L634-L658 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 @@ -219,5 +219,3 @@ func NewMemoryStats() *MemoryStats { return r } - -// false diff --git a/typedapi/types/memstats.go b/typedapi/types/memstats.go index 8d0e20478c..b40b5d1747 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MemStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/get_memory_stats/types.ts#L65-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -124,5 +124,3 @@ func NewMemStats() *MemStats { return r } - -// false diff --git a/typedapi/types/merge.go b/typedapi/types/merge.go index 8db390708a..4a098743dd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Merge type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L346-L348 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L348-L350 type Merge struct { Scheduler *MergeScheduler `json:"scheduler,omitempty"` } @@ -34,8 +34,6 @@ func NewMerge() *Merge { return r } -// true - type MergeVariant interface { MergeCaster() *Merge } diff --git a/typedapi/types/mergescheduler.go b/typedapi/types/mergescheduler.go index fdd6eec916..8ed2dded1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MergeScheduler type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L350-L353 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L352-L355 type MergeScheduler struct { MaxMergeCount Stringifiedinteger `json:"max_merge_count,omitempty"` MaxThreadCount Stringifiedinteger `json:"max_thread_count,omitempty"` @@ -73,8 +73,6 @@ func NewMergeScheduler() *MergeScheduler { return r } -// true - type MergeSchedulerVariant interface { MergeSchedulerCaster() *MergeScheduler } diff --git a/typedapi/types/mergesstats.go b/typedapi/types/mergesstats.go index 37f5a261aa..cdf2ef72e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MergesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L164-L181 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L186-L203 type MergesStats struct { Current int64 `json:"current"` CurrentDocs int64 `json:"current_docs"` @@ -248,5 +248,3 @@ func NewMergesStats() *MergesStats { return r } - -// false diff --git a/typedapi/types/message.go b/typedapi/types/message.go index c173bf5839..7c1cdb0b37 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,15 +31,58 @@ import ( // Message type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L135-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L174-L228 type Message struct { // Content The content of the message. + // + // String example: + // ``` + // + // { + // "content": "Some string" + // } + // + // ``` + // + // Object example: + // ``` + // + // { + // "content": [ + // { + // "text": "Some text", + // "type": "text" + // } + // ] + // } + // + // ``` Content MessageContent `json:"content,omitempty"` - // Role The role of the message author. + // Role The role of the message author. Valid values are `user`, `assistant`, + // `system`, and `tool`. Role string `json:"role"` - // ToolCallId The tool call that this message is responding to. + // ToolCallId Only for `tool` role messages. The tool call that this message is responding + // to. ToolCallId *string `json:"tool_call_id,omitempty"` - // ToolCalls The tool calls generated by the model. + // ToolCalls Only for `assistant` role messages. The tool calls generated by the model. If + // it's specified, the `content` field is optional. + // Example: + // ``` + // + // { + // "tool_calls": [ + // { + // "id": "call_KcAjWtAww20AihPHphUh46Gd", + // "type": "function", + // "function": { + // "name": "get_current_weather", + // "arguments": "{\"location\":\"Boston, MA\"}" + // } + // } + // ] + // } + // + // ``` ToolCalls []ToolCall `json:"tool_calls,omitempty"` } @@ -97,8 +140,6 @@ func NewMessage() *Message { return r } -// true - type MessageVariant interface { MessageCaster() *Message } diff --git a/typedapi/types/messagecontent.go b/typedapi/types/messagecontent.go index 17459948e2..24993fbff9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // []ContentObject // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L130-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L169-L172 type MessageContent any type MessageContentVariant interface { diff --git a/typedapi/types/metadata.go b/typedapi/types/metadata.go index 74696d2fa7..9653f953df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // Metadata type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L93-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L93-L93 type Metadata map[string]json.RawMessage type MetadataVariant interface { diff --git a/typedapi/types/metrics.go b/typedapi/types/metrics.go index cdd15cbf94..f7b7056183 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Metrics type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L70-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L70-L70 type Metrics []string diff --git a/typedapi/types/mgetoperation.go b/typedapi/types/mgetoperation.go index 1a0d796d26..ae19e8de0f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // MgetOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mget/types.ts#L32-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/mget/types.ts#L32-L55 type MgetOperation struct { // Id_ The unique document ID. Id_ string `json:"_id"` @@ -153,8 +153,6 @@ func NewMgetOperation() *MgetOperation { return r } -// true - type MgetOperationVariant interface { MgetOperationCaster() *MgetOperation } diff --git a/typedapi/types/mgetresponseitem.go b/typedapi/types/mgetresponseitem.go index 1d96a03e4a..52d9a2f905 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // GetResult // MultiGetError // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mget/types.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/mget/types.ts#L57-L60 type MgetResponseItem any diff --git a/typedapi/types/migrateaction.go b/typedapi/types/migrateaction.go index 90fbc1da31..d16992a7e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MigrateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L141-L143 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L141-L143 type MigrateAction struct { Enabled *bool `json:"enabled,omitempty"` } @@ -77,8 +77,6 @@ func NewMigrateAction() *MigrateAction { return r } -// true - type MigrateActionVariant interface { MigrateActionCaster() *MigrateAction } diff --git a/typedapi/types/migratereindex.go b/typedapi/types/migratereindex.go index ebd32cc6b4..fbb32267af 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // MigrateReindex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 type MigrateReindex struct { // Mode Reindex mode. Currently only 'upgrade' is supported. Mode modeenum.ModeEnum `json:"mode"` @@ -41,8 +41,6 @@ func NewMigrateReindex() *MigrateReindex { return r } -// true - type MigrateReindexVariant interface { MigrateReindexCaster() *MigrateReindex } diff --git a/typedapi/types/migrationfeatureindexinfo.go b/typedapi/types/migrationfeatureindexinfo.go index 231f6db220..2d76b4ae94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MigrationFeatureIndexInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 type MigrationFeatureIndexInfo struct { FailureCause *ErrorCause `json:"failure_cause,omitempty"` Index string `json:"index"` @@ -78,5 +78,3 @@ func NewMigrationFeatureIndexInfo() *MigrationFeatureIndexInfo { return r } - -// false diff --git a/typedapi/types/minaggregate.go b/typedapi/types/minaggregate.go index 96819767d5..289762a955 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MinAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L199-L203 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewMinAggregate() *MinAggregate { return r } - -// false diff --git a/typedapi/types/minaggregation.go b/typedapi/types/minaggregation.go index 78816f78de..e4a38ce5aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MinAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L178-L178 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L178-L178 type MinAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewMinAggregation() *MinAggregation { return r } -// true - type MinAggregationVariant interface { MinAggregationCaster() *MinAggregation } diff --git a/typedapi/types/minbucketaggregation.go b/typedapi/types/minbucketaggregation.go index 0b7d928240..d5c755edf7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MinBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L249-L252 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewMinBucketAggregation() *MinBucketAggregation { return r } -// true - type MinBucketAggregationVariant interface { MinBucketAggregationCaster() *MinBucketAggregation } diff --git a/typedapi/types/minhashtokenfilter.go b/typedapi/types/minhashtokenfilter.go new file mode 100644 index 0000000000..6ba75bc2ad --- /dev/null +++ b/typedapi/types/minhashtokenfilter.go @@ -0,0 +1,180 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// MinHashTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L514-L525 +type MinHashTokenFilter struct { + // BucketCount Number of buckets to which hashes are assigned. Defaults to `512`. + BucketCount *int `json:"bucket_count,omitempty"` + // HashCount Number of ways to hash each token in the stream. Defaults to `1`. + HashCount *int `json:"hash_count,omitempty"` + // HashSetSize Number of hashes to keep from each bucket. Defaults to `1`. + // Hashes are retained by ascending size, starting with the bucket’s smallest + // hash first. + HashSetSize *int `json:"hash_set_size,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` + // WithRotation If `true`, the filter fills empty buckets with the value of the first + // non-empty bucket to its circular right if the `hash_set_size` is `1`. If the + // `bucket_count` argument is greater than 1, this parameter defaults to `true`. + // Otherwise, this parameter defaults to `false`. + WithRotation *bool `json:"with_rotation,omitempty"` +} + +func (s *MinHashTokenFilter) 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 "bucket_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", "BucketCount", err) + } + s.BucketCount = &value + case float64: + f := int(v) + s.BucketCount = &f + } + + case "hash_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", "HashCount", err) + } + s.HashCount = &value + case float64: + f := int(v) + s.HashCount = &f + } + + case "hash_set_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", "HashSetSize", err) + } + s.HashSetSize = &value + case float64: + f := int(v) + s.HashSetSize = &f + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + case "with_rotation": + 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", "WithRotation", err) + } + s.WithRotation = &value + case bool: + s.WithRotation = &v + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s MinHashTokenFilter) MarshalJSON() ([]byte, error) { + type innerMinHashTokenFilter MinHashTokenFilter + tmp := innerMinHashTokenFilter{ + BucketCount: s.BucketCount, + HashCount: s.HashCount, + HashSetSize: s.HashSetSize, + Type: s.Type, + Version: s.Version, + WithRotation: s.WithRotation, + } + + tmp.Type = "min_hash" + + return json.Marshal(tmp) +} + +// NewMinHashTokenFilter returns a MinHashTokenFilter. +func NewMinHashTokenFilter() *MinHashTokenFilter { + r := &MinHashTokenFilter{} + + return r +} + +type MinHashTokenFilterVariant interface { + MinHashTokenFilterCaster() *MinHashTokenFilter +} + +func (s *MinHashTokenFilter) MinHashTokenFilterCaster() *MinHashTokenFilter { + return s +} + +func (s *MinHashTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/minimallicenseinformation.go b/typedapi/types/minimallicenseinformation.go index 1b202c53f6..b3ce555963 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // MinimalLicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/info/types.ts#L34-L40 type MinimalLicenseInformation struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` Mode licensetype.LicenseType `json:"mode"` @@ -101,5 +101,3 @@ func NewMinimalLicenseInformation() *MinimalLicenseInformation { return r } - -// false diff --git a/typedapi/types/minimumshouldmatch.go b/typedapi/types/minimumshouldmatch.go index 59119b7d51..8339c709d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L160-L164 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L160-L164 type MinimumShouldMatch any type MinimumShouldMatchVariant interface { diff --git a/typedapi/types/missing.go b/typedapi/types/missing.go index 337cfc0d32..9366feae45 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ package types // Float64 // bool // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/AggregationContainer.ts#L535-L535 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2c574c977f..ea8d81b776 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // MissingAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L528-L532 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L528-L532 type MissingAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewMissingAggregate() *MissingAggregate { return r } - -// false diff --git a/typedapi/types/missingaggregation.go b/typedapi/types/missingaggregation.go index 1c105ce13f..926c2be11f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MissingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L593-L599 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L593-L599 type MissingAggregation struct { // Field The name of the field. Field *string `json:"field,omitempty"` @@ -74,8 +74,6 @@ func NewMissingAggregation() *MissingAggregation { return r } -// true - type MissingAggregationVariant interface { MissingAggregationCaster() *MissingAggregation } diff --git a/typedapi/types/mistralservicesettings.go b/typedapi/types/mistralservicesettings.go index bd2531a339..bef31c3ec9 100644 --- a/typedapi/types/mistralservicesettings.go +++ b/typedapi/types/mistralservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MistralServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L976-L1003 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1049-L1076 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 @@ -129,8 +129,6 @@ func NewMistralServiceSettings() *MistralServiceSettings { return r } -// true - type MistralServiceSettingsVariant interface { MistralServiceSettingsCaster() *MistralServiceSettings } diff --git a/typedapi/types/mlcounter.go b/typedapi/types/mlcounter.go index 13a931a3c4..8d952d7caf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlCounter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L265-L267 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L265-L267 type MlCounter struct { Count int64 `json:"count"` } @@ -77,5 +77,3 @@ func NewMlCounter() *MlCounter { return r } - -// false diff --git a/typedapi/types/mldatafeed.go b/typedapi/types/mldatafeed.go index 8d23df106b..e845bc3eb7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MLDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L37-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -191,5 +191,3 @@ func NewMLDatafeed() *MLDatafeed { return r } - -// false diff --git a/typedapi/types/mldataframeanalyticsjobs.go b/typedapi/types/mldataframeanalyticsjobs.go index 6f67c638ab..c1a99f2ff2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MlDataFrameAnalyticsJobs type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L187-L192 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L187-L192 type MlDataFrameAnalyticsJobs struct { All_ MlDataFrameAnalyticsJobsCount `json:"_all"` AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"` @@ -36,5 +36,3 @@ func NewMlDataFrameAnalyticsJobs() *MlDataFrameAnalyticsJobs { return r } - -// false diff --git a/typedapi/types/mldataframeanalyticsjobsanalysis.go b/typedapi/types/mldataframeanalyticsjobsanalysis.go index b620b3ff02..06f3c5841f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L194-L198 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L194-L198 type MlDataFrameAnalyticsJobsAnalysis struct { Classification *int `json:"classification,omitempty"` OutlierDetection *int `json:"outlier_detection,omitempty"` @@ -112,5 +112,3 @@ func NewMlDataFrameAnalyticsJobsAnalysis() *MlDataFrameAnalyticsJobsAnalysis { return r } - -// false diff --git a/typedapi/types/mldataframeanalyticsjobscount.go b/typedapi/types/mldataframeanalyticsjobscount.go index cd99d8a197..28e1711477 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L204-L206 type MlDataFrameAnalyticsJobsCount struct { Count int64 `json:"count"` } @@ -77,5 +77,3 @@ func NewMlDataFrameAnalyticsJobsCount() *MlDataFrameAnalyticsJobsCount { return r } - -// false diff --git a/typedapi/types/mldataframeanalyticsjobsmemory.go b/typedapi/types/mldataframeanalyticsjobsmemory.go index c73345c5d3..10fb5e802e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MlDataFrameAnalyticsJobsMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L200-L202 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L200-L202 type MlDataFrameAnalyticsJobsMemory struct { PeakUsageBytes JobStatistics `json:"peak_usage_bytes"` } @@ -33,5 +33,3 @@ func NewMlDataFrameAnalyticsJobsMemory() *MlDataFrameAnalyticsJobsMemory { return r } - -// false diff --git a/typedapi/types/mlfilter.go b/typedapi/types/mlfilter.go index addb14973c..0af7d79f90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MLFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Filter.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Filter.ts#L22-L29 type MLFilter struct { // Description A description of the filter. Description *string `json:"description,omitempty"` @@ -89,5 +89,3 @@ func NewMLFilter() *MLFilter { return r } - -// false diff --git a/typedapi/types/mlinference.go b/typedapi/types/mlinference.go index 78313266c0..ec3bec40b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MlInference type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L208-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L208-L216 type MlInference struct { Deployments *MlInferenceDeployments `json:"deployments,omitempty"` IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"` @@ -37,5 +37,3 @@ func NewMlInference() *MlInference { return r } - -// false diff --git a/typedapi/types/mlinferencedeployments.go b/typedapi/types/mlinferencedeployments.go index bca567d497..3e06a76aa0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeployments type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L237-L242 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L237-L242 type MlInferenceDeployments struct { Count int `json:"count"` InferenceCounts JobStatistics `json:"inference_counts"` @@ -96,5 +96,3 @@ func NewMlInferenceDeployments() *MlInferenceDeployments { return r } - -// false diff --git a/typedapi/types/mlinferencedeploymentstimems.go b/typedapi/types/mlinferencedeploymentstimems.go index 88a9d8a1c6..61e6d17f0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeploymentsTimeMs type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L244-L246 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L244-L246 type MlInferenceDeploymentsTimeMs struct { Avg Float64 `json:"avg"` } @@ -78,5 +78,3 @@ func NewMlInferenceDeploymentsTimeMs() *MlInferenceDeploymentsTimeMs { return r } - -// false diff --git a/typedapi/types/mlinferenceingestprocessor.go b/typedapi/types/mlinferenceingestprocessor.go index 38d9710598..90b47d4cc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MlInferenceIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L218-L223 type MlInferenceIngestProcessor struct { NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"` NumFailures MlInferenceIngestProcessorCount `json:"num_failures"` @@ -36,5 +36,3 @@ func NewMlInferenceIngestProcessor() *MlInferenceIngestProcessor { return r } - -// false diff --git a/typedapi/types/mlinferenceingestprocessorcount.go b/typedapi/types/mlinferenceingestprocessorcount.go index acc3a87b72..fd36eb223d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlInferenceIngestProcessorCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L248-L252 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L248-L252 type MlInferenceIngestProcessorCount struct { Max int64 `json:"max"` Min int64 `json:"min"` @@ -109,5 +109,3 @@ func NewMlInferenceIngestProcessorCount() *MlInferenceIngestProcessorCount { return r } - -// false diff --git a/typedapi/types/mlinferencetrainedmodels.go b/typedapi/types/mlinferencetrainedmodels.go index 622e494e00..9c3334766b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // MlInferenceTrainedModels type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L225-L235 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L225-L235 type MlInferenceTrainedModels struct { All_ MlCounter `json:"_all"` Count *MlInferenceTrainedModelsCount `json:"count,omitempty"` @@ -37,5 +37,3 @@ func NewMlInferenceTrainedModels() *MlInferenceTrainedModels { return r } - -// false diff --git a/typedapi/types/mlinferencetrainedmodelscount.go b/typedapi/types/mlinferencetrainedmodelscount.go index ebd8b41217..dcbcd3658e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlInferenceTrainedModelsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L254-L263 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L254-L263 type MlInferenceTrainedModelsCount struct { Classification *int64 `json:"classification,omitempty"` Ner *int64 `json:"ner,omitempty"` @@ -189,5 +189,3 @@ func NewMlInferenceTrainedModelsCount() *MlInferenceTrainedModelsCount { return r } - -// false diff --git a/typedapi/types/mljobforecasts.go b/typedapi/types/mljobforecasts.go index accee1df23..ac4a427fa7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MlJobForecasts type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L182-L185 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L182-L185 type MlJobForecasts struct { ForecastedJobs int64 `json:"forecasted_jobs"` Total int64 `json:"total"` @@ -93,5 +93,3 @@ func NewMlJobForecasts() *MlJobForecasts { return r } - -// false diff --git a/typedapi/types/modelpackageconfig.go b/typedapi/types/modelpackageconfig.go index a74fa8124c..af4915a557 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ModelPackageConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L257-L272 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L257-L272 type ModelPackageConfig struct { CreateTime *int64 `json:"create_time,omitempty"` Description *string `json:"description,omitempty"` @@ -199,5 +199,3 @@ func NewModelPackageConfig() *ModelPackageConfig { return r } - -// false diff --git a/typedapi/types/modelplotconfig.go b/typedapi/types/modelplotconfig.go index 6e3e277fee..9e01c50e4f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ModelPlotConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/ModelPlot.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -106,8 +106,6 @@ func NewModelPlotConfig() *ModelPlotConfig { return r } -// true - type ModelPlotConfigVariant interface { ModelPlotConfigCaster() *ModelPlotConfig } diff --git a/typedapi/types/modelsizestats.go b/typedapi/types/modelsizestats.go index 6ae7e69ccf..02e22f7d0f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L59-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Model.ts#L59-L82 type ModelSizeStats struct { AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"` BucketAllocationFailuresCount int64 `json:"bucket_allocation_failures_count"` @@ -326,5 +326,3 @@ func NewModelSizeStats() *ModelSizeStats { return r } - -// false diff --git a/typedapi/types/modelsnapshot.go b/typedapi/types/modelsnapshot.go index 3730940db8..04c7f9ec92 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ModelSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Model.ts#L25-L46 type ModelSnapshot struct { // Description An optional description of the job. Description *string `json:"description,omitempty"` @@ -192,5 +192,3 @@ func NewModelSnapshot() *ModelSnapshot { return r } - -// false diff --git a/typedapi/types/modelsnapshotupgrade.go b/typedapi/types/modelsnapshotupgrade.go index 1bf77a70bf..f83a8f60e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ModelSnapshotUpgrade type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Model.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Model.ts#L48-L57 type ModelSnapshotUpgrade struct { AssignmentExplanation string `json:"assignment_explanation"` JobId string `json:"job_id"` @@ -100,5 +100,3 @@ func NewModelSnapshotUpgrade() *ModelSnapshotUpgrade { return r } - -// false diff --git a/typedapi/types/monitoring.go b/typedapi/types/monitoring.go index 4514e11848..699376f2de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Monitoring type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L387-L390 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L387-L390 type Monitoring struct { Available bool `json:"available"` CollectionEnabled bool `json:"collection_enabled"` @@ -117,5 +117,3 @@ func NewMonitoring() *Monitoring { return r } - -// false diff --git a/typedapi/types/morelikethisquery.go b/typedapi/types/morelikethisquery.go index 24ead6d7d3..e58f7b9d97 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MoreLikeThisQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L87-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -84,7 +84,7 @@ type MoreLikeThisQuery struct { Routing *string `json:"routing,omitempty"` // StopWords An array of stop words. // Any word in this set is ignored. - StopWords []string `json:"stop_words,omitempty"` + StopWords StopWords `json:"stop_words,omitempty"` // Unlike Used in combination with `like` to exclude documents that match a set of // terms. Unlike []Like `json:"unlike,omitempty"` @@ -319,19 +319,8 @@ func (s *MoreLikeThisQuery) UnmarshalJSON(data []byte) error { } case "stop_words": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "StopWords", err) - } - - s.StopWords = append(s.StopWords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.StopWords); err != nil { - return fmt.Errorf("%s | %w", "StopWords", err) - } + if err := dec.Decode(&s.StopWords); err != nil { + return fmt.Errorf("%s | %w", "StopWords", err) } case "unlike": @@ -372,8 +361,6 @@ func NewMoreLikeThisQuery() *MoreLikeThisQuery { return r } -// true - type MoreLikeThisQueryVariant interface { MoreLikeThisQueryCaster() *MoreLikeThisQuery } diff --git a/typedapi/types/mountedsnapshot.go b/typedapi/types/mountedsnapshot.go index 7ec72e6dc4..f5eb810d64 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MountedSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/mount/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/searchable_snapshots/mount/types.ts#L23-L27 type MountedSnapshot struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` @@ -89,5 +89,3 @@ func NewMountedSnapshot() *MountedSnapshot { return r } - -// false diff --git a/typedapi/types/movingaverageaggregation.go b/typedapi/types/movingaverageaggregation.go index 7c3dffde0c..9d32703a22 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ package types // HoltMovingAverageAggregation // HoltWintersMovingAverageAggregation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L254-L260 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c1760a9a16..3730e54be6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MovingFunctionAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L314-L332 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -147,8 +147,6 @@ func NewMovingFunctionAggregation() *MovingFunctionAggregation { return r } -// true - type MovingFunctionAggregationVariant interface { MovingFunctionAggregationCaster() *MovingFunctionAggregation } diff --git a/typedapi/types/movingpercentilesaggregation.go b/typedapi/types/movingpercentilesaggregation.go index a7ee72a4ae..be62e1b74c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MovingPercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L334-L349 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -148,8 +148,6 @@ func NewMovingPercentilesAggregation() *MovingPercentilesAggregation { return r } -// true - type MovingPercentilesAggregationVariant interface { MovingPercentilesAggregationCaster() *MovingPercentilesAggregation } diff --git a/typedapi/types/msearchrequestitem.go b/typedapi/types/msearchrequestitem.go index 376f72b6f3..5a05430eca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // MultisearchHeader // SearchRequestBody // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/types.ts#L26-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/types.ts#L26-L29 type MsearchRequestItem any type MsearchRequestItemVariant interface { diff --git a/typedapi/types/msearchresponseitem.go b/typedapi/types/msearchresponseitem.go index 3ad27ee3c5..61e4879b2e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // MultiSearchItem // ErrorResponseBase // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/types.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/types.ts#L53-L56 type MsearchResponseItem any diff --git a/typedapi/types/mtermvectorsoperation.go b/typedapi/types/mtermvectorsoperation.go index 46f6a43fb1..49bbc7652e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // MTermVectorsOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mtermvectors/types.ts#L35-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -216,8 +216,6 @@ func NewMTermVectorsOperation() *MTermVectorsOperation { return r } -// true - type MTermVectorsOperationVariant interface { MTermVectorsOperationCaster() *MTermVectorsOperation } diff --git a/typedapi/types/multigeterror.go b/typedapi/types/multigeterror.go index 3be7856672..254672fcbf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MultiGetError type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mget/types.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/mget/types.ts#L62-L66 type MultiGetError struct { Error ErrorCause `json:"error"` Id_ string `json:"_id"` @@ -78,5 +78,3 @@ func NewMultiGetError() *MultiGetError { return r } - -// false diff --git a/typedapi/types/multimatchquery.go b/typedapi/types/multimatchquery.go index 07bd4046d6..f61ac55f3f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // MultiMatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L471-L557 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L522-L608 type MultiMatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` @@ -335,8 +335,6 @@ func NewMultiMatchQuery() *MultiMatchQuery { return r } -// true - type MultiMatchQueryVariant interface { MultiMatchQueryCaster() *MultiMatchQuery } diff --git a/typedapi/types/multiplexertokenfilter.go b/typedapi/types/multiplexertokenfilter.go index 3e45b55a21..6cd37a872d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,9 +30,12 @@ import ( // MultiplexerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L261-L265 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L356-L362 type MultiplexerTokenFilter struct { - Filters []string `json:"filters"` + // Filters A list of token filters to apply to incoming tokens. + Filters []string `json:"filters"` + // PreserveOriginal If `true` (the default) then emit the original token in addition to the + // filtered tokens. PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -100,8 +103,6 @@ func NewMultiplexerTokenFilter() *MultiplexerTokenFilter { return r } -// true - type MultiplexerTokenFilterVariant interface { MultiplexerTokenFilterCaster() *MultiplexerTokenFilter } @@ -109,3 +110,8 @@ type MultiplexerTokenFilterVariant interface { func (s *MultiplexerTokenFilter) MultiplexerTokenFilterCaster() *MultiplexerTokenFilter { return s } + +func (s *MultiplexerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/multisearchheader.go b/typedapi/types/multisearchheader.go index d51d00d688..17661d3a72 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // MultisearchHeader type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/types.ts#L31-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/types.ts#L31-L46 type MultisearchHeader struct { AllowNoIndices *bool `json:"allow_no_indices,omitempty"` AllowPartialSearchResults *bool `json:"allow_partial_search_results,omitempty"` @@ -214,8 +214,6 @@ func NewMultisearchHeader() *MultisearchHeader { return r } -// true - type MultisearchHeaderVariant interface { MultisearchHeaderCaster() *MultisearchHeader } @@ -223,3 +221,13 @@ type MultisearchHeaderVariant interface { func (s *MultisearchHeader) MultisearchHeaderCaster() *MultisearchHeader { return s } + +func (s *MultisearchHeader) MsearchRequestItemCaster() *MsearchRequestItem { + o := MsearchRequestItem(s) + return &o +} + +func (s *MultisearchHeader) RequestItemCaster() *RequestItem { + o := RequestItem(s) + return &o +} diff --git a/typedapi/types/multisearchitem.go b/typedapi/types/multisearchitem.go index e8c8c44667..afb3f547ff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // MultiSearchItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch/types.ts#L58-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch/types.ts#L58-L61 type MultiSearchItem struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` @@ -828,5 +828,3 @@ func NewMultiSearchItem() *MultiSearchItem { return r } - -// false diff --git a/typedapi/types/multitermlookup.go b/typedapi/types/multitermlookup.go index d287b24c9c..b1572cfbc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // MultiTermLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L643-L653 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L643-L653 type MultiTermLookup struct { // Field A fields from which to retrieve terms. Field string `json:"field"` @@ -76,8 +76,6 @@ func NewMultiTermLookup() *MultiTermLookup { return r } -// true - type MultiTermLookupVariant interface { MultiTermLookupCaster() *MultiTermLookup } diff --git a/typedapi/types/multitermsaggregate.go b/typedapi/types/multitermsaggregate.go index 21ea3c3a1b..d39e74694b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MultiTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L501-L506 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L501-L506 type MultiTermsAggregate struct { Buckets BucketsMultiTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` @@ -121,5 +121,3 @@ func NewMultiTermsAggregate() *MultiTermsAggregate { return r } - -// false diff --git a/typedapi/types/multitermsaggregation.go b/typedapi/types/multitermsaggregation.go index ad5bb430ae..f3a5970264 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // MultiTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L601-L641 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L601-L641 type MultiTermsAggregation struct { // CollectMode Specifies the strategy for data collection. CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"` @@ -192,8 +192,6 @@ func NewMultiTermsAggregation() *MultiTermsAggregation { return r } -// true - type MultiTermsAggregationVariant interface { MultiTermsAggregationCaster() *MultiTermsAggregation } diff --git a/typedapi/types/multitermsbucket.go b/typedapi/types/multitermsbucket.go index da1507780b..41277ebf64 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // MultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L508-L512 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L508-L512 type MultiTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -665,5 +665,3 @@ func NewMultiTermsBucket() *MultiTermsBucket { return r } - -// false diff --git a/typedapi/types/murmur3hashproperty.go b/typedapi/types/murmur3hashproperty.go index 102ec79180..2f1d8570cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // Murmur3HashProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L90-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L90-L92 type Murmur3HashProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -241,6 +241,12 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -596,6 +602,12 @@ func (s *Murmur3HashProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -846,8 +858,6 @@ func NewMurmur3HashProperty() *Murmur3HashProperty { return r } -// true - type Murmur3HashPropertyVariant interface { Murmur3HashPropertyCaster() *Murmur3HashProperty } @@ -855,3 +865,8 @@ type Murmur3HashPropertyVariant interface { func (s *Murmur3HashProperty) Murmur3HashPropertyCaster() *Murmur3HashProperty { return s } + +func (s *Murmur3HashProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/mutualinformationheuristic.go b/typedapi/types/mutualinformationheuristic.go index 935d73b9e6..88de45e357 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // MutualInformationHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L800-L809 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -96,8 +96,6 @@ func NewMutualInformationHeuristic() *MutualInformationHeuristic { return r } -// true - type MutualInformationHeuristicVariant interface { MutualInformationHeuristicCaster() *MutualInformationHeuristic } diff --git a/typedapi/types/names.go b/typedapi/types/names.go index 999451e08e..f85c173478 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Names type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L75-L75 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L75-L75 type Names []string type NamesVariant interface { diff --git a/typedapi/types/nativecode.go b/typedapi/types/nativecode.go index d7af1f8edf..f25351c1b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NativeCode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/info/types.ts#L29-L32 type NativeCode struct { BuildHash string `json:"build_hash"` Version string `json:"version"` @@ -80,5 +80,3 @@ func NewNativeCode() *NativeCode { return r } - -// false diff --git a/typedapi/types/nativecodeinformation.go b/typedapi/types/nativecodeinformation.go index b20dac56ba..d84530e2f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NativeCodeInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/info/types.ts#L29-L32 type NativeCodeInformation struct { BuildHash string `json:"build_hash"` Version string `json:"version"` @@ -80,5 +80,3 @@ func NewNativeCodeInformation() *NativeCodeInformation { return r } - -// false diff --git a/typedapi/types/nerinferenceoptions.go b/typedapi/types/nerinferenceoptions.go index bd181c5770..bc9b97a146 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NerInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L273-L282 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -97,8 +97,6 @@ func NewNerInferenceOptions() *NerInferenceOptions { return r } -// true - type NerInferenceOptionsVariant interface { NerInferenceOptionsCaster() *NerInferenceOptions } diff --git a/typedapi/types/nerinferenceupdateoptions.go b/typedapi/types/nerinferenceupdateoptions.go index e38090d8d2..e391184f11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NerInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L423-L428 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -84,8 +84,6 @@ func NewNerInferenceUpdateOptions() *NerInferenceUpdateOptions { return r } -// true - type NerInferenceUpdateOptionsVariant interface { NerInferenceUpdateOptionsCaster() *NerInferenceUpdateOptions } diff --git a/typedapi/types/nestedaggregate.go b/typedapi/types/nestedaggregate.go index 597ab28d44..94716ec2f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // NestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L534-L538 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L534-L538 type NestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewNestedAggregate() *NestedAggregate { return r } - -// false diff --git a/typedapi/types/nestedaggregation.go b/typedapi/types/nestedaggregation.go index bac1a9dad7..ffec24c317 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L655-L660 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L655-L660 type NestedAggregation struct { // Path The path to the field of type `nested`. Path *string `json:"path,omitempty"` @@ -68,8 +68,6 @@ func NewNestedAggregation() *NestedAggregation { return r } -// true - type NestedAggregationVariant interface { NestedAggregationCaster() *NestedAggregation } diff --git a/typedapi/types/nestedidentity.go b/typedapi/types/nestedidentity.go index 1b524fbb7f..38f663e6f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NestedIdentity type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L89-L93 type NestedIdentity struct { Field string `json:"field"` Nested_ *NestedIdentity `json:"_nested,omitempty"` @@ -90,5 +90,3 @@ func NewNestedIdentity() *NestedIdentity { return r } - -// false diff --git a/typedapi/types/nestedproperty.go b/typedapi/types/nestedproperty.go index e4f7088a33..1af1b013ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // NestedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/complex.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/complex.ts#L40-L45 type NestedProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -243,6 +243,12 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -626,6 +632,12 @@ func (s *NestedProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -878,8 +890,6 @@ func NewNestedProperty() *NestedProperty { return r } -// true - type NestedPropertyVariant interface { NestedPropertyCaster() *NestedProperty } @@ -887,3 +897,8 @@ type NestedPropertyVariant interface { func (s *NestedProperty) NestedPropertyCaster() *NestedProperty { return s } + +func (s *NestedProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/nestedquery.go b/typedapi/types/nestedquery.go index e6341751f3..c89e13fd5d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NestedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/joining.ts#L112-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -145,8 +145,6 @@ func NewNestedQuery() *NestedQuery { return r } -// true - type NestedQueryVariant interface { NestedQueryCaster() *NestedQuery } diff --git a/typedapi/types/nestedsortvalue.go b/typedapi/types/nestedsortvalue.go index 9604fa17ee..d9d26e1a68 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NestedSortValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L29-L34 type NestedSortValue struct { Filter *Query `json:"filter,omitempty"` MaxChildren *int `json:"max_children,omitempty"` @@ -97,8 +97,6 @@ func NewNestedSortValue() *NestedSortValue { return r } -// true - type NestedSortValueVariant interface { NestedSortValueCaster() *NestedSortValue } diff --git a/typedapi/types/networkdirectionprocessor.go b/typedapi/types/networkdirectionprocessor.go index 53006c0f96..4865af9fb3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NetworkDirectionProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1249-L1283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1249-L1283 type NetworkDirectionProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -178,8 +178,6 @@ func NewNetworkDirectionProcessor() *NetworkDirectionProcessor { return r } -// true - type NetworkDirectionProcessorVariant interface { NetworkDirectionProcessorCaster() *NetworkDirectionProcessor } diff --git a/typedapi/types/nevercondition.go b/typedapi/types/nevercondition.go index fdb3d223a5..d7501f8dd6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NeverCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L73-L73 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L73-L73 type NeverCondition struct { } @@ -33,8 +33,6 @@ func NewNeverCondition() *NeverCondition { return r } -// true - type NeverConditionVariant interface { NeverConditionCaster() *NeverCondition } diff --git a/typedapi/types/ngramtokenfilter.go b/typedapi/types/ngramtokenfilter.go index 3b4024e3be..bda025c742 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,13 @@ import ( // NGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L267-L272 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L364-L372 type NGramTokenFilter struct { - MaxGram *int `json:"max_gram,omitempty"` - MinGram *int `json:"min_gram,omitempty"` + // MaxGram Maximum length of characters in a gram. Defaults to `2`. + MaxGram *int `json:"max_gram,omitempty"` + // MinGram Minimum length of characters in a gram. Defaults to `1`. + MinGram *int `json:"min_gram,omitempty"` + // PreserveOriginal Emits original token when set to `true`. Defaults to `false`. PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -130,8 +133,6 @@ func NewNGramTokenFilter() *NGramTokenFilter { return r } -// true - type NGramTokenFilterVariant interface { NGramTokenFilterCaster() *NGramTokenFilter } @@ -139,3 +140,8 @@ type NGramTokenFilterVariant interface { func (s *NGramTokenFilter) NGramTokenFilterCaster() *NGramTokenFilter { return s } + +func (s *NGramTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/ngramtokenizer.go b/typedapi/types/ngramtokenizer.go index 4da0615a00..4a762e031b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L84-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L85-L95 type NGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` @@ -146,8 +146,6 @@ func NewNGramTokenizer() *NGramTokenizer { return r } -// true - type NGramTokenizerVariant interface { NGramTokenizerCaster() *NGramTokenizer } @@ -155,3 +153,8 @@ type NGramTokenizerVariant interface { func (s *NGramTokenizer) NGramTokenizerCaster() *NGramTokenizer { return s } + +func (s *NGramTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/nlpberttokenizationconfig.go b/typedapi/types/nlpberttokenizationconfig.go index e0f89d6ed1..0af91c39ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NlpBertTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L188-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -141,8 +141,6 @@ func NewNlpBertTokenizationConfig() *NlpBertTokenizationConfig { return r } -// true - type NlpBertTokenizationConfigVariant interface { NlpBertTokenizationConfigCaster() *NlpBertTokenizationConfig } diff --git a/typedapi/types/nlprobertatokenizationconfig.go b/typedapi/types/nlprobertatokenizationconfig.go index bb6c7e640f..b102ab57ed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NlpRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L191-L198 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -157,8 +157,6 @@ func NewNlpRobertaTokenizationConfig() *NlpRobertaTokenizationConfig { return r } -// true - type NlpRobertaTokenizationConfigVariant interface { NlpRobertaTokenizationConfigCaster() *NlpRobertaTokenizationConfig } diff --git a/typedapi/types/nlptokenizationupdateoptions.go b/typedapi/types/nlptokenizationupdateoptions.go index f02ce1c4df..c2e042bb5f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NlpTokenizationUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L375-L380 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L375-L380 type NlpTokenizationUpdateOptions struct { // Span Span options to apply Span *int `json:"span,omitempty"` @@ -89,8 +89,6 @@ func NewNlpTokenizationUpdateOptions() *NlpTokenizationUpdateOptions { return r } -// true - type NlpTokenizationUpdateOptionsVariant interface { NlpTokenizationUpdateOptionsCaster() *NlpTokenizationUpdateOptions } diff --git a/typedapi/types/node.go b/typedapi/types/node.go index f514caa7bd..7358806ca6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Node type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 type Node struct { SharedCache Shared `json:"shared_cache"` } @@ -33,5 +33,3 @@ func NewNode() *Node { return r } - -// false diff --git a/typedapi/types/nodeallocationexplanation.go b/typedapi/types/nodeallocationexplanation.go index b3a90d7e1e..fd7029f377 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // NodeAllocationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L103-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L103-L117 type NodeAllocationExplanation struct { Deciders []AllocationDecision `json:"deciders"` NodeAttributes map[string]string `json:"node_attributes"` @@ -134,5 +134,3 @@ func NewNodeAllocationExplanation() *NodeAllocationExplanation { return r } - -// false diff --git a/typedapi/types/nodeattributes.go b/typedapi/types/nodeattributes.go index 40583e9bd7..1fff0a549c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Node.ts#L41-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Node.ts#L41-L52 type NodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` @@ -100,5 +100,3 @@ func NewNodeAttributes() *NodeAttributes { return r } - -// false diff --git a/typedapi/types/nodeattributesrecord.go b/typedapi/types/nodeattributesrecord.go index 4634d0b23c..f1387a0a20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeAttributesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/nodeattrs/types.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/nodeattrs/types.ts#L20-L55 type NodeAttributesRecord struct { // Attr The attribute name. Attr *string `json:"attr,omitempty"` @@ -173,5 +173,3 @@ func NewNodeAttributesRecord() *NodeAttributesRecord { return r } - -// false diff --git a/typedapi/types/nodebufferpool.go b/typedapi/types/nodebufferpool.go index 853bbb868d..2fcd76d8b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeBufferPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L859-L880 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L861-L882 type NodeBufferPool struct { // Count Number of buffer pools. Count *int64 `json:"count,omitempty"` @@ -140,5 +140,3 @@ func NewNodeBufferPool() *NodeBufferPool { return r } - -// false diff --git a/typedapi/types/nodediskusage.go b/typedapi/types/nodediskusage.go index 768871fcd3..e3e5f9ef9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeDiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L57-L61 type NodeDiskUsage struct { LeastAvailable DiskUsage `json:"least_available"` MostAvailable DiskUsage `json:"most_available"` @@ -78,5 +78,3 @@ func NewNodeDiskUsage() *NodeDiskUsage { return r } - -// false diff --git a/typedapi/types/nodeids.go b/typedapi/types/nodeids.go index 3da729fde1..6823970aeb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L58-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L58-L58 type NodeIds []string diff --git a/typedapi/types/nodeinfo.go b/typedapi/types/nodeinfo.go index 3883066159..cbdad40dc4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,31 +33,33 @@ import ( // NodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L31-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L32-L72 type NodeInfo struct { Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"` Attributes map[string]string `json:"attributes"` BuildFlavor string `json:"build_flavor"` // BuildHash Short hash of the last git commit in this release. - BuildHash string `json:"build_hash"` - BuildType string `json:"build_type"` + BuildHash string `json:"build_hash"` + BuildType string `json:"build_type"` + ComponentVersions map[string]int `json:"component_versions"` // Host The node’s host name. - Host string `json:"host"` - Http *NodeInfoHttp `json:"http,omitempty"` - Ingest *NodeInfoIngest `json:"ingest,omitempty"` + Host string `json:"host"` + Http *NodeInfoHttp `json:"http,omitempty"` + IndexVersion int64 `json:"index_version"` + Ingest *NodeInfoIngest `json:"ingest,omitempty"` // Ip The node’s IP address. Ip string `json:"ip"` Jvm *NodeJvmInfo `json:"jvm,omitempty"` Modules []PluginStats `json:"modules,omitempty"` // Name The node's name - Name string `json:"name"` - Network *NodeInfoNetwork `json:"network,omitempty"` - Os *NodeOperatingSystemInfo `json:"os,omitempty"` - Plugins []PluginStats `json:"plugins,omitempty"` - Process *NodeProcessInfo `json:"process,omitempty"` - Roles []noderole.NodeRole `json:"roles"` - Settings *NodeInfoSettings `json:"settings,omitempty"` - ThreadPool map[string]NodeThreadPoolInfo `json:"thread_pool,omitempty"` + Name string `json:"name"` + Os *NodeOperatingSystemInfo `json:"os,omitempty"` + Plugins []PluginStats `json:"plugins,omitempty"` + Process *NodeProcessInfo `json:"process,omitempty"` + RemoteClusterServer *RemoveClusterServer `json:"remote_cluster_server,omitempty"` + Roles []noderole.NodeRole `json:"roles"` + Settings *NodeInfoSettings `json:"settings,omitempty"` + ThreadPool map[string]NodeThreadPoolInfo `json:"thread_pool,omitempty"` // TotalIndexingBuffer Total heap allowed to be used to hold recently indexed documents before they // must be written to disk. This size is a shared pool across all shards on this // node, and is controlled by Indexing Buffer settings. @@ -67,6 +69,7 @@ type NodeInfo struct { Transport *NodeInfoTransport `json:"transport,omitempty"` // TransportAddress Host and port where transport HTTP connections are accepted. TransportAddress string `json:"transport_address"` + TransportVersion int64 `json:"transport_version"` // Version Elasticsearch version running on this node. Version string `json:"version"` } @@ -138,6 +141,14 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { } s.BuildType = o + case "component_versions": + if s.ComponentVersions == nil { + s.ComponentVersions = make(map[string]int, 0) + } + if err := dec.Decode(&s.ComponentVersions); err != nil { + return fmt.Errorf("%s | %w", "ComponentVersions", err) + } + case "host": if err := dec.Decode(&s.Host); err != nil { return fmt.Errorf("%s | %w", "Host", err) @@ -148,6 +159,11 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Http", err) } + case "index_version": + if err := dec.Decode(&s.IndexVersion); err != nil { + return fmt.Errorf("%s | %w", "IndexVersion", err) + } + case "ingest": if err := dec.Decode(&s.Ingest); err != nil { return fmt.Errorf("%s | %w", "Ingest", err) @@ -173,11 +189,6 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Name", err) } - case "network": - if err := dec.Decode(&s.Network); err != nil { - return fmt.Errorf("%s | %w", "Network", err) - } - case "os": if err := dec.Decode(&s.Os); err != nil { return fmt.Errorf("%s | %w", "Os", err) @@ -193,6 +204,11 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Process", err) } + case "remote_cluster_server": + if err := dec.Decode(&s.RemoteClusterServer); err != nil { + return fmt.Errorf("%s | %w", "RemoteClusterServer", err) + } + case "roles": if err := dec.Decode(&s.Roles); err != nil { return fmt.Errorf("%s | %w", "Roles", err) @@ -241,6 +257,11 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "TransportAddress", err) } + case "transport_version": + if err := dec.Decode(&s.TransportVersion); err != nil { + return fmt.Errorf("%s | %w", "TransportVersion", err) + } + case "version": if err := dec.Decode(&s.Version); err != nil { return fmt.Errorf("%s | %w", "Version", err) @@ -254,12 +275,11 @@ func (s *NodeInfo) UnmarshalJSON(data []byte) error { // NewNodeInfo returns a NodeInfo. func NewNodeInfo() *NodeInfo { r := &NodeInfo{ - Aggregations: make(map[string]NodeInfoAggregation), - Attributes: make(map[string]string), - ThreadPool: make(map[string]NodeThreadPoolInfo), + Aggregations: make(map[string]NodeInfoAggregation), + Attributes: make(map[string]string), + ComponentVersions: make(map[string]int), + ThreadPool: make(map[string]NodeThreadPoolInfo), } return r } - -// false diff --git a/typedapi/types/nodeinfoaction.go b/typedapi/types/nodeinfoaction.go index 87a1ea67ff..078279c91b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L184-L186 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L194-L196 type NodeInfoAction struct { DestructiveRequiresName string `json:"destructive_requires_name"` } @@ -74,5 +74,3 @@ func NewNodeInfoAction() *NodeInfoAction { return r } - -// false diff --git a/typedapi/types/nodeinfoaggregation.go b/typedapi/types/nodeinfoaggregation.go index bca9b47c84..60fc979bb8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L235-L237 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L250-L252 type NodeInfoAggregation struct { Types []string `json:"types"` } @@ -33,5 +33,3 @@ func NewNodeInfoAggregation() *NodeInfoAggregation { return r } - -// false diff --git a/typedapi/types/nodeinfobootstrap.go b/typedapi/types/nodeinfobootstrap.go index 7fc393b782..21cab25301 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoBootstrap type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L214-L216 type NodeInfoBootstrap struct { MemoryLock string `json:"memory_lock"` } @@ -74,5 +74,3 @@ func NewNodeInfoBootstrap() *NodeInfoBootstrap { return r } - -// false diff --git a/typedapi/types/nodeinfoclient.go b/typedapi/types/nodeinfoclient.go index 8d4cd1883d..edefc6f558 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoClient type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L188-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L198-L200 type NodeInfoClient struct { Type string `json:"type"` } @@ -74,5 +74,3 @@ func NewNodeInfoClient() *NodeInfoClient { return r } - -// false diff --git a/typedapi/types/nodeinfodiscover.go b/typedapi/types/nodeinfodiscover.go index 7a8f740830..c9dfe8946d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoDiscover type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L173-L182 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L183-L192 type NodeInfoDiscover struct { NodeInfoDiscover map[string]json.RawMessage `json:"-"` SeedHosts []string `json:"seed_hosts,omitempty"` @@ -55,8 +55,19 @@ func (s *NodeInfoDiscover) UnmarshalJSON(data []byte) error { switch t { case "seed_hosts": - if err := dec.Decode(&s.SeedHosts); err != nil { - return fmt.Errorf("%s | %w", "SeedHosts", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "SeedHosts", err) + } + + s.SeedHosts = append(s.SeedHosts, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.SeedHosts); err != nil { + return fmt.Errorf("%s | %w", "SeedHosts", err) + } } case "seed_providers": @@ -131,5 +142,3 @@ func NewNodeInfoDiscover() *NodeInfoDiscover { return r } - -// false diff --git a/typedapi/types/nodeinfohttp.go b/typedapi/types/nodeinfohttp.go index ea1eadc049..91dccc9791 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L311-L316 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L326-L331 type NodeInfoHttp struct { BoundAddress []string `json:"bound_address"` MaxContentLength ByteSize `json:"max_content_length,omitempty"` @@ -102,5 +102,3 @@ func NewNodeInfoHttp() *NodeInfoHttp { return r } - -// false diff --git a/typedapi/types/nodeinfoingest.go b/typedapi/types/nodeinfoingest.go index 0477843717..16364d1fe0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L227-L229 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L242-L244 type NodeInfoIngest struct { Processors []NodeInfoIngestProcessor `json:"processors"` } @@ -33,5 +33,3 @@ func NewNodeInfoIngest() *NodeInfoIngest { return r } - -// false diff --git a/typedapi/types/nodeinfoingestdownloader.go b/typedapi/types/nodeinfoingestdownloader.go index fef3cfb9e5..57e5990f7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestDownloader type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L128-L130 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L138-L140 type NodeInfoIngestDownloader struct { Enabled string `json:"enabled"` } @@ -74,5 +74,3 @@ func NewNodeInfoIngestDownloader() *NodeInfoIngestDownloader { return r } - -// false diff --git a/typedapi/types/nodeinfoingestinfo.go b/typedapi/types/nodeinfoingestinfo.go index 8ebc75e4c6..34ebe054b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoIngestInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L124-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L134-L136 type NodeInfoIngestInfo struct { Downloader NodeInfoIngestDownloader `json:"downloader"` } @@ -33,5 +33,3 @@ func NewNodeInfoIngestInfo() *NodeInfoIngestInfo { return r } - -// false diff --git a/typedapi/types/nodeinfoingestprocessor.go b/typedapi/types/nodeinfoingestprocessor.go index 06f12c66c1..4a2f942636 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L231-L233 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L246-L248 type NodeInfoIngestProcessor struct { Type string `json:"type"` } @@ -74,5 +74,3 @@ func NewNodeInfoIngestProcessor() *NodeInfoIngestProcessor { return r } - -// false diff --git a/typedapi/types/nodeinfojvmmemory.go b/typedapi/types/nodeinfojvmmemory.go index b192e6d711..6443356940 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L318-L329 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L333-L344 type NodeInfoJvmMemory struct { DirectMax ByteSize `json:"direct_max,omitempty"` DirectMaxInBytes int64 `json:"direct_max_in_bytes"` @@ -171,5 +171,3 @@ func NewNodeInfoJvmMemory() *NodeInfoJvmMemory { return r } - -// false diff --git a/typedapi/types/nodeinfomemory.go b/typedapi/types/nodeinfomemory.go index 268277c351..2f126194f5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L346-L349 type NodeInfoMemory struct { Total string `json:"total"` TotalInBytes int64 `json:"total_in_bytes"` @@ -90,5 +90,3 @@ func NewNodeInfoMemory() *NodeInfoMemory { return r } - -// false diff --git a/typedapi/types/nodeinfooscpu.go b/typedapi/types/nodeinfooscpu.go index 8343bec582..b7a42af778 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoOSCPU type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L347-L356 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L351-L360 type NodeInfoOSCPU struct { CacheSize string `json:"cache_size"` CacheSizeInBytes int `json:"cache_size_in_bytes"` @@ -185,5 +185,3 @@ func NewNodeInfoOSCPU() *NodeInfoOSCPU { return r } - -// false diff --git a/typedapi/types/nodeinfopath.go b/typedapi/types/nodeinfopath.go index aa56aaf63e..24a71fc961 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L168-L173 type NodeInfoPath struct { Data []string `json:"data,omitempty"` Home *string `json:"home,omitempty"` @@ -110,5 +110,3 @@ func NewNodeInfoPath() *NodeInfoPath { return r } - -// false diff --git a/typedapi/types/nodeinforepositories.go b/typedapi/types/nodeinforepositories.go index 4054edf7bc..50191763fc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoRepositories type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L165-L167 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L175-L177 type NodeInfoRepositories struct { Url NodeInfoRepositoriesUrl `json:"url"` } @@ -33,5 +33,3 @@ func NewNodeInfoRepositories() *NodeInfoRepositories { return r } - -// false diff --git a/typedapi/types/nodeinforepositoriesurl.go b/typedapi/types/nodeinforepositoriesurl.go index aea2bb68ba..ea3a484e26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoRepositoriesUrl type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L169-L171 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L179-L181 type NodeInfoRepositoriesUrl struct { AllowedUrls string `json:"allowed_urls"` } @@ -74,5 +74,3 @@ func NewNodeInfoRepositoriesUrl() *NodeInfoRepositoriesUrl { return r } - -// false diff --git a/typedapi/types/nodeinfoscript.go b/typedapi/types/nodeinfoscript.go index 67798b266a..4ac08b8376 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L289-L292 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L304-L307 type NodeInfoScript struct { AllowedTypes string `json:"allowed_types"` DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"` @@ -87,5 +87,3 @@ func NewNodeInfoScript() *NodeInfoScript { return r } - -// false diff --git a/typedapi/types/nodeinfosearch.go b/typedapi/types/nodeinfosearch.go index 280459950c..e744f537fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L294-L296 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L309-L311 type NodeInfoSearch struct { Remote NodeInfoSearchRemote `json:"remote"` } @@ -33,5 +33,3 @@ func NewNodeInfoSearch() *NodeInfoSearch { return r } - -// false diff --git a/typedapi/types/nodeinfosearchremote.go b/typedapi/types/nodeinfosearchremote.go index 4e35a51a61..c1e2f2a59c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSearchRemote type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L298-L300 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L313-L315 type NodeInfoSearchRemote struct { Connect string `json:"connect"` } @@ -74,5 +74,3 @@ func NewNodeInfoSearchRemote() *NodeInfoSearchRemote { return r } - -// false diff --git a/typedapi/types/nodeinfosettings.go b/typedapi/types/nodeinfosettings.go index 1953f82207..abe0f48569 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L69-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L79-L95 type NodeInfoSettings struct { Action *NodeInfoAction `json:"action,omitempty"` Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"` @@ -47,5 +47,3 @@ func NewNodeInfoSettings() *NodeInfoSettings { return r } - -// false diff --git a/typedapi/types/nodeinfosettingscluster.go b/typedapi/types/nodeinfosettingscluster.go index e08782b049..4adea13ad3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L132-L142 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L142-L152 type NodeInfoSettingsCluster struct { DeprecationIndexing *DeprecationIndexing `json:"deprecation_indexing,omitempty"` Election NodeInfoSettingsClusterElection `json:"election"` @@ -65,8 +65,19 @@ func (s *NodeInfoSettingsCluster) UnmarshalJSON(data []byte) error { } case "initial_master_nodes": - if err := dec.Decode(&s.InitialMasterNodes); err != nil { - return fmt.Errorf("%s | %w", "InitialMasterNodes", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "InitialMasterNodes", err) + } + + s.InitialMasterNodes = append(s.InitialMasterNodes, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.InitialMasterNodes); err != nil { + return fmt.Errorf("%s | %w", "InitialMasterNodes", err) + } } case "name": @@ -90,5 +101,3 @@ func NewNodeInfoSettingsCluster() *NodeInfoSettingsCluster { return r } - -// false diff --git a/typedapi/types/nodeinfosettingsclusterelection.go b/typedapi/types/nodeinfosettingsclusterelection.go index 485c798a12..efc6ae0c06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsClusterElection type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L158-L160 type NodeInfoSettingsClusterElection struct { Strategy string `json:"strategy"` } @@ -66,5 +66,3 @@ func NewNodeInfoSettingsClusterElection() *NodeInfoSettingsClusterElection { return r } - -// false diff --git a/typedapi/types/nodeinfosettingshttp.go b/typedapi/types/nodeinfosettingshttp.go index 375b050b13..f548c469bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,10 @@ import ( // NodeInfoSettingsHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L192-L197 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L202-L207 type NodeInfoSettingsHttp struct { - Compression string `json:"compression,omitempty"` - Port string `json:"port,omitempty"` + Compression *string `json:"compression,omitempty"` + Port *string `json:"port,omitempty"` Type NodeInfoSettingsHttpType `json:"type"` TypeDefault *string `json:"type.default,omitempty"` } @@ -64,7 +64,7 @@ func (s *NodeInfoSettingsHttp) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Compression = o + s.Compression = &o case "port": var tmp json.RawMessage @@ -76,7 +76,7 @@ func (s *NodeInfoSettingsHttp) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Port = o + s.Port = &o case "type": if err := dec.Decode(&s.Type); err != nil { @@ -106,5 +106,3 @@ func NewNodeInfoSettingsHttp() *NodeInfoSettingsHttp { return r } - -// false diff --git a/typedapi/types/nodeinfosettingshttptype.go b/typedapi/types/nodeinfosettingshttptype.go index 61c8adb2fb..c04097ae14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttpType type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L199-L202 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L209-L212 type NodeInfoSettingsHttpType struct { Default string `json:"default"` } @@ -86,5 +86,3 @@ func NewNodeInfoSettingsHttpType() *NodeInfoSettingsHttpType { return r } - -// false diff --git a/typedapi/types/nodeinfosettingsingest.go b/typedapi/types/nodeinfosettingsingest.go index 6d0665fe2b..e53a1cc083 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoSettingsIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L87-L122 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L97-L132 type NodeInfoSettingsIngest struct { Append *NodeInfoIngestInfo `json:"append,omitempty"` Attachment *NodeInfoIngestInfo `json:"attachment,omitempty"` @@ -66,5 +66,3 @@ func NewNodeInfoSettingsIngest() *NodeInfoSettingsIngest { return r } - -// false diff --git a/typedapi/types/nodeinfosettingsnetwork.go b/typedapi/types/nodeinfosettingsnetwork.go index e8ff747af8..b2447a4516 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L223-L225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L238-L240 type NodeInfoSettingsNetwork struct { Host []string `json:"host,omitempty"` } @@ -77,5 +77,3 @@ func NewNodeInfoSettingsNetwork() *NodeInfoSettingsNetwork { return r } - -// false diff --git a/typedapi/types/nodeinfosettingsnode.go b/typedapi/types/nodeinfosettingsnode.go index 98c4d15cf5..2070230fca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L162-L166 type NodeInfoSettingsNode struct { Attr map[string]json.RawMessage `json:"attr"` MaxLocalStorageNodes *string `json:"max_local_storage_nodes,omitempty"` @@ -91,5 +91,3 @@ func NewNodeInfoSettingsNode() *NodeInfoSettingsNode { return r } - -// false diff --git a/typedapi/types/nodeinfosettingstransport.go b/typedapi/types/nodeinfosettingstransport.go index 549577a889..c5f100aa89 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,13 @@ import ( // NodeInfoSettingsTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L208-L212 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L218-L227 type NodeInfoSettingsTransport struct { - Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"` - Type NodeInfoSettingsTransportType `json:"type"` - TypeDefault *string `json:"type.default,omitempty"` + Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"` + // IgnoreDeserializationErrors Only used in unit tests + IgnoreDeserializationErrors Stringifiedboolean `json:"ignore_deserialization_errors,omitempty"` + Type NodeInfoSettingsTransportType `json:"type"` + TypeDefault *string `json:"type.default,omitempty"` } func (s *NodeInfoSettingsTransport) UnmarshalJSON(data []byte) error { @@ -58,6 +60,11 @@ func (s *NodeInfoSettingsTransport) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Features", err) } + case "ignore_deserialization_errors": + if err := dec.Decode(&s.IgnoreDeserializationErrors); err != nil { + return fmt.Errorf("%s | %w", "IgnoreDeserializationErrors", err) + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -86,5 +93,3 @@ func NewNodeInfoSettingsTransport() *NodeInfoSettingsTransport { return r } - -// false diff --git a/typedapi/types/nodeinfosettingstransportfeatures.go b/typedapi/types/nodeinfosettingstransportfeatures.go index f071394b5c..821bcd2452 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L219-L221 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L234-L236 type NodeInfoSettingsTransportFeatures struct { XPack string `json:"x-pack"` } @@ -74,5 +74,3 @@ func NewNodeInfoSettingsTransportFeatures() *NodeInfoSettingsTransportFeatures { return r } - -// false diff --git a/typedapi/types/nodeinfosettingstransporttype.go b/typedapi/types/nodeinfosettingstransporttype.go index 2b470f8f04..6487e40a58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportType type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L229-L232 type NodeInfoSettingsTransportType struct { Default string `json:"default"` } @@ -86,5 +86,3 @@ func NewNodeInfoSettingsTransportType() *NodeInfoSettingsTransportType { return r } - -// false diff --git a/typedapi/types/nodeinfotransport.go b/typedapi/types/nodeinfotransport.go index daadc138d7..677915aaf9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L358-L362 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L362-L366 type NodeInfoTransport struct { BoundAddress []string `json:"bound_address"` Profiles map[string]string `json:"profiles"` @@ -91,5 +91,3 @@ func NewNodeInfoTransport() *NodeInfoTransport { return r } - -// false diff --git a/typedapi/types/nodeinfoxpack.go b/typedapi/types/nodeinfoxpack.go index 3b9d2cc58a..ee215c6efe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // NodeInfoXpack type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L239-L244 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L254-L259 type NodeInfoXpack struct { License *NodeInfoXpackLicense `json:"license,omitempty"` Ml *NodeInfoXpackMl `json:"ml,omitempty"` @@ -42,5 +42,3 @@ func NewNodeInfoXpack() *NodeInfoXpack { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacklicense.go b/typedapi/types/nodeinfoxpacklicense.go index 548a815a15..60b6e9ddfc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoXpackLicense type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L281-L283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L296-L298 type NodeInfoXpackLicense struct { SelfGenerated NodeInfoXpackLicenseType `json:"self_generated"` } @@ -33,5 +33,3 @@ func NewNodeInfoXpackLicense() *NodeInfoXpackLicense { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacklicensetype.go b/typedapi/types/nodeinfoxpacklicensetype.go index 5511e333c4..f361ca30f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackLicenseType type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L300-L302 type NodeInfoXpackLicenseType struct { Type string `json:"type"` } @@ -74,5 +74,3 @@ func NewNodeInfoXpackLicenseType() *NodeInfoXpackLicenseType { return r } - -// false diff --git a/typedapi/types/nodeinfoxpackml.go b/typedapi/types/nodeinfoxpackml.go index 93702d4da7..41dc3c2c4b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackMl type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L253-L255 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L268-L270 type NodeInfoXpackMl struct { UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"` } @@ -76,5 +76,3 @@ func NewNodeInfoXpackMl() *NodeInfoXpackMl { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurity.go b/typedapi/types/nodeinfoxpacksecurity.go index ee3b8b22b8..3e2dd2d807 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L246-L251 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L261-L266 type NodeInfoXpackSecurity struct { Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"` Enabled string `json:"enabled"` @@ -92,5 +92,3 @@ func NewNodeInfoXpackSecurity() *NodeInfoXpackSecurity { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurityauthc.go b/typedapi/types/nodeinfoxpacksecurityauthc.go index e0d94959c5..b878ad506f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoXpackSecurityAuthc type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L261-L264 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L276-L279 type NodeInfoXpackSecurityAuthc struct { Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"` Token *NodeInfoXpackSecurityAuthcToken `json:"token,omitempty"` @@ -34,5 +34,3 @@ func NewNodeInfoXpackSecurityAuthc() *NodeInfoXpackSecurityAuthc { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealms.go b/typedapi/types/nodeinfoxpacksecurityauthcrealms.go index 1a4eaec2cb..cdbff4afd7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoXpackSecurityAuthcRealms type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L266-L270 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L281-L285 type NodeInfoXpackSecurityAuthcRealms struct { File map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"` Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"` @@ -39,5 +39,3 @@ func NewNodeInfoXpackSecurityAuthcRealms() *NodeInfoXpackSecurityAuthcRealms { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go b/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go index 1e7296ef31..f12b07c539 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcRealmsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L276-L279 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L291-L294 type NodeInfoXpackSecurityAuthcRealmsStatus struct { Enabled *string `json:"enabled,omitempty"` Order string `json:"order"` @@ -87,5 +87,3 @@ func NewNodeInfoXpackSecurityAuthcRealmsStatus() *NodeInfoXpackSecurityAuthcReal return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurityauthctoken.go b/typedapi/types/nodeinfoxpacksecurityauthctoken.go index 68a119d6e2..d17cae66cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L272-L274 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L287-L289 type NodeInfoXpackSecurityAuthcToken struct { Enabled string `json:"enabled"` } @@ -74,5 +74,3 @@ func NewNodeInfoXpackSecurityAuthcToken() *NodeInfoXpackSecurityAuthcToken { return r } - -// false diff --git a/typedapi/types/nodeinfoxpacksecurityssl.go b/typedapi/types/nodeinfoxpacksecurityssl.go index 5eaad6d86f..c69c71fc3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodeInfoXpackSecuritySsl type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L257-L259 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L272-L274 type NodeInfoXpackSecuritySsl struct { Ssl map[string]string `json:"ssl"` } @@ -35,5 +35,3 @@ func NewNodeInfoXpackSecuritySsl() *NodeInfoXpackSecuritySsl { return r } - -// false diff --git a/typedapi/types/nodejvminfo.go b/typedapi/types/nodejvminfo.go index b7236c08bc..8915c52dfe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeJvmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L364-L378 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L368-L381 type NodeJvmInfo struct { GcCollectors []string `json:"gc_collectors"` InputArguments []string `json:"input_arguments"` @@ -40,7 +40,7 @@ type NodeJvmInfo struct { Pid int `json:"pid"` StartTimeInMillis int64 `json:"start_time_in_millis"` UsingBundledJdk bool `json:"using_bundled_jdk"` - UsingCompressedOrdinaryObjectPointers string `json:"using_compressed_ordinary_object_pointers,omitempty"` + UsingCompressedOrdinaryObjectPointers *string `json:"using_compressed_ordinary_object_pointers,omitempty"` Version string `json:"version"` VmName string `json:"vm_name"` VmVendor string `json:"vm_vendor"` @@ -103,7 +103,7 @@ func (s *NodeJvmInfo) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "StartTimeInMillis", err) } - case "using_bundled_jdk", "bundled_jdk": + case "using_bundled_jdk": var tmp any dec.Decode(&tmp) switch v := tmp.(type) { @@ -127,7 +127,7 @@ func (s *NodeJvmInfo) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.UsingCompressedOrdinaryObjectPointers = o + s.UsingCompressedOrdinaryObjectPointers = &o case "version": if err := dec.Decode(&s.Version); err != nil { @@ -167,5 +167,3 @@ func NewNodeJvmInfo() *NodeJvmInfo { return r } - -// false diff --git a/typedapi/types/nodeoperatingsysteminfo.go b/typedapi/types/nodeoperatingsysteminfo.go index bc93160633..ae12dc7293 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeOperatingSystemInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L380-L397 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L383-L400 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 @@ -158,5 +158,3 @@ func NewNodeOperatingSystemInfo() *NodeOperatingSystemInfo { return r } - -// false diff --git a/typedapi/types/nodepackagingtype.go b/typedapi/types/nodepackagingtype.go index c600c598b4..aff0b9cc58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodePackagingType type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L526-L539 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L700-L713 type NodePackagingType struct { // Count Number of selected nodes using the distribution flavor and file type. Count int `json:"count"` @@ -107,5 +107,3 @@ func NewNodePackagingType() *NodePackagingType { return r } - -// false diff --git a/typedapi/types/nodeprocessinfo.go b/typedapi/types/nodeprocessinfo.go index d9ef06add6..c762439bbc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeProcessInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L399-L406 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L402-L409 type NodeProcessInfo struct { // Id Process identifier (PID) Id int64 `json:"id"` @@ -101,5 +101,3 @@ func NewNodeProcessInfo() *NodeProcessInfo { return r } - -// false diff --git a/typedapi/types/nodereloadresult.go b/typedapi/types/nodereloadresult.go index 1bb1fcaaed..5d8aad5ffe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/NodeReloadResult.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/NodeReloadResult.ts#L23-L26 type NodeReloadResult struct { Name string `json:"name"` ReloadException *ErrorCause `json:"reload_exception,omitempty"` @@ -72,5 +72,3 @@ func NewNodeReloadResult() *NodeReloadResult { return r } - -// false diff --git a/typedapi/types/nodescontext.go b/typedapi/types/nodescontext.go index 71c6e06726..8d13f9f054 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodesContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1068-L1073 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1075-L1080 type NodesContext struct { CacheEvictions *int64 `json:"cache_evictions,omitempty"` CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"` @@ -122,5 +122,3 @@ func NewNodesContext() *NodesContext { return r } - -// false diff --git a/typedapi/types/nodescredentials.go b/typedapi/types/nodescredentials.go index e8034daf09..0299a36edf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodesCredentials type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_service_credentials/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -38,5 +38,3 @@ func NewNodesCredentials() *NodesCredentials { return r } - -// false diff --git a/typedapi/types/nodescredentialsfiletoken.go b/typedapi/types/nodescredentialsfiletoken.go index 562d6f2691..d017204e08 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodesCredentialsFileToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_service_credentials/types.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_service_credentials/types.ts#L30-L32 type NodesCredentialsFileToken struct { Nodes []string `json:"nodes"` } @@ -33,5 +33,3 @@ func NewNodesCredentialsFileToken() *NodesCredentialsFileToken { return r } - -// false diff --git a/typedapi/types/nodeshard.go b/typedapi/types/nodeshard.go index eb8f259372..f21ff99fb5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NodeShard type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Node.ts#L54-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Node.ts#L54-L65 type NodeShard struct { AllocationId map[string]string `json:"allocation_id,omitempty"` Index string `json:"index"` @@ -152,5 +152,3 @@ func NewNodeShard() *NodeShard { return r } - -// false diff --git a/typedapi/types/nodeshutdownstatus.go b/typedapi/types/nodeshutdownstatus.go index b9dfc6792d..feabf7019d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // NodeShutdownStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 type NodeShutdownStatus struct { NodeId string `json:"node_id"` PersistentTasks PersistentTaskStatus `json:"persistent_tasks"` @@ -119,5 +119,3 @@ func NewNodeShutdownStatus() *NodeShutdownStatus { return r } - -// false diff --git a/typedapi/types/nodesindexingpressure.go b/typedapi/types/nodesindexingpressure.go index 9c812acb40..8181c1eb91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L116-L121 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L116-L121 type NodesIndexingPressure struct { // Memory Contains statistics for memory consumption from indexing load. Memory *NodesIndexingPressureMemory `json:"memory,omitempty"` @@ -34,5 +34,3 @@ func NewNodesIndexingPressure() *NodesIndexingPressure { return r } - -// false diff --git a/typedapi/types/nodesindexingpressurememory.go b/typedapi/types/nodesindexingpressurememory.go index 8e5c8373f2..41e257f569 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L123-L142 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L123-L142 type NodesIndexingPressureMemory struct { // Current Contains statistics for current indexing load. Current *PressureMemory `json:"current,omitempty"` @@ -101,5 +101,3 @@ func NewNodesIndexingPressureMemory() *NodesIndexingPressureMemory { return r } - -// false diff --git a/typedapi/types/nodesingest.go b/typedapi/types/nodesingest.go index 065eca12d7..18a20cb322 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // NodesIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L347-L356 type NodesIngest struct { // Pipelines Contains statistics about ingest pipelines for the node. Pipelines map[string]IngestStats `json:"pipelines,omitempty"` @@ -38,5 +38,3 @@ func NewNodesIngest() *NodesIngest { return r } - -// false diff --git a/typedapi/types/nodesrecord.go b/typedapi/types/nodesrecord.go index 0495d6d2ca..33c8759dce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/nodes/types.ts#L23-L542 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/nodes/types.ts#L23-L542 type NodesRecord struct { // Build The Elasticsearch build hash. Build *string `json:"build,omitempty"` @@ -1342,5 +1342,3 @@ func NewNodesRecord() *NodesRecord { return r } - -// false diff --git a/typedapi/types/nodestatistics.go b/typedapi/types/nodestatistics.go index 44c6e7f70b..8b51867728 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Node.ts#L28-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -122,5 +122,3 @@ func NewNodeStatistics() *NodeStatistics { return r } - -// false diff --git a/typedapi/types/nodetasks.go b/typedapi/types/nodetasks.go index ed73386da9..5ee927f3b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeTasks type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 type NodeTasks struct { Attributes map[string]string `json:"attributes,omitempty"` Host *string `json:"host,omitempty"` @@ -111,5 +111,3 @@ func NewNodeTasks() *NodeTasks { return r } - -// false diff --git a/typedapi/types/nodethreadpoolinfo.go b/typedapi/types/nodethreadpoolinfo.go index 9888e49954..ca1ccc6b5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // NodeThreadPoolInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L302-L309 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L317-L324 type NodeThreadPoolInfo struct { Core *int `json:"core,omitempty"` KeepAlive Duration `json:"keep_alive,omitempty"` @@ -148,5 +148,3 @@ func NewNodeThreadPoolInfo() *NodeThreadPoolInfo { return r } - -// false diff --git a/typedapi/types/nodeusage.go b/typedapi/types/nodeusage.go index 74217efc92..1aa2e14a38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // NodeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/usage/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/usage/types.ts#L25-L30 type NodeUsage struct { Aggregations map[string]json.RawMessage `json:"aggregations"` RestActions map[string]int `json:"rest_actions"` @@ -93,5 +93,3 @@ func NewNodeUsage() *NodeUsage { return r } - -// false diff --git a/typedapi/types/norianalyzer.go b/typedapi/types/norianalyzer.go index 47df56ef2b..f15c8ff95e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NoriAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L323-L330 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L323-L330 type NoriAnalyzer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` Stoptags []string `json:"stoptags,omitempty"` @@ -117,8 +117,6 @@ func NewNoriAnalyzer() *NoriAnalyzer { return r } -// true - type NoriAnalyzerVariant interface { NoriAnalyzerCaster() *NoriAnalyzer } @@ -126,3 +124,8 @@ type NoriAnalyzerVariant interface { func (s *NoriAnalyzer) NoriAnalyzerCaster() *NoriAnalyzer { return s } + +func (s *NoriAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/noripartofspeechtokenfilter.go b/typedapi/types/noripartofspeechtokenfilter.go index 525bcb82cd..4b31ea0c67 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,8 +30,9 @@ import ( // NoriPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L274-L277 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/nori-plugin.ts#L37-L41 type NoriPartOfSpeechTokenFilter struct { + // Stoptags An array of part-of-speech tags that should be removed. Stoptags []string `json:"stoptags,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -93,8 +94,6 @@ func NewNoriPartOfSpeechTokenFilter() *NoriPartOfSpeechTokenFilter { return r } -// true - type NoriPartOfSpeechTokenFilterVariant interface { NoriPartOfSpeechTokenFilterCaster() *NoriPartOfSpeechTokenFilter } @@ -102,3 +101,8 @@ type NoriPartOfSpeechTokenFilterVariant interface { func (s *NoriPartOfSpeechTokenFilter) NoriPartOfSpeechTokenFilterCaster() *NoriPartOfSpeechTokenFilter { return s } + +func (s *NoriPartOfSpeechTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/noritokenizer.go b/typedapi/types/noritokenizer.go index 63b1d3d468..ef1160d66a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NoriTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/nori-plugin.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/nori-plugin.ts#L29-L35 type NoriTokenizer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` @@ -133,8 +133,6 @@ func NewNoriTokenizer() *NoriTokenizer { return r } -// true - type NoriTokenizerVariant interface { NoriTokenizerCaster() *NoriTokenizer } @@ -142,3 +140,8 @@ type NoriTokenizerVariant interface { func (s *NoriTokenizer) NoriTokenizerCaster() *NoriTokenizer { return s } + +func (s *NoriTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/normalizeaggregation.go b/typedapi/types/normalizeaggregation.go index b68558d089..eda3268392 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // NormalizeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L351-L359 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -102,8 +102,6 @@ func NewNormalizeAggregation() *NormalizeAggregation { return r } -// true - type NormalizeAggregationVariant interface { NormalizeAggregationCaster() *NormalizeAggregation } diff --git a/typedapi/types/normalizer.go b/typedapi/types/normalizer.go index ebbc622b09..bcf663d349 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // LowercaseNormalizer // CustomNormalizer // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/normalizers.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5474b93c75..7e3ab1d76e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // NorwegianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L248-L253 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L248-L253 type NorwegianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *NorwegianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *NorwegianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewNorwegianAnalyzer() *NorwegianAnalyzer { return r } -// true - type NorwegianAnalyzerVariant interface { NorwegianAnalyzerCaster() *NorwegianAnalyzer } @@ -128,3 +115,8 @@ type NorwegianAnalyzerVariant interface { func (s *NorwegianAnalyzer) NorwegianAnalyzerCaster() *NorwegianAnalyzer { return s } + +func (s *NorwegianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/notfoundaliases.go b/typedapi/types/notfoundaliases.go new file mode 100644 index 0000000000..8f86618db7 --- /dev/null +++ b/typedapi/types/notfoundaliases.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// NotFoundAliases type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_alias/_types/response.ts#L28-L36 +type NotFoundAliases struct { + Error string `json:"error"` + NotFoundAliases map[string]IndexAliases `json:"-"` + Status int `json:"status"` +} + +func (s *NotFoundAliases) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "error": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Error", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Error = o + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + default: + + if key, ok := t.(string); ok { + if s.NotFoundAliases == nil { + s.NotFoundAliases = make(map[string]IndexAliases, 0) + } + raw := NewIndexAliases() + if err := dec.Decode(&raw); err != nil { + return fmt.Errorf("%s | %w", "NotFoundAliases", err) + } + s.NotFoundAliases[key] = *raw + } + + } + } + return nil +} + +// MarhsalJSON overrides marshalling for types with additional properties +func (s NotFoundAliases) MarshalJSON() ([]byte, error) { + type opt NotFoundAliases + // We transform the struct to a map without the embedded additional properties map + tmp := make(map[string]any, 0) + + data, err := json.Marshal(opt(s)) + if err != nil { + return nil, err + } + err = json.Unmarshal(data, &tmp) + if err != nil { + return nil, err + } + + // We inline the additional fields from the underlying map + for key, value := range s.NotFoundAliases { + tmp[fmt.Sprintf("%s", key)] = value + } + delete(tmp, "NotFoundAliases") + + data, err = json.Marshal(tmp) + if err != nil { + return nil, err + } + + return data, nil +} + +// NewNotFoundAliases returns a NotFoundAliases. +func NewNotFoundAliases() *NotFoundAliases { + r := &NotFoundAliases{ + NotFoundAliases: make(map[string]IndexAliases), + } + + return r +} diff --git a/typedapi/types/numberrangequery.go b/typedapi/types/numberrangequery.go index 532a44b742..3081ae75e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // NumberRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L172-L172 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L168-L168 type NumberRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -41,7 +41,6 @@ type NumberRangeQuery struct { // A boost value between 0 and 1.0 decreases the relevance score. // A value greater than 1.0 increases the relevance score. Boost *float32 `json:"boost,omitempty"` - From *Float64 `json:"from,omitempty"` // Gt Greater than. Gt *Float64 `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -53,7 +52,6 @@ type NumberRangeQuery struct { QueryName_ *string `json:"_name,omitempty"` // Relation Indicates how the range query matches values for `range` fields. Relation *rangerelation.RangeRelation `json:"relation,omitempty"` - To *Float64 `json:"to,omitempty"` } func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error { @@ -87,11 +85,6 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error { s.Boost = &f } - case "from": - if err := dec.Decode(&s.From); err != nil { - return fmt.Errorf("%s | %w", "From", err) - } - case "gt": var tmp any dec.Decode(&tmp) @@ -173,11 +166,6 @@ func (s *NumberRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Relation", err) } - case "to": - if err := dec.Decode(&s.To); err != nil { - return fmt.Errorf("%s | %w", "To", err) - } - } } return nil @@ -190,8 +178,6 @@ func NewNumberRangeQuery() *NumberRangeQuery { return r } -// true - type NumberRangeQueryVariant interface { NumberRangeQueryCaster() *NumberRangeQuery } @@ -199,3 +185,8 @@ type NumberRangeQueryVariant interface { func (s *NumberRangeQuery) NumberRangeQueryCaster() *NumberRangeQuery { return s } + +func (s *NumberRangeQuery) RangeQueryCaster() *RangeQuery { + o := RangeQuery(s) + return &o +} diff --git a/typedapi/types/numericdecayfunction.go b/typedapi/types/numericdecayfunction.go index b895d876eb..42d0d7ad93 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // NumericDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L208-L208 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -75,8 +75,6 @@ func NewNumericDecayFunction() *NumericDecayFunction { return r } -// true - type NumericDecayFunctionVariant interface { NumericDecayFunctionCaster() *NumericDecayFunction } @@ -84,3 +82,8 @@ type NumericDecayFunctionVariant interface { func (s *NumericDecayFunction) NumericDecayFunctionCaster() *NumericDecayFunction { return s } + +func (s *NumericDecayFunction) DecayFunctionCaster() *DecayFunction { + o := DecayFunction(s) + return &o +} diff --git a/typedapi/types/numericfielddata.go b/typedapi/types/numericfielddata.go index 4661f397a6..b8bade7655 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // NumericFielddata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/NumericFielddata.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/NumericFielddata.ts#L22-L24 type NumericFielddata struct { Format numericfielddataformat.NumericFielddataFormat `json:"format"` } @@ -38,8 +38,6 @@ func NewNumericFielddata() *NumericFielddata { return r } -// true - type NumericFielddataVariant interface { NumericFielddataCaster() *NumericFielddata } diff --git a/typedapi/types/objectproperty.go b/typedapi/types/objectproperty.go index 7abcb13cbf..ede65082b3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // ObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/complex.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/complex.ts#L47-L51 type ObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -243,6 +243,12 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -598,6 +604,12 @@ func (s *ObjectProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -854,8 +866,6 @@ func NewObjectProperty() *ObjectProperty { return r } -// true - type ObjectPropertyVariant interface { ObjectPropertyCaster() *ObjectProperty } @@ -863,3 +873,8 @@ type ObjectPropertyVariant interface { func (s *ObjectProperty) ObjectPropertyCaster() *ObjectProperty { return s } + +func (s *ObjectProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/onehotencodingpreprocessor.go b/typedapi/types/onehotencodingpreprocessor.go index 26043b6809..4499f8d026 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OneHotEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L44-L47 type OneHotEncodingPreprocessor struct { Field string `json:"field"` HotMap map[string]string `json:"hot_map"` @@ -86,8 +86,6 @@ func NewOneHotEncodingPreprocessor() *OneHotEncodingPreprocessor { return r } -// true - type OneHotEncodingPreprocessorVariant interface { OneHotEncodingPreprocessorCaster() *OneHotEncodingPreprocessor } diff --git a/typedapi/types/openaiservicesettings.go b/typedapi/types/openaiservicesettings.go index 23d3e03099..02c708bf95 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OpenAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1013-L1055 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1086-L1128 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 @@ -164,8 +164,6 @@ func NewOpenAIServiceSettings() *OpenAIServiceSettings { return r } -// true - type OpenAIServiceSettingsVariant interface { OpenAIServiceSettingsCaster() *OpenAIServiceSettings } diff --git a/typedapi/types/openaitasksettings.go b/typedapi/types/openaitasksettings.go index c18a47be5a..68175687d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OpenAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1057-L1063 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1130-L1136 type OpenAITaskSettings struct { // User For a `completion` or `text_embedding` task, specify the user issuing the // request. @@ -78,8 +78,6 @@ func NewOpenAITaskSettings() *OpenAITaskSettings { return r } -// true - type OpenAITaskSettingsVariant interface { OpenAITaskSettingsCaster() *OpenAITaskSettings } diff --git a/typedapi/types/operatingsystem.go b/typedapi/types/operatingsystem.go index 4d43d59ee4..c4b5312d96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1016-L1022 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1023-L1029 type OperatingSystem struct { Cgroup *Cgroup `json:"cgroup,omitempty"` Cpu *Cpu `json:"cpu,omitempty"` @@ -101,5 +101,3 @@ func NewOperatingSystem() *OperatingSystem { return r } - -// false diff --git a/typedapi/types/operatingsystemmemoryinfo.go b/typedapi/types/operatingsystemmemoryinfo.go index fd7fa2c0a3..1f4410c6f5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,18 +31,28 @@ import ( // OperatingSystemMemoryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/stats/types.ts#L541-L568 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L715-L763 type OperatingSystemMemoryInfo struct { + // AdjustedTotal Total amount of memory across all selected nodes, but using the value + // specified using the `es.total_memory_bytes` system property instead of + // measured total memory for those nodes where that system property was set. + AdjustedTotal ByteSize `json:"adjusted_total,omitempty"` // 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 // measured total memory for those nodes where that system property was set. AdjustedTotalInBytes *int64 `json:"adjusted_total_in_bytes,omitempty"` + // Free Amount of free physical memory across all selected nodes. + Free ByteSize `json:"free,omitempty"` // FreeInBytes Amount, in bytes, of free physical memory across all selected nodes. FreeInBytes int64 `json:"free_in_bytes"` // FreePercent Percentage of free physical memory across all selected nodes. FreePercent int `json:"free_percent"` + // Total Total amount of physical memory across all selected nodes. + Total ByteSize `json:"total,omitempty"` // TotalInBytes Total amount, in bytes, of physical memory across all selected nodes. TotalInBytes int64 `json:"total_in_bytes"` + // Used Amount of physical memory in use across all selected nodes. + Used ByteSize `json:"used,omitempty"` // UsedInBytes Amount, in bytes, of physical memory in use across all selected nodes. UsedInBytes int64 `json:"used_in_bytes"` // UsedPercent Percentage of physical memory in use across all selected nodes. @@ -64,6 +74,11 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error { switch t { + case "adjusted_total": + if err := dec.Decode(&s.AdjustedTotal); err != nil { + return fmt.Errorf("%s | %w", "AdjustedTotal", err) + } + case "adjusted_total_in_bytes": var tmp any dec.Decode(&tmp) @@ -79,6 +94,11 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error { s.AdjustedTotalInBytes = &f } + case "free": + if err := dec.Decode(&s.Free); err != nil { + return fmt.Errorf("%s | %w", "Free", err) + } + case "free_in_bytes": var tmp any dec.Decode(&tmp) @@ -110,6 +130,11 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error { s.FreePercent = f } + case "total": + if err := dec.Decode(&s.Total); err != nil { + return fmt.Errorf("%s | %w", "Total", err) + } + case "total_in_bytes": var tmp any dec.Decode(&tmp) @@ -125,6 +150,11 @@ func (s *OperatingSystemMemoryInfo) UnmarshalJSON(data []byte) error { s.TotalInBytes = f } + case "used": + if err := dec.Decode(&s.Used); err != nil { + return fmt.Errorf("%s | %w", "Used", err) + } + case "used_in_bytes": var tmp any dec.Decode(&tmp) @@ -167,5 +197,3 @@ func NewOperatingSystemMemoryInfo() *OperatingSystemMemoryInfo { return r } - -// false diff --git a/typedapi/types/operationcontainer.go b/typedapi/types/operationcontainer.go index 624484c79d..8205450ccb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // OperationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L158-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -82,8 +82,6 @@ func NewOperationContainer() *OperationContainer { return r } -// true - type OperationContainerVariant interface { OperationContainerCaster() *OperationContainer } diff --git a/typedapi/types/outlierdetectionparameters.go b/typedapi/types/outlierdetectionparameters.go index 91b2d12192..3bc3a46e9c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OutlierDetectionParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L528-L562 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -178,5 +178,3 @@ func NewOutlierDetectionParameters() *OutlierDetectionParameters { return r } - -// false diff --git a/typedapi/types/overallbucket.go b/typedapi/types/overallbucket.go index 1b2afe24c1..c31cbeda7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OverallBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Bucket.ts#L129-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -139,5 +139,3 @@ func NewOverallBucket() *OverallBucket { return r } - -// false diff --git a/typedapi/types/overallbucketjob.go b/typedapi/types/overallbucketjob.go index f6e0ab1195..b134eeb46b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // OverallBucketJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Bucket.ts#L145-L148 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Bucket.ts#L145-L148 type OverallBucketJob struct { JobId string `json:"job_id"` MaxAnomalyScore Float64 `json:"max_anomaly_score"` @@ -84,5 +84,3 @@ func NewOverallBucketJob() *OverallBucketJob { return r } - -// false diff --git a/typedapi/types/overlapping.go b/typedapi/types/overlapping.go index 2ba78554de..bf807fa501 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Overlapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 type Overlapping struct { IndexPatterns []string `json:"index_patterns"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewOverlapping() *Overlapping { return r } - -// false diff --git a/typedapi/types/page.go b/typedapi/types/page.go index 04af82239c..b22f4f4cc6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Page type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Page.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Page.ts#L22-L33 type Page struct { // From Skips the specified number of items. From *int `json:"from,omitempty"` @@ -98,8 +98,6 @@ func NewPage() *Page { return r } -// true - type PageVariant interface { PageCaster() *Page } diff --git a/typedapi/types/pagerdutyaction.go b/typedapi/types/pagerdutyaction.go index d665588a38..0a116e4f4c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // PagerDutyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L54-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L54-L54 type PagerDutyAction struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` @@ -162,8 +162,6 @@ func NewPagerDutyAction() *PagerDutyAction { return r } -// true - type PagerDutyActionVariant interface { PagerDutyActionCaster() *PagerDutyAction } diff --git a/typedapi/types/pagerdutycontext.go b/typedapi/types/pagerdutycontext.go index ef31762cb4..425e237cfa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // PagerDutyContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L61-L65 type PagerDutyContext struct { Href *string `json:"href,omitempty"` Src *string `json:"src,omitempty"` @@ -96,8 +96,6 @@ func NewPagerDutyContext() *PagerDutyContext { return r } -// true - type PagerDutyContextVariant interface { PagerDutyContextCaster() *PagerDutyContext } diff --git a/typedapi/types/pagerdutyevent.go b/typedapi/types/pagerdutyevent.go index cf0a3bd83d..c5933abae5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // PagerDutyEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L40-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L40-L52 type PagerDutyEvent struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` @@ -161,5 +161,3 @@ func NewPagerDutyEvent() *PagerDutyEvent { return r } - -// false diff --git a/typedapi/types/pagerdutyeventproxy.go b/typedapi/types/pagerdutyeventproxy.go index 64fec89025..b55b5f7ebf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PagerDutyEventProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L56-L59 type PagerDutyEventProxy struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` @@ -85,8 +85,6 @@ func NewPagerDutyEventProxy() *PagerDutyEventProxy { return r } -// true - type PagerDutyEventProxyVariant interface { PagerDutyEventProxyCaster() *PagerDutyEventProxy } diff --git a/typedapi/types/pagerdutyresult.go b/typedapi/types/pagerdutyresult.go index d6401b748f..da8b8eca33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PagerDutyResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L78-L83 type PagerDutyResult struct { Event PagerDutyEvent `json:"event"` Reason *string `json:"reason,omitempty"` @@ -92,5 +92,3 @@ func NewPagerDutyResult() *PagerDutyResult { return r } - -// false diff --git a/typedapi/types/painlesscontextsetup.go b/typedapi/types/painlesscontextsetup.go index bb05a11a50..7491c1831c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PainlessContextSetup type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/scripts_painless_execute/types.ts#L27-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -93,8 +93,6 @@ func NewPainlessContextSetup() *PainlessContextSetup { return r } -// true - type PainlessContextSetupVariant interface { PainlessContextSetupCaster() *PainlessContextSetup } diff --git a/typedapi/types/parentaggregate.go b/typedapi/types/parentaggregate.go index 879e865bd9..74db8d0ff5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ParentAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L894-L898 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L896-L900 type ParentAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewParentAggregate() *ParentAggregate { return r } - -// false diff --git a/typedapi/types/parentaggregation.go b/typedapi/types/parentaggregation.go index 2f03781c69..d0e79684e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ParentAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L662-L667 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L662-L667 type ParentAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` @@ -68,8 +68,6 @@ func NewParentAggregation() *ParentAggregation { return r } -// true - type ParentAggregationVariant interface { ParentAggregationCaster() *ParentAggregation } diff --git a/typedapi/types/parentidquery.go b/typedapi/types/parentidquery.go index e54cad3371..6d84df3d30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ParentIdQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/joining.ts#L141-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -128,8 +128,6 @@ func NewParentIdQuery() *ParentIdQuery { return r } -// true - type ParentIdQueryVariant interface { ParentIdQueryCaster() *ParentIdQuery } diff --git a/typedapi/types/parenttaskinfo.go b/typedapi/types/parenttaskinfo.go index 27cdfc2cec..0415d93a1b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ParentTaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 type ParentTaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` @@ -216,5 +216,3 @@ func NewParentTaskInfo() *ParentTaskInfo { return r } - -// false diff --git a/typedapi/types/passthroughinferenceoptions.go b/typedapi/types/passthroughinferenceoptions.go index 08eca6254e..acf3421312 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L239-L246 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -90,8 +90,6 @@ func NewPassThroughInferenceOptions() *PassThroughInferenceOptions { return r } -// true - type PassThroughInferenceOptionsVariant interface { PassThroughInferenceOptionsCaster() *PassThroughInferenceOptions } diff --git a/typedapi/types/passthroughinferenceupdateoptions.go b/typedapi/types/passthroughinferenceupdateoptions.go index 007a74d4b0..2b23ec5e87 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L404-L409 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -84,8 +84,6 @@ func NewPassThroughInferenceUpdateOptions() *PassThroughInferenceUpdateOptions { return r } -// true - type PassThroughInferenceUpdateOptionsVariant interface { PassThroughInferenceUpdateOptionsCaster() *PassThroughInferenceUpdateOptions } diff --git a/typedapi/types/passthroughobjectproperty.go b/typedapi/types/passthroughobjectproperty.go index 8ad718858a..4d4d4b7223 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // PassthroughObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/complex.ts#L52-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/complex.ts#L53-L58 type PassthroughObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` @@ -243,6 +243,12 @@ func (s *PassthroughObjectProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -614,6 +620,12 @@ func (s *PassthroughObjectProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -880,8 +892,6 @@ func NewPassthroughObjectProperty() *PassthroughObjectProperty { return r } -// true - type PassthroughObjectPropertyVariant interface { PassthroughObjectPropertyCaster() *PassthroughObjectProperty } @@ -889,3 +899,8 @@ type PassthroughObjectPropertyVariant interface { func (s *PassthroughObjectProperty) PassthroughObjectPropertyCaster() *PassthroughObjectProperty { return s } + +func (s *PassthroughObjectProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/pathhierarchytokenizer.go b/typedapi/types/pathhierarchytokenizer.go index 10c5fe6ff1..6f5fd8a467 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PathHierarchyTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L95-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L97-L104 type PathHierarchyTokenizer struct { BufferSize Stringifiedinteger `json:"buffer_size,omitempty"` Delimiter *string `json:"delimiter,omitempty"` @@ -136,8 +136,6 @@ func NewPathHierarchyTokenizer() *PathHierarchyTokenizer { return r } -// true - type PathHierarchyTokenizerVariant interface { PathHierarchyTokenizerCaster() *PathHierarchyTokenizer } @@ -145,3 +143,8 @@ type PathHierarchyTokenizerVariant interface { func (s *PathHierarchyTokenizer) PathHierarchyTokenizerCaster() *PathHierarchyTokenizer { return s } + +func (s *PathHierarchyTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/patternanalyzer.go b/typedapi/types/patternanalyzer.go index cd4e465954..52ef17e073 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PatternAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L332-L365 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L332-L365 type PatternAnalyzer struct { // Flags Java regular expression flags. Flags should be pipe-separated, eg // "CASE_INSENSITIVE|COMMENTS". @@ -45,7 +45,7 @@ type PatternAnalyzer struct { // Stopwords A pre-defined stop words list like `_english_` or an array containing a list // of stop words. // Defaults to `_none_`. - Stopwords []string `json:"stopwords,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` // StopwordsPath The path to a file containing stop words. StopwordsPath *string `json:"stopwords_path,omitempty"` Type string `json:"type,omitempty"` @@ -106,19 +106,8 @@ func (s *PatternAnalyzer) UnmarshalJSON(data []byte) error { s.Pattern = &o case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -173,8 +162,6 @@ func NewPatternAnalyzer() *PatternAnalyzer { return r } -// true - type PatternAnalyzerVariant interface { PatternAnalyzerCaster() *PatternAnalyzer } @@ -182,3 +169,8 @@ type PatternAnalyzerVariant interface { func (s *PatternAnalyzer) PatternAnalyzerCaster() *PatternAnalyzer { return s } + +func (s *PatternAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/patterncapturetokenfilter.go b/typedapi/types/patterncapturetokenfilter.go index 416e73efc6..dcf3e97cf7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,9 +30,11 @@ import ( // PatternCaptureTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L279-L283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L374-L380 type PatternCaptureTokenFilter struct { - Patterns []string `json:"patterns"` + // Patterns A list of regular expressions to match. + Patterns []string `json:"patterns"` + // PreserveOriginal If set to `true` (the default) it will emit the original token. PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -100,8 +102,6 @@ func NewPatternCaptureTokenFilter() *PatternCaptureTokenFilter { return r } -// true - type PatternCaptureTokenFilterVariant interface { PatternCaptureTokenFilterCaster() *PatternCaptureTokenFilter } @@ -109,3 +109,8 @@ type PatternCaptureTokenFilterVariant interface { func (s *PatternCaptureTokenFilter) PatternCaptureTokenFilterCaster() *PatternCaptureTokenFilter { return s } + +func (s *PatternCaptureTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/patternreplacecharfilter.go b/typedapi/types/patternreplacecharfilter.go index 079d790864..b5d67f8f03 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/char_filters.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/char_filters.ts#L57-L62 type PatternReplaceCharFilter struct { Flags *string `json:"flags,omitempty"` Pattern string `json:"pattern"` @@ -129,8 +129,6 @@ func NewPatternReplaceCharFilter() *PatternReplaceCharFilter { return r } -// true - type PatternReplaceCharFilterVariant interface { PatternReplaceCharFilterCaster() *PatternReplaceCharFilter } @@ -138,3 +136,8 @@ type PatternReplaceCharFilterVariant interface { func (s *PatternReplaceCharFilter) PatternReplaceCharFilterCaster() *PatternReplaceCharFilter { return s } + +func (s *PatternReplaceCharFilter) CharFilterDefinitionCaster() *CharFilterDefinition { + o := CharFilterDefinition(s) + return &o +} diff --git a/typedapi/types/patternreplacetokenfilter.go b/typedapi/types/patternreplacetokenfilter.go index 3681f74427..bf06b9eee6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,18 @@ import ( // PatternReplaceTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L285-L291 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L382-L391 type PatternReplaceTokenFilter struct { - All *bool `json:"all,omitempty"` - Flags *string `json:"flags,omitempty"` - Pattern string `json:"pattern"` + // All If `true`, all substrings matching the pattern parameter’s regular expression + // are replaced. If `false`, the filter replaces only the first matching + // substring in each token. Defaults to `true`. + All *bool `json:"all,omitempty"` + Flags *string `json:"flags,omitempty"` + // Pattern Regular expression, written in Java’s regular expression syntax. The filter + // replaces token substrings matching this pattern with the substring in the + // `replacement` parameter. + Pattern string `json:"pattern"` + // Replacement Replacement substring. Defaults to an empty substring (`""`). Replacement *string `json:"replacement,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -145,8 +152,6 @@ func NewPatternReplaceTokenFilter() *PatternReplaceTokenFilter { return r } -// true - type PatternReplaceTokenFilterVariant interface { PatternReplaceTokenFilterCaster() *PatternReplaceTokenFilter } @@ -154,3 +159,8 @@ type PatternReplaceTokenFilterVariant interface { func (s *PatternReplaceTokenFilter) PatternReplaceTokenFilterCaster() *PatternReplaceTokenFilter { return s } + +func (s *PatternReplaceTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/patterntokenizer.go b/typedapi/types/patterntokenizer.go index fb97436e30..cb22cafd42 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L104-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L106-L111 type PatternTokenizer struct { Flags *string `json:"flags,omitempty"` Group *int `json:"group,omitempty"` @@ -133,8 +133,6 @@ func NewPatternTokenizer() *PatternTokenizer { return r } -// true - type PatternTokenizerVariant interface { PatternTokenizerCaster() *PatternTokenizer } @@ -142,3 +140,8 @@ type PatternTokenizerVariant interface { func (s *PatternTokenizer) PatternTokenizerCaster() *PatternTokenizer { return s } + +func (s *PatternTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/pendingtask.go b/typedapi/types/pendingtask.go index 8cd8c96026..9dc367177d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PendingTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/pending_tasks/types.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -142,5 +142,3 @@ func NewPendingTask() *PendingTask { return r } - -// false diff --git a/typedapi/types/pendingtasksrecord.go b/typedapi/types/pendingtasksrecord.go index 36fe792da2..b41b1c3637 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PendingTasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/pending_tasks/types.ts#L20-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/pending_tasks/types.ts#L20-L41 type PendingTasksRecord struct { // InsertOrder The task insertion order. InsertOrder *string `json:"insertOrder,omitempty"` @@ -117,5 +117,3 @@ func NewPendingTasksRecord() *PendingTasksRecord { return r } - -// false diff --git a/typedapi/types/percentage.go b/typedapi/types/percentage.go index 780f3ff1eb..882d99e60e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // float32 // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Numeric.ts#L28-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4b8d5c5722..2b8154a10c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // PercentageScoreHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L811-L811 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L811-L811 type PercentageScoreHeuristic struct { } @@ -33,8 +33,6 @@ func NewPercentageScoreHeuristic() *PercentageScoreHeuristic { return r } -// true - type PercentageScoreHeuristicVariant interface { PercentageScoreHeuristicCaster() *PercentageScoreHeuristic } diff --git a/typedapi/types/percentileranksaggregation.go b/typedapi/types/percentileranksaggregation.go index b4648b7d15..6cad138158 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PercentileRanksAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L180-L202 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L180-L202 type PercentileRanksAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -137,8 +137,6 @@ func NewPercentileRanksAggregation() *PercentileRanksAggregation { return r } -// true - type PercentileRanksAggregationVariant interface { PercentileRanksAggregationCaster() *PercentileRanksAggregation } diff --git a/typedapi/types/percentiles.go b/typedapi/types/percentiles.go index e8d995f7a2..2cec017ea7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // KeyedPercentiles // []ArrayPercentilesItem // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L152-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L152-L153 type Percentiles any diff --git a/typedapi/types/percentilesaggregation.go b/typedapi/types/percentilesaggregation.go index efe49a1145..cf3a4fab05 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L204-L223 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L204-L223 type PercentilesAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -137,8 +137,6 @@ func NewPercentilesAggregation() *PercentilesAggregation { return r } -// true - type PercentilesAggregationVariant interface { PercentilesAggregationCaster() *PercentilesAggregation } diff --git a/typedapi/types/percentilesbucketaggregate.go b/typedapi/types/percentilesbucketaggregate.go index 52198536c6..f829746532 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PercentilesBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L180-L181 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L180-L181 type PercentilesBucketAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -88,5 +88,3 @@ func NewPercentilesBucketAggregate() *PercentilesBucketAggregate { return r } - -// false diff --git a/typedapi/types/percentilesbucketaggregation.go b/typedapi/types/percentilesbucketaggregation.go index 2bf1cec231..43b3b8b11e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // PercentilesBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L389-L397 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -101,8 +101,6 @@ func NewPercentilesBucketAggregation() *PercentilesBucketAggregation { return r } -// true - type PercentilesBucketAggregationVariant interface { PercentilesBucketAggregationCaster() *PercentilesBucketAggregation } diff --git a/typedapi/types/percolatequery.go b/typedapi/types/percolatequery.go index a4c81732e9..aba92b9db2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PercolateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L205-L245 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -176,8 +176,6 @@ func NewPercolateQuery() *PercolateQuery { return r } -// true - type PercolateQueryVariant interface { PercolateQueryCaster() *PercolateQuery } diff --git a/typedapi/types/percolatorproperty.go b/typedapi/types/percolatorproperty.go index 838bb9b80d..13ab5aed58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // PercolatorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L201-L203 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L201-L203 type PercolatorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -208,6 +208,12 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -563,6 +569,12 @@ func (s *PercolatorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -796,8 +808,6 @@ func NewPercolatorProperty() *PercolatorProperty { return r } -// true - type PercolatorPropertyVariant interface { PercolatorPropertyCaster() *PercolatorProperty } @@ -805,3 +815,8 @@ type PercolatorPropertyVariant interface { func (s *PercolatorProperty) PercolatorPropertyCaster() *PercolatorProperty { return s } + +func (s *PercolatorProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/perpartitioncategorization.go b/typedapi/types/perpartitioncategorization.go index f38c7f8693..0eb41a27fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PerPartitionCategorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Analysis.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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`. @@ -101,8 +101,6 @@ func NewPerPartitionCategorization() *PerPartitionCategorization { return r } -// true - type PerPartitionCategorizationVariant interface { PerPartitionCategorizationCaster() *PerPartitionCategorization } diff --git a/typedapi/types/perrepositorystats.go b/typedapi/types/perrepositorystats.go new file mode 100644 index 0000000000..e941df98a5 --- /dev/null +++ b/typedapi/types/perrepositorystats.go @@ -0,0 +1,94 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// PerRepositoryStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L665-L670 +type PerRepositoryStats struct { + CurrentCounts RepositoryStatsCurrentCounts `json:"current_counts"` + OldestStartTime *string `json:"oldest_start_time,omitempty"` + OldestStartTimeMillis int64 `json:"oldest_start_time_millis"` + Type string `json:"type"` +} + +func (s *PerRepositoryStats) 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 "current_counts": + if err := dec.Decode(&s.CurrentCounts); err != nil { + return fmt.Errorf("%s | %w", "CurrentCounts", err) + } + + case "oldest_start_time": + if err := dec.Decode(&s.OldestStartTime); err != nil { + return fmt.Errorf("%s | %w", "OldestStartTime", err) + } + + case "oldest_start_time_millis": + if err := dec.Decode(&s.OldestStartTimeMillis); err != nil { + return fmt.Errorf("%s | %w", "OldestStartTimeMillis", err) + } + + case "type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Type = o + + } + } + return nil +} + +// NewPerRepositoryStats returns a PerRepositoryStats. +func NewPerRepositoryStats() *PerRepositoryStats { + r := &PerRepositoryStats{} + + return r +} diff --git a/typedapi/types/persiananalyzer.go b/typedapi/types/persiananalyzer.go index f13584229b..d34156b930 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // PersianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L255-L259 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L255-L259 type PersianAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *PersianAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *PersianAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewPersianAnalyzer() *PersianAnalyzer { return r } -// true - type PersianAnalyzerVariant interface { PersianAnalyzerCaster() *PersianAnalyzer } @@ -121,3 +108,8 @@ type PersianAnalyzerVariant interface { func (s *PersianAnalyzer) PersianAnalyzerCaster() *PersianAnalyzer { return s } + +func (s *PersianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/persiannormalizationtokenfilter.go b/typedapi/types/persiannormalizationtokenfilter.go new file mode 100644 index 0000000000..2f77d0b3cd --- /dev/null +++ b/typedapi/types/persiannormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// PersianNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L527-L529 +type PersianNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *PersianNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s PersianNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerPersianNormalizationTokenFilter PersianNormalizationTokenFilter + tmp := innerPersianNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "persian_normalization" + + return json.Marshal(tmp) +} + +// NewPersianNormalizationTokenFilter returns a PersianNormalizationTokenFilter. +func NewPersianNormalizationTokenFilter() *PersianNormalizationTokenFilter { + r := &PersianNormalizationTokenFilter{} + + return r +} + +type PersianNormalizationTokenFilterVariant interface { + PersianNormalizationTokenFilterCaster() *PersianNormalizationTokenFilter +} + +func (s *PersianNormalizationTokenFilter) PersianNormalizationTokenFilterCaster() *PersianNormalizationTokenFilter { + return s +} + +func (s *PersianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/persianstemtokenfilter.go b/typedapi/types/persianstemtokenfilter.go new file mode 100644 index 0000000000..24f784baf8 --- /dev/null +++ b/typedapi/types/persianstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// PersianStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L571-L573 +type PersianStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *PersianStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s PersianStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerPersianStemTokenFilter PersianStemTokenFilter + tmp := innerPersianStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "persian_stem" + + return json.Marshal(tmp) +} + +// NewPersianStemTokenFilter returns a PersianStemTokenFilter. +func NewPersianStemTokenFilter() *PersianStemTokenFilter { + r := &PersianStemTokenFilter{} + + return r +} + +type PersianStemTokenFilterVariant interface { + PersianStemTokenFilterCaster() *PersianStemTokenFilter +} + +func (s *PersianStemTokenFilter) PersianStemTokenFilterCaster() *PersianStemTokenFilter { + return s +} + +func (s *PersianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/persistenttaskstatus.go b/typedapi/types/persistenttaskstatus.go index de291f624f..7855d4d7de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // PersistentTaskStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 type PersistentTaskStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } @@ -37,5 +37,3 @@ func NewPersistentTaskStatus() *PersistentTaskStatus { return r } - -// false diff --git a/typedapi/types/phase.go b/typedapi/types/phase.go index 95e326b831..8af521dd0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Phase type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L26-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L26-L29 type Phase struct { Actions *IlmActions `json:"actions,omitempty"` MinAge Duration `json:"min_age,omitempty"` @@ -73,8 +73,6 @@ func NewPhase() *Phase { return r } -// true - type PhaseVariant interface { PhaseCaster() *Phase } diff --git a/typedapi/types/phases.go b/typedapi/types/phases.go index 2e0ba55e6c..31eadeec26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Phases type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L31-L37 type Phases struct { Cold *Phase `json:"cold,omitempty"` Delete *Phase `json:"delete,omitempty"` @@ -38,8 +38,6 @@ func NewPhases() *Phases { return r } -// true - type PhasesVariant interface { PhasesCaster() *Phases } diff --git a/typedapi/types/phonetictokenfilter.go b/typedapi/types/phonetictokenfilter.go index 3640a9dee7..20fd4a5b33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // PhoneticTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/phonetic-plugin.ts#L64-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/phonetic-plugin.ts#L64-L72 type PhoneticTokenFilter struct { Encoder phoneticencoder.PhoneticEncoder `json:"encoder"` Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"` @@ -165,8 +165,6 @@ func NewPhoneticTokenFilter() *PhoneticTokenFilter { return r } -// true - type PhoneticTokenFilterVariant interface { PhoneticTokenFilterCaster() *PhoneticTokenFilter } @@ -174,3 +172,8 @@ type PhoneticTokenFilterVariant interface { func (s *PhoneticTokenFilter) PhoneticTokenFilterCaster() *PhoneticTokenFilter { return s } + +func (s *PhoneticTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/phrasesuggest.go b/typedapi/types/phrasesuggest.go index 536c7148dd..162a944320 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L58-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L58-L63 type PhraseSuggest struct { Length int `json:"length"` Offset int `json:"offset"` @@ -125,5 +125,3 @@ func NewPhraseSuggest() *PhraseSuggest { return r } - -// false diff --git a/typedapi/types/phrasesuggestcollate.go b/typedapi/types/phrasesuggestcollate.go index 86a1a1f956..46740fc8a8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L334-L347 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L334-L347 type PhraseSuggestCollate struct { // Params Parameters to use if the query is templated. Params map[string]json.RawMessage `json:"params,omitempty"` @@ -98,8 +98,6 @@ func NewPhraseSuggestCollate() *PhraseSuggestCollate { return r } -// true - type PhraseSuggestCollateVariant interface { PhraseSuggestCollateCaster() *PhraseSuggestCollate } diff --git a/typedapi/types/phrasesuggestcollatequery.go b/typedapi/types/phrasesuggestcollatequery.go index 135bac8153..f34c81b44f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PhraseSuggestCollateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L349-L358 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L349-L358 type PhraseSuggestCollateQuery struct { // Id The search template ID. Id *string `json:"id,omitempty"` @@ -106,8 +106,6 @@ func NewPhraseSuggestCollateQuery() *PhraseSuggestCollateQuery { return r } -// true - type PhraseSuggestCollateQueryVariant interface { PhraseSuggestCollateQueryCaster() *PhraseSuggestCollateQuery } diff --git a/typedapi/types/phrasesuggester.go b/typedapi/types/phrasesuggester.go index dff4d2929c..f573b39c82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L360-L418 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L360-L418 type PhraseSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. @@ -300,8 +300,6 @@ func NewPhraseSuggester() *PhraseSuggester { return r } -// true - type PhraseSuggesterVariant interface { PhraseSuggesterCaster() *PhraseSuggester } diff --git a/typedapi/types/phrasesuggesthighlight.go b/typedapi/types/phrasesuggesthighlight.go index 253dc17907..bbb73cda18 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L420-L429 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L420-L429 type PhraseSuggestHighlight struct { // PostTag Use in conjunction with `pre_tag` to define the HTML tags to use for the // highlighted text. @@ -92,8 +92,6 @@ func NewPhraseSuggestHighlight() *PhraseSuggestHighlight { return r } -// true - type PhraseSuggestHighlightVariant interface { PhraseSuggestHighlightCaster() *PhraseSuggestHighlight } diff --git a/typedapi/types/phrasesuggestoption.go b/typedapi/types/phrasesuggestoption.go index d3dd194502..2a73580add 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L87-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L87-L92 type PhraseSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Highlighted *string `json:"highlighted,omitempty"` @@ -119,5 +119,3 @@ func NewPhraseSuggestOption() *PhraseSuggestOption { return r } - -// false diff --git a/typedapi/types/pinneddoc.go b/typedapi/types/pinneddoc.go index 4b48e768b0..8a4a532f53 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PinnedDoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L269-L278 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L269-L278 type PinnedDoc struct { // Id_ The unique document ID. Id_ string `json:"_id"` @@ -75,8 +75,6 @@ func NewPinnedDoc() *PinnedDoc { return r } -// true - type PinnedDocVariant interface { PinnedDocCaster() *PinnedDoc } diff --git a/typedapi/types/pinnedquery.go b/typedapi/types/pinnedquery.go index dd659bc1d5..7c9728ec57 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PinnedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L247-L267 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -166,8 +166,6 @@ func NewPinnedQuery() *PinnedQuery { return r } -// true - type PinnedQueryVariant interface { PinnedQueryCaster() *PinnedQuery } diff --git a/typedapi/types/pinnedretriever.go b/typedapi/types/pinnedretriever.go new file mode 100644 index 0000000000..32fb461ab4 --- /dev/null +++ b/typedapi/types/pinnedretriever.go @@ -0,0 +1,158 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// PinnedRetriever type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L74-L80 +type PinnedRetriever struct { + Docs []SpecifiedDocument `json:"docs,omitempty"` + // Filter Query to filter the documents that can match. + Filter []Query `json:"filter,omitempty"` + Ids []string `json:"ids,omitempty"` + // MinScore Minimum _score for matching documents. Documents with a lower _score are not + // included in the top documents. + MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` + RankWindowSize *int `json:"rank_window_size,omitempty"` + // Retriever Inner retriever. + Retriever RetrieverContainer `json:"retriever"` +} + +func (s *PinnedRetriever) 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 "docs": + if err := dec.Decode(&s.Docs); err != nil { + return fmt.Errorf("%s | %w", "Docs", err) + } + + case "filter": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewQuery() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + s.Filter = append(s.Filter, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + } + + case "ids": + if err := dec.Decode(&s.Ids); err != nil { + return fmt.Errorf("%s | %w", "Ids", err) + } + + case "min_score": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "MinScore", err) + } + f := float32(value) + s.MinScore = &f + case float64: + f := float32(v) + s.MinScore = &f + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + + case "rank_window_size": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "RankWindowSize", err) + } + s.RankWindowSize = &value + case float64: + f := int(v) + s.RankWindowSize = &f + } + + case "retriever": + if err := dec.Decode(&s.Retriever); err != nil { + return fmt.Errorf("%s | %w", "Retriever", err) + } + + } + } + return nil +} + +// NewPinnedRetriever returns a PinnedRetriever. +func NewPinnedRetriever() *PinnedRetriever { + r := &PinnedRetriever{} + + return r +} + +type PinnedRetrieverVariant interface { + PinnedRetrieverCaster() *PinnedRetriever +} + +func (s *PinnedRetriever) PinnedRetrieverCaster() *PinnedRetriever { + return s +} diff --git a/typedapi/types/pipelineconfig.go b/typedapi/types/pipelineconfig.go index b1253da0ba..ef16e550f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PipelineConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Pipeline.ts#L67-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Pipeline.ts#L67-L81 type PipelineConfig struct { // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` @@ -90,5 +90,3 @@ func NewPipelineConfig() *PipelineConfig { return r } - -// false diff --git a/typedapi/types/pipelinemetadata.go b/typedapi/types/pipelinemetadata.go index d75375f4cc..037e4283f5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PipelineMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/logstash/_types/Pipeline.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/logstash/_types/Pipeline.ts#L23-L26 type PipelineMetadata struct { Type string `json:"type"` Version string `json:"version"` @@ -88,8 +88,6 @@ func NewPipelineMetadata() *PipelineMetadata { return r } -// true - type PipelineMetadataVariant interface { PipelineMetadataCaster() *PipelineMetadata } diff --git a/typedapi/types/pipelineprocessor.go b/typedapi/types/pipelineprocessor.go index db02a1fc5b..84b3a42c1f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PipelineProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1285-L1296 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1285-L1296 type PipelineProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -146,8 +146,6 @@ func NewPipelineProcessor() *PipelineProcessor { return r } -// true - type PipelineProcessorVariant interface { PipelineProcessorCaster() *PipelineProcessor } diff --git a/typedapi/types/pipelinesimulation.go b/typedapi/types/pipelineprocessorresult.go similarity index 63% rename from typedapi/types/pipelinesimulation.go rename to typedapi/types/pipelineprocessorresult.go index ded5afd6db..29441cc82e 100644 --- a/typedapi/types/pipelinesimulation.go +++ b/typedapi/types/pipelineprocessorresult.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,23 +28,23 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionstatusoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pipelinesimulationstatusoptions" ) -// PipelineSimulation type. +// PipelineProcessorResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L52-L60 -type PipelineSimulation struct { - Description *string `json:"description,omitempty"` - Doc *DocumentSimulation `json:"doc,omitempty"` - Error *ErrorCause `json:"error,omitempty"` - IgnoredError *ErrorCause `json:"ignored_error,omitempty"` - ProcessorType *string `json:"processor_type,omitempty"` - Status *actionstatusoptions.ActionStatusOptions `json:"status,omitempty"` - Tag *string `json:"tag,omitempty"` +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L59-L67 +type PipelineProcessorResult struct { + Description *string `json:"description,omitempty"` + Doc *DocumentSimulation `json:"doc,omitempty"` + Error *ErrorCause `json:"error,omitempty"` + IgnoredError *ErrorCause `json:"ignored_error,omitempty"` + ProcessorType *string `json:"processor_type,omitempty"` + Status *pipelinesimulationstatusoptions.PipelineSimulationStatusOptions `json:"status,omitempty"` + Tag *string `json:"tag,omitempty"` } -func (s *PipelineSimulation) UnmarshalJSON(data []byte) error { +func (s *PipelineProcessorResult) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -120,11 +120,9 @@ func (s *PipelineSimulation) UnmarshalJSON(data []byte) error { return nil } -// NewPipelineSimulation returns a PipelineSimulation. -func NewPipelineSimulation() *PipelineSimulation { - r := &PipelineSimulation{} +// NewPipelineProcessorResult returns a PipelineProcessorResult. +func NewPipelineProcessorResult() *PipelineProcessorResult { + r := &PipelineProcessorResult{} return r } - -// false diff --git a/typedapi/types/pipelinesettings.go b/typedapi/types/pipelinesettings.go index 317990f1ce..f9ac954ff5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PipelineSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/logstash/_types/Pipeline.ts#L28-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -166,8 +166,6 @@ func NewPipelineSettings() *PipelineSettings { return r } -// true - type PipelineSettingsVariant interface { PipelineSettingsCaster() *PipelineSettings } diff --git a/typedapi/types/pipeseparatedflagssimplequerystringflag.go b/typedapi/types/pipeseparatedflagssimplequerystringflag.go index 0fa08160ef..87c8681005 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // simplequerystringflag.SimpleQueryStringFlag // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 dff5856d2a..d9a6126d78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Pivot type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L54-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -48,8 +48,6 @@ func NewPivot() *Pivot { return r } -// true - type PivotVariant interface { PivotCaster() *Pivot } diff --git a/typedapi/types/pivotgroupbycontainer.go b/typedapi/types/pivotgroupbycontainer.go index f18d042d5c..ef7d370918 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // PivotGroupByContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L70-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/_types/Transform.ts#L70-L78 type PivotGroupByContainer struct { AdditionalPivotGroupByContainerProperty map[string]json.RawMessage `json:"-"` DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"` @@ -74,8 +74,6 @@ func NewPivotGroupByContainer() *PivotGroupByContainer { return r } -// true - type PivotGroupByContainerVariant interface { PivotGroupByContainerCaster() *PivotGroupByContainer } diff --git a/typedapi/types/pluginsrecord.go b/typedapi/types/pluginsrecord.go index f8d8d4e5e7..376ddc62a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PluginsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/plugins/types.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/plugins/types.ts#L22-L52 type PluginsRecord struct { // Component The component name. Component *string `json:"component,omitempty"` @@ -124,5 +124,3 @@ func NewPluginsRecord() *PluginsRecord { return r } - -// false diff --git a/typedapi/types/pluginsstatus.go b/typedapi/types/pluginsstatus.go index 2ac3b4c5e0..9e8730e6e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // PluginsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 type PluginsStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } @@ -37,5 +37,3 @@ func NewPluginsStatus() *PluginsStatus { return r } - -// false diff --git a/typedapi/types/pluginstats.go b/typedapi/types/pluginstats.go index bc24ba35b7..4f4bc2cbfb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PluginStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L183-L193 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L205-L215 type PluginStats struct { Classname string `json:"classname"` Description string `json:"description"` @@ -147,5 +147,3 @@ func NewPluginStats() *PluginStats { return r } - -// false diff --git a/typedapi/types/pointintimereference.go b/typedapi/types/pointintimereference.go index f386bb2f5e..72b762e5e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PointInTimeReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 type PointInTimeReference struct { Id string `json:"id"` KeepAlive Duration `json:"keep_alive,omitempty"` @@ -73,8 +73,6 @@ func NewPointInTimeReference() *PointInTimeReference { return r } -// true - type PointInTimeReferenceVariant interface { PointInTimeReferenceCaster() *PointInTimeReference } diff --git a/typedapi/types/pointproperty.go b/typedapi/types/pointproperty.go index 41f8d8edb4..1b7025e200 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // PointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L74-L79 type PointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -244,6 +244,12 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -639,6 +645,12 @@ func (s *PointProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -892,8 +904,6 @@ func NewPointProperty() *PointProperty { return r } -// true - type PointPropertyVariant interface { PointPropertyCaster() *PointProperty } @@ -901,3 +911,8 @@ type PointPropertyVariant interface { func (s *PointProperty) PointPropertyCaster() *PointProperty { return s } + +func (s *PointProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/pool.go b/typedapi/types/pool.go index 2cb36d9e12..60f9d4edfd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Pool type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L949-L966 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L956-L973 type Pool struct { // MaxInBytes Maximum amount of memory, in bytes, available for use by the heap. MaxInBytes *int64 `json:"max_in_bytes,omitempty"` @@ -129,5 +129,3 @@ func NewPool() *Pool { return r } - -// false diff --git a/typedapi/types/porterstemtokenfilter.go b/typedapi/types/porterstemtokenfilter.go index bb4ba40bbb..65c3987928 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // PorterStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L393-L395 type PorterStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewPorterStemTokenFilter() *PorterStemTokenFilter { return r } -// true - type PorterStemTokenFilterVariant interface { PorterStemTokenFilterCaster() *PorterStemTokenFilter } @@ -95,3 +93,8 @@ type PorterStemTokenFilterVariant interface { func (s *PorterStemTokenFilter) PorterStemTokenFilterCaster() *PorterStemTokenFilter { return s } + +func (s *PorterStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/portugueseanalyzer.go b/typedapi/types/portugueseanalyzer.go index ac17441c09..4951ec24bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // PortugueseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L261-L266 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L261-L266 type PortugueseAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *PortugueseAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *PortugueseAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewPortugueseAnalyzer() *PortugueseAnalyzer { return r } -// true - type PortugueseAnalyzerVariant interface { PortugueseAnalyzerCaster() *PortugueseAnalyzer } @@ -128,3 +115,8 @@ type PortugueseAnalyzerVariant interface { func (s *PortugueseAnalyzer) PortugueseAnalyzerCaster() *PortugueseAnalyzer { return s } + +func (s *PortugueseAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/postmigrationfeature.go b/typedapi/types/postmigrationfeature.go index 8cec6739ae..4ec3b53929 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PostMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 type PostMigrationFeature struct { FeatureName string `json:"feature_name"` } @@ -74,5 +74,3 @@ func NewPostMigrationFeature() *PostMigrationFeature { return r } - -// false diff --git a/typedapi/types/predicatetokenfilter.go b/typedapi/types/predicatetokenfilter.go index 9048dd6830..2ff9d5718a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,8 +30,10 @@ import ( // PredicateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L397-L401 type PredicateTokenFilter struct { + // Script Script containing a condition used to filter incoming tokens. Only tokens + // that match this script are included in the output. Script Script `json:"script"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -93,8 +95,6 @@ func NewPredicateTokenFilter() *PredicateTokenFilter { return r } -// true - type PredicateTokenFilterVariant interface { PredicateTokenFilterCaster() *PredicateTokenFilter } @@ -102,3 +102,8 @@ type PredicateTokenFilterVariant interface { func (s *PredicateTokenFilter) PredicateTokenFilterCaster() *PredicateTokenFilter { return s } + +func (s *PredicateTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/predictedvalue.go b/typedapi/types/predictedvalue.go index a9e673fe47..257cfba6b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // PredictedValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L476-L476 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L476-L476 type PredictedValue []ScalarValue diff --git a/typedapi/types/prefixquery.go b/typedapi/types/prefixquery.go index 3a36ae5894..a68c6a53f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L98-L120 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -149,8 +149,6 @@ func NewPrefixQuery() *PrefixQuery { return r } -// true - type PrefixQueryVariant interface { PrefixQueryCaster() *PrefixQuery } diff --git a/typedapi/types/preprocessor.go b/typedapi/types/preprocessor.go index 08d3868b4b..c2d87439fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // Preprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L31-L36 type Preprocessor struct { AdditionalPreprocessorProperty map[string]json.RawMessage `json:"-"` FrequencyEncoding *FrequencyEncodingPreprocessor `json:"frequency_encoding,omitempty"` @@ -73,8 +73,6 @@ func NewPreprocessor() *Preprocessor { return r } -// true - type PreprocessorVariant interface { PreprocessorCaster() *Preprocessor } diff --git a/typedapi/types/pressurememory.go b/typedapi/types/pressurememory.go index 9392c4c184..e3851ea093 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L144-L199 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L144-L201 type PressureMemory struct { // All Memory consumed by indexing requests in the coordinating, primary, or replica // stage. @@ -53,9 +53,11 @@ type PressureMemory struct { // CoordinatingInBytes Memory consumed, in bytes, by indexing requests in the coordinating stage. CoordinatingInBytes *int64 `json:"coordinating_in_bytes,omitempty"` // CoordinatingRejections Number of indexing requests rejected in the coordinating stage. - CoordinatingRejections *int64 `json:"coordinating_rejections,omitempty"` + CoordinatingRejections *int64 `json:"coordinating_rejections,omitempty"` + LargeOperationRejections *int64 `json:"large_operation_rejections,omitempty"` // Primary Memory consumed by indexing requests in the primary stage. - Primary ByteSize `json:"primary,omitempty"` + Primary ByteSize `json:"primary,omitempty"` + PrimaryDocumentRejections *int64 `json:"primary_document_rejections,omitempty"` // PrimaryInBytes Memory consumed, in bytes, by indexing requests in the primary stage. PrimaryInBytes *int64 `json:"primary_in_bytes,omitempty"` // PrimaryRejections Number of indexing requests rejected in the primary stage. @@ -158,11 +160,41 @@ func (s *PressureMemory) UnmarshalJSON(data []byte) error { s.CoordinatingRejections = &f } + case "large_operation_rejections": + 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", "LargeOperationRejections", err) + } + s.LargeOperationRejections = &value + case float64: + f := int64(v) + s.LargeOperationRejections = &f + } + case "primary": if err := dec.Decode(&s.Primary); err != nil { return fmt.Errorf("%s | %w", "Primary", err) } + case "primary_document_rejections": + 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", "PrimaryDocumentRejections", err) + } + s.PrimaryDocumentRejections = &value + case float64: + f := int64(v) + s.PrimaryDocumentRejections = &f + } + case "primary_in_bytes": var tmp any dec.Decode(&tmp) @@ -239,5 +271,3 @@ func NewPressureMemory() *PressureMemory { return r } - -// false diff --git a/typedapi/types/privileges.go b/typedapi/types/privileges.go index 5dfb5bae1a..3107065279 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Privileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/types.ts#L49-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 e48ab9aa04..283d8725e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PrivilegesActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/put_privileges/types.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/put_privileges/types.ts#L22-L27 type PrivilegesActions struct { Actions []string `json:"actions"` Application *string `json:"application,omitempty"` @@ -93,8 +93,6 @@ func NewPrivilegesActions() *PrivilegesActions { return r } -// true - type PrivilegesActionsVariant interface { PrivilegesActionsCaster() *PrivilegesActions } diff --git a/typedapi/types/privilegescheck.go b/typedapi/types/privilegescheck.go index a49665364f..15404e398d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // PrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges_user_profile/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -41,8 +41,6 @@ func NewPrivilegesCheck() *PrivilegesCheck { return r } -// true - type PrivilegesCheckVariant interface { PrivilegesCheckCaster() *PrivilegesCheck } diff --git a/typedapi/types/process.go b/typedapi/types/process.go index 3b9f7e4976..f6182cc377 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Process type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1024-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1031-L1053 type Process struct { // Cpu Contains CPU statistics for the node. Cpu *Cpu `json:"cpu,omitempty"` @@ -131,5 +131,3 @@ func NewProcess() *Process { return r } - -// false diff --git a/typedapi/types/processor.go b/typedapi/types/processor.go index fc4102b435..2fd262a34c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Processor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L420-L437 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L422-L439 type Processor struct { // Count Number of documents transformed by the processor. Count *int64 `json:"count,omitempty"` @@ -119,5 +119,3 @@ func NewProcessor() *Processor { return r } - -// false diff --git a/typedapi/types/processorcontainer.go b/typedapi/types/processorcontainer.go index b759aaf851..a334f6ef16 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // ProcessorContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L28-L302 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L28-L302 type ProcessorContainer struct { AdditionalProcessorContainerProperty map[string]json.RawMessage `json:"-"` // Append Appends one or more values to an existing array if the field already exists @@ -255,8 +255,6 @@ func NewProcessorContainer() *ProcessorContainer { return r } -// true - type ProcessorContainerVariant interface { ProcessorContainerCaster() *ProcessorContainer } diff --git a/typedapi/types/profile.go b/typedapi/types/profile.go index 4503a05bd8..6b67807e25 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Profile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L101-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L101-L103 type Profile struct { Shards []ShardProfile `json:"shards"` } @@ -33,5 +33,3 @@ func NewProfile() *Profile { return r } - -// false diff --git a/typedapi/types/property.go b/typedapi/types/property.go index 4fbb44e25f..a427511a0f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -43,6 +43,7 @@ package types // NestedProperty // ObjectProperty // PassthroughObjectProperty +// RankVectorProperty // SemanticTextProperty // SparseVectorProperty // CompletionProperty @@ -74,7 +75,7 @@ package types // LongRangeProperty // IcuCollationProperty // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/Property.ts#L119-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/Property.ts#L120-L191 type Property any type PropertyVariant interface { diff --git a/typedapi/types/publishedclusterstates.go b/typedapi/types/publishedclusterstates.go index 878036198b..50bd10be96 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // PublishedClusterStates type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L263-L276 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L265-L278 type PublishedClusterStates struct { // CompatibleDiffs Number of compatible differences between published cluster states. CompatibleDiffs *int64 `json:"compatible_diffs,omitempty"` @@ -112,5 +112,3 @@ func NewPublishedClusterStates() *PublishedClusterStates { return r } - -// false diff --git a/typedapi/types/queries.go b/typedapi/types/queries.go index e647459730..4f058c7816 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Queries type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L417-L419 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L419-L421 type Queries struct { Cache *CacheQueries `json:"cache,omitempty"` } @@ -34,8 +34,6 @@ func NewQueries() *Queries { return r } -// true - type QueriesVariant interface { QueriesCaster() *Queries } diff --git a/typedapi/types/query.go b/typedapi/types/query.go index 01e9e0706c..1f6fd2a367 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Query type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L103-L434 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -668,8 +668,6 @@ func NewQuery() *Query { return r } -// true - type QueryVariant interface { QueryCaster() *Query } @@ -677,3 +675,13 @@ type QueryVariant interface { func (s *Query) QueryCaster() *Query { return s } + +func (s *Query) IndicesPrivilegesQueryCaster() *IndicesPrivilegesQuery { + o := IndicesPrivilegesQuery(s) + return &o +} + +func (s *Query) RoleTemplateInlineQueryCaster() *RoleTemplateInlineQuery { + o := RoleTemplateInlineQuery(s) + return &o +} diff --git a/typedapi/types/querybreakdown.go b/typedapi/types/querybreakdown.go index 03e535a9b4..1b987aeb6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L105-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L105-L126 type QueryBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` @@ -381,5 +381,3 @@ func NewQueryBreakdown() *QueryBreakdown { return r } - -// false diff --git a/typedapi/types/querycachestats.go b/typedapi/types/querycachestats.go index 6279100017..88ac200b70 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L195-L229 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L217-L251 type QueryCacheStats struct { // CacheCount Total number of entries added to the query cache across all shards assigned // to selected nodes. @@ -195,5 +195,3 @@ func NewQueryCacheStats() *QueryCacheStats { return r } - -// false diff --git a/typedapi/types/queryfeatureextractor.go b/typedapi/types/queryfeatureextractor.go index 4c4d4d4154..60b8ad3ae1 100644 --- a/typedapi/types/queryfeatureextractor.go +++ b/typedapi/types/queryfeatureextractor.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryFeatureExtractor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L98-L105 type QueryFeatureExtractor struct { DefaultScore *float32 `json:"default_score,omitempty"` FeatureName string `json:"feature_name"` @@ -98,8 +98,6 @@ func NewQueryFeatureExtractor() *QueryFeatureExtractor { return r } -// true - type QueryFeatureExtractorVariant interface { QueryFeatureExtractorCaster() *QueryFeatureExtractor } diff --git a/typedapi/types/queryprofile.go b/typedapi/types/queryprofile.go index b175528fcc..b3610b359b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L128-L134 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L128-L134 type QueryProfile struct { Breakdown QueryBreakdown `json:"breakdown"` Children []QueryProfile `json:"children,omitempty"` @@ -105,5 +105,3 @@ func NewQueryProfile() *QueryProfile { return r } - -// false diff --git a/typedapi/types/queryrole.go b/typedapi/types/queryrole.go index e5397d1a3d..3302b1caba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // QueryRole type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_role/types.ts#L103-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/query_role/types.ts#L103-L109 type QueryRole struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` @@ -190,5 +190,3 @@ func NewQueryRole() *QueryRole { return r } - -// false diff --git a/typedapi/types/queryrule.go b/typedapi/types/queryrule.go index b265c2f11a..2683abb7ce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // QueryRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/_types/QueryRuleset.ts#L36-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -126,8 +126,6 @@ func NewQueryRule() *QueryRule { return r } -// true - type QueryRuleVariant interface { QueryRuleCaster() *QueryRule } diff --git a/typedapi/types/queryruleactions.go b/typedapi/types/queryruleactions.go index 7b01bbcf05..39eea00ade 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // QueryRuleActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/_types/QueryRuleset.ts#L110-L126 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -46,8 +46,6 @@ func NewQueryRuleActions() *QueryRuleActions { return r } -// true - type QueryRuleActionsVariant interface { QueryRuleActionsCaster() *QueryRuleActions } diff --git a/typedapi/types/queryrulecriteria.go b/typedapi/types/queryrulecriteria.go index 32e6125e37..04074c9440 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // QueryRuleCriteria type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/_types/QueryRuleset.ts#L65-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -118,8 +118,6 @@ func NewQueryRuleCriteria() *QueryRuleCriteria { return r } -// true - type QueryRuleCriteriaVariant interface { QueryRuleCriteriaCaster() *QueryRuleCriteria } diff --git a/typedapi/types/queryrulesetlistitem.go b/typedapi/types/queryrulesetlistitem.go index 66376aaa25..e204036553 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryRulesetListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/list_rulesets/types.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -114,5 +114,3 @@ func NewQueryRulesetListItem() *QueryRulesetListItem { return r } - -// false diff --git a/typedapi/types/queryrulesetmatchedrule.go b/typedapi/types/queryrulesetmatchedrule.go index 28c4be06cc..712840800e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // QueryRulesetMatchedRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 type QueryRulesetMatchedRule struct { // RuleId Rule unique identifier within that ruleset RuleId string `json:"rule_id"` @@ -74,5 +74,3 @@ func NewQueryRulesetMatchedRule() *QueryRulesetMatchedRule { return r } - -// false diff --git a/typedapi/types/querystringquery.go b/typedapi/types/querystringquery.go index d3e785bdd1..f3492374e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // QueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L598-L721 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L649-L772 type QueryStringQuery struct { // AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first // character of the query string. @@ -434,8 +434,6 @@ func NewQueryStringQuery() *QueryStringQuery { return r } -// true - type QueryStringQueryVariant interface { QueryStringQueryCaster() *QueryStringQuery } diff --git a/typedapi/types/queryuser.go b/typedapi/types/queryuser.go index ff6e0a65e4..ae6a0baa31 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_user/types.ts#L103-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/query_user/types.ts#L103-L105 type QueryUser struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` @@ -125,5 +125,3 @@ func NewQueryUser() *QueryUser { return r } - -// false diff --git a/typedapi/types/queryvectorbuilder.go b/typedapi/types/queryvectorbuilder.go index 4da88a0bd6..a49c974840 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // QueryVectorBuilder type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Knn.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Knn.ts#L89-L92 type QueryVectorBuilder struct { AdditionalQueryVectorBuilderProperty map[string]json.RawMessage `json:"-"` TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"` @@ -71,8 +71,6 @@ func NewQueryVectorBuilder() *QueryVectorBuilder { return r } -// true - type QueryVectorBuilderVariant interface { QueryVectorBuilderCaster() *QueryVectorBuilder } diff --git a/typedapi/types/querywatch.go b/typedapi/types/querywatch.go index 7fd19dcb15..994359660a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QueryWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Watch.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Watch.ts#L58-L64 type QueryWatch struct { Id_ string `json:"_id"` PrimaryTerm_ *int `json:"_primary_term,omitempty"` @@ -102,5 +102,3 @@ func NewQueryWatch() *QueryWatch { return r } - -// false diff --git a/typedapi/types/questionansweringinferenceoptions.go b/typedapi/types/questionansweringinferenceoptions.go index 0007a2ba25..ee1a9754c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L301-L311 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L301-L311 type QuestionAnsweringInferenceOptions struct { // MaxAnswerLength The maximum answer length to consider MaxAnswerLength *int `json:"max_answer_length,omitempty"` @@ -120,8 +120,6 @@ func NewQuestionAnsweringInferenceOptions() *QuestionAnsweringInferenceOptions { return r } -// true - type QuestionAnsweringInferenceOptionsVariant interface { QuestionAnsweringInferenceOptionsCaster() *QuestionAnsweringInferenceOptions } diff --git a/typedapi/types/questionansweringinferenceupdateoptions.go b/typedapi/types/questionansweringinferenceupdateoptions.go index 3a4f628886..e82702c733 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L439-L450 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -134,8 +134,6 @@ func NewQuestionAnsweringInferenceUpdateOptions() *QuestionAnsweringInferenceUpd return r } -// true - type QuestionAnsweringInferenceUpdateOptionsVariant interface { QuestionAnsweringInferenceUpdateOptionsCaster() *QuestionAnsweringInferenceUpdateOptions } diff --git a/typedapi/types/randomsampleraggregation.go b/typedapi/types/randomsampleraggregation.go index 488f3e2483..ea9377c6b1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RandomSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L749-L769 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -121,8 +121,6 @@ func NewRandomSamplerAggregation() *RandomSamplerAggregation { return r } -// true - type RandomSamplerAggregationVariant interface { RandomSamplerAggregationCaster() *RandomSamplerAggregation } diff --git a/typedapi/types/randomscorefunction.go b/typedapi/types/randomscorefunction.go index d43492fecd..02f02d91e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,10 @@ import ( // RandomScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L144-L147 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/compound.ts#L144-L147 type RandomScoreFunction struct { Field *string `json:"field,omitempty"` - Seed string `json:"seed,omitempty"` + Seed *string `json:"seed,omitempty"` } func (s *RandomScoreFunction) UnmarshalJSON(data []byte) error { @@ -67,7 +67,7 @@ func (s *RandomScoreFunction) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Seed = o + s.Seed = &o } } @@ -81,8 +81,6 @@ func NewRandomScoreFunction() *RandomScoreFunction { return r } -// true - type RandomScoreFunctionVariant interface { RandomScoreFunctionCaster() *RandomScoreFunction } diff --git a/typedapi/types/rangeaggregate.go b/typedapi/types/rangeaggregate.go index b712fe5925..93e2b2d53e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L594-L598 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L594-L598 type RangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewRangeAggregate() *RangeAggregate { return r } - -// false diff --git a/typedapi/types/rangeaggregation.go b/typedapi/types/rangeaggregation.go index dd8209e347..de297d751e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L669-L689 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -131,8 +131,6 @@ func NewRangeAggregation() *RangeAggregation { return r } -// true - type RangeAggregationVariant interface { RangeAggregationCaster() *RangeAggregation } diff --git a/typedapi/types/rangebucket.go b/typedapi/types/rangebucket.go index 0dd5cc7d09..2523cc8003 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // RangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L600-L607 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L600-L607 type RangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -704,5 +704,3 @@ func NewRangeBucket() *RangeBucket { return r } - -// false diff --git a/typedapi/types/rangequery.go b/typedapi/types/rangequery.go index e89bb33f87..9be3bbf154 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ package types // NumberRangeQuery // TermRangeQuery // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L176-L186 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L172-L182 type RangeQuery any type RangeQueryVariant interface { diff --git a/typedapi/types/rankcontainer.go b/typedapi/types/rankcontainer.go index 16dba50647..a930cab40b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // RankContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Rank.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Rank.ts#L22-L28 type RankContainer struct { AdditionalRankContainerProperty map[string]json.RawMessage `json:"-"` // Rrf The reciprocal rank fusion parameters @@ -72,8 +72,6 @@ func NewRankContainer() *RankContainer { return r } -// true - type RankContainerVariant interface { RankContainerCaster() *RankContainer } diff --git a/typedapi/types/rankeddocument.go b/typedapi/types/rankeddocument.go index b56c94b426..8a0ec27577 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L91-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Results.ts#L91-L101 type RankedDocument struct { Index int `json:"index"` RelevanceScore float32 `json:"relevance_score"` @@ -108,5 +108,3 @@ func NewRankedDocument() *RankedDocument { return r } - -// false diff --git a/typedapi/types/rankevalhit.go b/typedapi/types/rankevalhit.go index e1b7eb9e3f..3a2eb4a9d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L144-L148 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L144-L148 type RankEvalHit struct { Id_ string `json:"_id"` Index_ string `json:"_index"` @@ -90,5 +90,3 @@ func NewRankEvalHit() *RankEvalHit { return r } - -// false diff --git a/typedapi/types/rankevalhititem.go b/typedapi/types/rankevalhititem.go index c1eea12717..a37ca60c33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RankEvalHitItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L139-L142 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L139-L142 type RankEvalHitItem struct { Hit RankEvalHit `json:"hit"` Rating *Float64 `json:"rating,omitempty"` @@ -72,5 +72,3 @@ func NewRankEvalHitItem() *RankEvalHitItem { return r } - -// false diff --git a/typedapi/types/rankevalmetric.go b/typedapi/types/rankevalmetric.go index 125d3c834b..0716c98d5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RankEvalMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L90-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L90-L96 type RankEvalMetric struct { Dcg *RankEvalMetricDiscountedCumulativeGain `json:"dcg,omitempty"` ExpectedReciprocalRank *RankEvalMetricExpectedReciprocalRank `json:"expected_reciprocal_rank,omitempty"` @@ -38,8 +38,6 @@ func NewRankEvalMetric() *RankEvalMetric { return r } -// true - type RankEvalMetricVariant interface { RankEvalMetricCaster() *RankEvalMetric } diff --git a/typedapi/types/rankevalmetricdetail.go b/typedapi/types/rankevalmetricdetail.go index 24b931f46f..29e668c47a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L128-L137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -111,5 +111,3 @@ func NewRankEvalMetricDetail() *RankEvalMetricDetail { return r } - -// false diff --git a/typedapi/types/rankevalmetricdiscountedcumulativegain.go b/typedapi/types/rankevalmetricdiscountedcumulativegain.go index d9f270cc0a..e0725e0aac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDiscountedCumulativeGain type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L66-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -97,8 +97,6 @@ func NewRankEvalMetricDiscountedCumulativeGain() *RankEvalMetricDiscountedCumula return r } -// true - type RankEvalMetricDiscountedCumulativeGainVariant interface { RankEvalMetricDiscountedCumulativeGainCaster() *RankEvalMetricDiscountedCumulativeGain } diff --git a/typedapi/types/rankevalmetricexpectedreciprocalrank.go b/typedapi/types/rankevalmetricexpectedreciprocalrank.go index 69866fbfa0..16fae2b2aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricExpectedReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L79-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -99,8 +99,6 @@ func NewRankEvalMetricExpectedReciprocalRank() *RankEvalMetricExpectedReciprocal return r } -// true - type RankEvalMetricExpectedReciprocalRankVariant interface { RankEvalMetricExpectedReciprocalRankCaster() *RankEvalMetricExpectedReciprocalRank } diff --git a/typedapi/types/rankevalmetricmeanreciprocalrank.go b/typedapi/types/rankevalmetricmeanreciprocalrank.go index af3eb67d4c..64ad465c6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricMeanReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -100,8 +100,6 @@ func NewRankEvalMetricMeanReciprocalRank() *RankEvalMetricMeanReciprocalRank { return r } -// true - type RankEvalMetricMeanReciprocalRankVariant interface { RankEvalMetricMeanReciprocalRankCaster() *RankEvalMetricMeanReciprocalRank } diff --git a/typedapi/types/rankevalmetricprecision.go b/typedapi/types/rankevalmetricprecision.go index 6a05dd9f97..6c476d9198 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L42-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -118,8 +118,6 @@ func NewRankEvalMetricPrecision() *RankEvalMetricPrecision { return r } -// true - type RankEvalMetricPrecisionVariant interface { RankEvalMetricPrecisionCaster() *RankEvalMetricPrecision } diff --git a/typedapi/types/rankevalmetricrecall.go b/typedapi/types/rankevalmetricrecall.go index fb5d9257ba..b177189f65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L54-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -100,8 +100,6 @@ func NewRankEvalMetricRecall() *RankEvalMetricRecall { return r } -// true - type RankEvalMetricRecallVariant interface { RankEvalMetricRecallCaster() *RankEvalMetricRecall } diff --git a/typedapi/types/rankevalquery.go b/typedapi/types/rankevalquery.go index 7f0dead6cb..6a555de396 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankEvalQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L111-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L111-L117 type RankEvalQuery struct { Query Query `json:"query"` Size *int `json:"size,omitempty"` @@ -90,8 +90,6 @@ func NewRankEvalQuery() *RankEvalQuery { return r } -// true - type RankEvalQueryVariant interface { RankEvalQueryCaster() *RankEvalQuery } diff --git a/typedapi/types/rankevalrequestitem.go b/typedapi/types/rankevalrequestitem.go index 3af83c12d6..c3144b6797 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RankEvalRequestItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L98-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -101,8 +101,6 @@ func NewRankEvalRequestItem() *RankEvalRequestItem { return r } -// true - type RankEvalRequestItemVariant interface { RankEvalRequestItemCaster() *RankEvalRequestItem } diff --git a/typedapi/types/rankfeaturefunctionlinear.go b/typedapi/types/rankfeaturefunctionlinear.go index 36488412ac..015dd3a890 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RankFeatureFunctionLinear type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L282-L282 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L282-L282 type RankFeatureFunctionLinear struct { } @@ -33,8 +33,6 @@ func NewRankFeatureFunctionLinear() *RankFeatureFunctionLinear { return r } -// true - type RankFeatureFunctionLinearVariant interface { RankFeatureFunctionLinearCaster() *RankFeatureFunctionLinear } diff --git a/typedapi/types/rankfeaturefunctionlogarithm.go b/typedapi/types/rankfeaturefunctionlogarithm.go index 7dc16fb5f5..a00eea9c8f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionLogarithm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L284-L289 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L284-L289 type RankFeatureFunctionLogarithm struct { // ScalingFactor Configurable scaling factor. ScalingFactor float32 `json:"scaling_factor"` @@ -80,8 +80,6 @@ func NewRankFeatureFunctionLogarithm() *RankFeatureFunctionLogarithm { return r } -// true - type RankFeatureFunctionLogarithmVariant interface { RankFeatureFunctionLogarithmCaster() *RankFeatureFunctionLogarithm } diff --git a/typedapi/types/rankfeaturefunctionsaturation.go b/typedapi/types/rankfeaturefunctionsaturation.go index 45739f2626..138a0cde7f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSaturation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L291-L296 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -80,8 +80,6 @@ func NewRankFeatureFunctionSaturation() *RankFeatureFunctionSaturation { return r } -// true - type RankFeatureFunctionSaturationVariant interface { RankFeatureFunctionSaturationCaster() *RankFeatureFunctionSaturation } diff --git a/typedapi/types/rankfeaturefunctionsigmoid.go b/typedapi/types/rankfeaturefunctionsigmoid.go index 8bdd9d167c..34ce4c0a7b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSigmoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L298-L307 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L298-L307 type RankFeatureFunctionSigmoid struct { // Exponent Configurable Exponent. Exponent float32 `json:"exponent"` @@ -98,8 +98,6 @@ func NewRankFeatureFunctionSigmoid() *RankFeatureFunctionSigmoid { return r } -// true - type RankFeatureFunctionSigmoidVariant interface { RankFeatureFunctionSigmoidCaster() *RankFeatureFunctionSigmoid } diff --git a/typedapi/types/rankfeatureproperty.go b/typedapi/types/rankfeatureproperty.go index 91ca1b57d9..798e71c1f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // RankFeatureProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L205-L208 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L205-L208 type RankFeatureProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -578,6 +584,12 @@ func (s *RankFeatureProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -812,8 +824,6 @@ func NewRankFeatureProperty() *RankFeatureProperty { return r } -// true - type RankFeaturePropertyVariant interface { RankFeaturePropertyCaster() *RankFeatureProperty } @@ -821,3 +831,8 @@ type RankFeaturePropertyVariant interface { func (s *RankFeatureProperty) RankFeaturePropertyCaster() *RankFeatureProperty { return s } + +func (s *RankFeatureProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/rankfeaturequery.go b/typedapi/types/rankfeaturequery.go index 0a0859ae3a..2f0d9b5183 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RankFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L309-L335 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -136,8 +136,6 @@ func NewRankFeatureQuery() *RankFeatureQuery { return r } -// true - type RankFeatureQueryVariant interface { RankFeatureQueryCaster() *RankFeatureQuery } diff --git a/typedapi/types/rankfeaturesproperty.go b/typedapi/types/rankfeaturesproperty.go index 161a1df30f..f07b2f9dc1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // RankFeaturesProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L210-L213 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L210-L213 type RankFeaturesProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -209,6 +209,12 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -578,6 +584,12 @@ func (s *RankFeaturesProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -812,8 +824,6 @@ func NewRankFeaturesProperty() *RankFeaturesProperty { return r } -// true - type RankFeaturesPropertyVariant interface { RankFeaturesPropertyCaster() *RankFeaturesProperty } @@ -821,3 +831,8 @@ type RankFeaturesPropertyVariant interface { func (s *RankFeaturesProperty) RankFeaturesPropertyCaster() *RankFeaturesProperty { return s } + +func (s *RankFeaturesProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/rankvectorproperty.go b/typedapi/types/rankvectorproperty.go new file mode 100644 index 0000000000..2ffb449982 --- /dev/null +++ b/typedapi/types/rankvectorproperty.go @@ -0,0 +1,848 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rankvectorelementtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" +) + +// RankVectorProperty type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L215-L222 +type RankVectorProperty struct { + Dims *int `json:"dims,omitempty"` + Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` + ElementType *rankvectorelementtype.RankVectorElementType `json:"element_type,omitempty"` + Fields map[string]Property `json:"fields,omitempty"` + IgnoreAbove *int `json:"ignore_above,omitempty"` + // Meta Metadata about the field. + Meta map[string]string `json:"meta,omitempty"` + Properties map[string]Property `json:"properties,omitempty"` + SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` + Type string `json:"type,omitempty"` +} + +func (s *RankVectorProperty) 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 "dims": + + 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", "Dims", err) + } + s.Dims = &value + case float64: + f := int(v) + s.Dims = &f + } + + case "dynamic": + if err := dec.Decode(&s.Dynamic); err != nil { + return fmt.Errorf("%s | %w", "Dynamic", err) + } + + case "element_type": + if err := dec.Decode(&s.ElementType); err != nil { + return fmt.Errorf("%s | %w", "ElementType", err) + } + + case "fields": + if s.Fields == nil { + s.Fields = make(map[string]Property, 0) + } + refs := make(map[string]json.RawMessage, 0) + dec.Decode(&refs) + for key, message := range refs { + kind := make(map[string]any) + buf := bytes.NewReader(message) + localDec := json.NewDecoder(buf) + localDec.Decode(&kind) + buf.Seek(0, io.SeekStart) + if _, ok := kind["type"]; !ok { + kind["type"] = "object" + } + switch kind["type"] { + case "binary": + oo := NewBinaryProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "boolean": + oo := NewBooleanProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "{dynamic_type}": + oo := NewDynamicProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "join": + oo := NewJoinProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "keyword": + oo := NewKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "match_only_text": + oo := NewMatchOnlyTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "percolator": + oo := NewPercolatorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "rank_feature": + oo := NewRankFeatureProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "rank_features": + oo := NewRankFeaturesProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "search_as_you_type": + oo := NewSearchAsYouTypeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "text": + oo := NewTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "version": + oo := NewVersionProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "wildcard": + oo := NewWildcardProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "date_nanos": + oo := NewDateNanosProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "date": + oo := NewDateProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "aggregate_metric_double": + oo := NewAggregateMetricDoubleProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "dense_vector": + oo := NewDenseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "flattened": + oo := NewFlattenedProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "nested": + oo := NewNestedProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "object": + oo := NewObjectProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "passthrough": + oo := NewPassthroughObjectProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "completion": + oo := NewCompletionProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "constant_keyword": + oo := NewConstantKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "counted_keyword": + oo := NewCountedKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "alias": + oo := NewFieldAliasProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "histogram": + oo := NewHistogramProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "ip": + oo := NewIpProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "murmur3": + oo := NewMurmur3HashProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "token_count": + oo := NewTokenCountProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "geo_point": + oo := NewGeoPointProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "geo_shape": + oo := NewGeoShapeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "point": + oo := NewPointProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "shape": + oo := NewShapeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "byte": + oo := NewByteNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "double": + oo := NewDoubleNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "float": + oo := NewFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "half_float": + oo := NewHalfFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "integer": + oo := NewIntegerNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "long": + oo := NewLongNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "scaled_float": + oo := NewScaledFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "short": + oo := NewShortNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "unsigned_long": + oo := NewUnsignedLongNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "date_range": + oo := NewDateRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "double_range": + oo := NewDoubleRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "float_range": + oo := NewFloatRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "integer_range": + oo := NewIntegerRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "ip_range": + oo := NewIpRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "long_range": + oo := NewLongRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + case "icu_collation_keyword": + oo := NewIcuCollationProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo + default: + oo := new(Property) + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("new(Property) | %w", err) + } + s.Fields[key] = oo + } + } + + case "ignore_above": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "IgnoreAbove", err) + } + s.IgnoreAbove = &value + case float64: + f := int(v) + s.IgnoreAbove = &f + } + + case "meta": + if s.Meta == nil { + s.Meta = make(map[string]string, 0) + } + if err := dec.Decode(&s.Meta); err != nil { + return fmt.Errorf("%s | %w", "Meta", err) + } + + case "properties": + if s.Properties == nil { + s.Properties = make(map[string]Property, 0) + } + refs := make(map[string]json.RawMessage, 0) + dec.Decode(&refs) + for key, message := range refs { + kind := make(map[string]any) + buf := bytes.NewReader(message) + localDec := json.NewDecoder(buf) + localDec.Decode(&kind) + buf.Seek(0, io.SeekStart) + if _, ok := kind["type"]; !ok { + kind["type"] = "object" + } + switch kind["type"] { + case "binary": + oo := NewBinaryProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "boolean": + oo := NewBooleanProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "{dynamic_type}": + oo := NewDynamicProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "join": + oo := NewJoinProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "keyword": + oo := NewKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "match_only_text": + oo := NewMatchOnlyTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "percolator": + oo := NewPercolatorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "rank_feature": + oo := NewRankFeatureProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "rank_features": + oo := NewRankFeaturesProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "search_as_you_type": + oo := NewSearchAsYouTypeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "text": + oo := NewTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "version": + oo := NewVersionProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "wildcard": + oo := NewWildcardProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "date_nanos": + oo := NewDateNanosProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "date": + oo := NewDateProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "aggregate_metric_double": + oo := NewAggregateMetricDoubleProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "dense_vector": + oo := NewDenseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "flattened": + oo := NewFlattenedProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "nested": + oo := NewNestedProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "object": + oo := NewObjectProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "passthrough": + oo := NewPassthroughObjectProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "semantic_text": + oo := NewSemanticTextProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "sparse_vector": + oo := NewSparseVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "completion": + oo := NewCompletionProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "constant_keyword": + oo := NewConstantKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "counted_keyword": + oo := NewCountedKeywordProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "alias": + oo := NewFieldAliasProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "histogram": + oo := NewHistogramProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "ip": + oo := NewIpProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "murmur3": + oo := NewMurmur3HashProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "token_count": + oo := NewTokenCountProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "geo_point": + oo := NewGeoPointProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "geo_shape": + oo := NewGeoShapeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "point": + oo := NewPointProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "shape": + oo := NewShapeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "byte": + oo := NewByteNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "double": + oo := NewDoubleNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "float": + oo := NewFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "half_float": + oo := NewHalfFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "integer": + oo := NewIntegerNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "long": + oo := NewLongNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "scaled_float": + oo := NewScaledFloatNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "short": + oo := NewShortNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "unsigned_long": + oo := NewUnsignedLongNumberProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "date_range": + oo := NewDateRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "double_range": + oo := NewDoubleRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "float_range": + oo := NewFloatRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "integer_range": + oo := NewIntegerRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "ip_range": + oo := NewIpRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "long_range": + oo := NewLongRangeProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + case "icu_collation_keyword": + oo := NewIcuCollationProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo + default: + oo := new(Property) + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("new(Property) | %w", err) + } + s.Properties[key] = oo + } + } + + case "synthetic_source_keep": + if err := dec.Decode(&s.SyntheticSourceKeep); err != nil { + return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) + } + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s RankVectorProperty) MarshalJSON() ([]byte, error) { + type innerRankVectorProperty RankVectorProperty + tmp := innerRankVectorProperty{ + Dims: s.Dims, + Dynamic: s.Dynamic, + ElementType: s.ElementType, + Fields: s.Fields, + IgnoreAbove: s.IgnoreAbove, + Meta: s.Meta, + Properties: s.Properties, + SyntheticSourceKeep: s.SyntheticSourceKeep, + Type: s.Type, + } + + tmp.Type = "rank_vectors" + + return json.Marshal(tmp) +} + +// NewRankVectorProperty returns a RankVectorProperty. +func NewRankVectorProperty() *RankVectorProperty { + r := &RankVectorProperty{ + Fields: make(map[string]Property), + Meta: make(map[string]string), + Properties: make(map[string]Property), + } + + return r +} + +type RankVectorPropertyVariant interface { + RankVectorPropertyCaster() *RankVectorProperty +} + +func (s *RankVectorProperty) RankVectorPropertyCaster() *RankVectorProperty { + return s +} + +func (s *RankVectorProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/raretermsaggregation.go b/typedapi/types/raretermsaggregation.go index f6e9f6fa8f..75c9bb507f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RareTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L706-L739 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L706-L739 type RareTermsAggregation struct { // Exclude Terms that should be excluded from the aggregation. Exclude []string `json:"exclude,omitempty"` @@ -182,8 +182,6 @@ func NewRareTermsAggregation() *RareTermsAggregation { return r } -// true - type RareTermsAggregationVariant interface { RareTermsAggregationCaster() *RareTermsAggregation } diff --git a/typedapi/types/rateaggregate.go b/typedapi/types/rateaggregate.go index 33888ff080..f633ed55c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RateAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L847-L854 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L849-L856 type RateAggregate struct { Meta Metadata `json:"meta,omitempty"` Value Float64 `json:"value"` @@ -97,5 +97,3 @@ func NewRateAggregate() *RateAggregate { return r } - -// false diff --git a/typedapi/types/rateaggregation.go b/typedapi/types/rateaggregation.go index 604edc8bd4..ee99fff07d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // RateAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L239-L250 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L239-L250 type RateAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -114,8 +114,6 @@ func NewRateAggregation() *RateAggregation { return r } -// true - type RateAggregationVariant interface { RateAggregationCaster() *RateAggregation } diff --git a/typedapi/types/ratelimitsetting.go b/typedapi/types/ratelimitsetting.go index aea59d060f..c67aaaa214 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,9 +31,28 @@ import ( // RateLimitSetting type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Services.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Services.ts#L289-L315 type RateLimitSetting struct { // RequestsPerMinute The number of requests allowed per minute. + // By default, the number of requests allowed per minute is set by each service + // as follows: + // + // * `alibabacloud-ai-search` service: `1000` + // * `anthropic` service: `50` + // * `azureaistudio` service: `240` + // * `azureopenai` service and task type `text_embedding`: `1440` + // * `azureopenai` service and task type `completion`: `120` + // * `cohere` service: `10000` + // * `elastic` service and task type `chat_completion`: `240` + // * `googleaistudio` service: `360` + // * `googlevertexai` service: `30000` + // * `hugging_face` service: `3000` + // * `jinaai` service: `2000` + // * `mistral` service: `240` + // * `openai` service and task type `text_embedding`: `3000` + // * `openai` service and task type `completion`: `500` + // * `voyageai` service: `2000` + // * `watsonxai` service: `120` RequestsPerMinute *int `json:"requests_per_minute,omitempty"` } @@ -80,8 +99,6 @@ func NewRateLimitSetting() *RateLimitSetting { return r } -// true - type RateLimitSettingVariant interface { RateLimitSettingCaster() *RateLimitSetting } diff --git a/typedapi/types/readblobdetails.go b/typedapi/types/readblobdetails.go index 582b42c02d..2e52e8cc0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReadBlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -156,5 +156,3 @@ func NewReadBlobDetails() *ReadBlobDetails { return r } - -// false diff --git a/typedapi/types/readexception.go b/typedapi/types/readexception.go index 22cc4dde4f..55f94d0dc7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReadException type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ccr/_types/FollowIndexStats.ts#L111-L118 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ccr/_types/FollowIndexStats.ts#L111-L118 type ReadException struct { // Exception The exception that caused the read to fail. Exception ErrorCause `json:"exception"` @@ -93,5 +93,3 @@ func NewReadException() *ReadException { return r } - -// false diff --git a/typedapi/types/readonlyurlrepository.go b/typedapi/types/readonlyurlrepository.go index c25bedd36f..fcd4fb80cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ReadOnlyUrlRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L92-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L92-L102 type ReadOnlyUrlRepository struct { // Settings The repository settings. Settings ReadOnlyUrlRepositorySettings `json:"settings"` @@ -95,8 +95,6 @@ func NewReadOnlyUrlRepository() *ReadOnlyUrlRepository { return r } -// true - type ReadOnlyUrlRepositoryVariant interface { ReadOnlyUrlRepositoryCaster() *ReadOnlyUrlRepository } @@ -104,3 +102,8 @@ type ReadOnlyUrlRepositoryVariant interface { func (s *ReadOnlyUrlRepository) ReadOnlyUrlRepositoryCaster() *ReadOnlyUrlRepository { return s } + +func (s *ReadOnlyUrlRepository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/readonlyurlrepositorysettings.go b/typedapi/types/readonlyurlrepositorysettings.go index 639d019170..4e32739335 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReadOnlyUrlRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L377-L412 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L377-L412 type ReadOnlyUrlRepositorySettings struct { // ChunkSize Big files can be broken down into multiple smaller blobs in the blob store // during snapshotting. @@ -192,8 +192,6 @@ func NewReadOnlyUrlRepositorySettings() *ReadOnlyUrlRepositorySettings { return r } -// true - type ReadOnlyUrlRepositorySettingsVariant interface { ReadOnlyUrlRepositorySettingsCaster() *ReadOnlyUrlRepositorySettings } diff --git a/typedapi/types/readsummaryinfo.go b/typedapi/types/readsummaryinfo.go index bf635da15d..c520b1210c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReadSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -165,5 +165,3 @@ func NewReadSummaryInfo() *ReadSummaryInfo { return r } - -// false diff --git a/typedapi/types/realmcache.go b/typedapi/types/realmcache.go index 1310a19e96..d04a55bc26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RealmCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L276-L278 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L276-L278 type RealmCache struct { Size int64 `json:"size"` } @@ -77,5 +77,3 @@ func NewRealmCache() *RealmCache { return r } - -// false diff --git a/typedapi/types/realminfo.go b/typedapi/types/realminfo.go index 480354fc0c..cc6d8f620a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RealmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RealmInfo.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RealmInfo.ts#L22-L25 type RealmInfo struct { Name string `json:"name"` Type string `json:"type"` @@ -80,5 +80,3 @@ func NewRealmInfo() *RealmInfo { return r } - -// false diff --git a/typedapi/types/recording.go b/typedapi/types/recording.go index 669204b521..7d303144d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Recording type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L227-L232 type Recording struct { CumulativeExecutionCount *int64 `json:"cumulative_execution_count,omitempty"` CumulativeExecutionTime Duration `json:"cumulative_execution_time,omitempty"` @@ -102,5 +102,3 @@ func NewRecording() *Recording { return r } - -// false diff --git a/typedapi/types/recoverybytes.go b/typedapi/types/recoverybytes.go index e99e6b7e62..ef62481a0f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RecoveryBytes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L38-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L38-L48 type RecoveryBytes struct { Percent Percentage `json:"percent"` Recovered ByteSize `json:"recovered,omitempty"` @@ -114,5 +114,3 @@ func NewRecoveryBytes() *RecoveryBytes { return r } - -// false diff --git a/typedapi/types/recoveryfiles.go b/typedapi/types/recoveryfiles.go index c51f7a4eac..3fdac63b0a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RecoveryFiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L56-L62 type RecoveryFiles struct { Details []FileDetails `json:"details,omitempty"` Percent Percentage `json:"percent"` @@ -121,5 +121,3 @@ func NewRecoveryFiles() *RecoveryFiles { return r } - -// false diff --git a/typedapi/types/recoveryindexstatus.go b/typedapi/types/recoveryindexstatus.go index 8720cd9d6b..37d005a646 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RecoveryIndexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L64-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L64-L74 type RecoveryIndexStatus struct { Bytes *RecoveryBytes `json:"bytes,omitempty"` Files RecoveryFiles `json:"files"` @@ -114,5 +114,3 @@ func NewRecoveryIndexStatus() *RecoveryIndexStatus { return r } - -// false diff --git a/typedapi/types/recoveryorigin.go b/typedapi/types/recoveryorigin.go index 56ccd5bfe9..348e39ffc7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RecoveryOrigin type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L76-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L76-L89 type RecoveryOrigin struct { BootstrapNewHistoryUuid *bool `json:"bootstrap_new_history_uuid,omitempty"` Host *string `json:"host,omitempty"` @@ -149,5 +149,3 @@ func NewRecoveryOrigin() *RecoveryOrigin { return r } - -// false diff --git a/typedapi/types/recoveryrecord.go b/typedapi/types/recoveryrecord.go index 9064f2d014..f8072355bf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RecoveryRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/recovery/types.ts#L24-L155 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/recovery/types.ts#L24-L155 type RecoveryRecord struct { // Bytes The number of bytes to recover. Bytes *string `json:"bytes,omitempty"` @@ -362,5 +362,3 @@ func NewRecoveryRecord() *RecoveryRecord { return r } - -// false diff --git a/typedapi/types/recoverystartstatus.go b/typedapi/types/recoverystartstatus.go index 876fb12c77..508281786a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RecoveryStartStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -84,5 +84,3 @@ func NewRecoveryStartStatus() *RecoveryStartStatus { return r } - -// false diff --git a/typedapi/types/recoverystats.go b/typedapi/types/recoverystats.go index d8310770e3..b24fd97375 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RecoveryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L253-L258 type RecoveryStats struct { CurrentAsSource int64 `json:"current_as_source"` CurrentAsTarget int64 `json:"current_as_target"` @@ -105,5 +105,3 @@ func NewRecoveryStats() *RecoveryStats { return r } - -// false diff --git a/typedapi/types/recoverystatus.go b/typedapi/types/recoverystatus.go index 380d5e536a..55df7e9750 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RecoveryStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L98-L100 type RecoveryStatus struct { Shards []ShardRecovery `json:"shards"` } @@ -33,5 +33,3 @@ func NewRecoveryStatus() *RecoveryStatus { return r } - -// false diff --git a/typedapi/types/redact.go b/typedapi/types/redact.go index dc11118fb7..aa5deb6a32 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Redact type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L38-L43 type Redact struct { // IsRedacted_ indicates if document has been redacted IsRedacted_ bool `json:"_is_redacted"` @@ -77,5 +77,3 @@ func NewRedact() *Redact { return r } - -// false diff --git a/typedapi/types/redactprocessor.go b/typedapi/types/redactprocessor.go index 2e579fda06..0be77c2e28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RedactProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1298-L1339 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1298-L1339 type RedactProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -226,8 +226,6 @@ func NewRedactProcessor() *RedactProcessor { return r } -// true - type RedactProcessorVariant interface { RedactProcessorCaster() *RedactProcessor } diff --git a/typedapi/types/refreshstats.go b/typedapi/types/refreshstats.go index 020c38f6ac..9a4698ab93 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RefreshStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L238-L245 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L260-L267 type RefreshStats struct { ExternalTotal int64 `json:"external_total"` ExternalTotalTimeInMillis int64 `json:"external_total_time_in_millis"` @@ -127,5 +127,3 @@ func NewRefreshStats() *RefreshStats { return r } - -// false diff --git a/typedapi/types/regexoptions.go b/typedapi/types/regexoptions.go index 85a4e92cc4..17eba2f82b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,10 +31,10 @@ import ( // RegexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L184-L195 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L184-L195 type RegexOptions struct { // Flags Optional operators for the regular expression. - Flags string `json:"flags,omitempty"` + Flags *string `json:"flags,omitempty"` // MaxDeterminizedStates Maximum number of automaton states required for the query. MaxDeterminizedStates *int `json:"max_determinized_states,omitempty"` } @@ -64,7 +64,7 @@ func (s *RegexOptions) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Flags = o + s.Flags = &o case "max_determinized_states": @@ -94,8 +94,6 @@ func NewRegexOptions() *RegexOptions { return r } -// true - type RegexOptionsVariant interface { RegexOptionsCaster() *RegexOptions } diff --git a/typedapi/types/regexpquery.go b/typedapi/types/regexpquery.go index ce851d7efd..b7cdb08dca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RegexpQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L203-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L199-L232 type RegexpQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -181,8 +181,6 @@ func NewRegexpQuery() *RegexpQuery { return r } -// true - type RegexpQueryVariant interface { RegexpQueryCaster() *RegexpQuery } diff --git a/typedapi/types/regexvalidation.go b/typedapi/types/regexvalidation.go index 5627260907..4dda1e608a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RegexValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L78-L81 type RegexValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` @@ -94,8 +94,6 @@ func NewRegexValidation() *RegexValidation { return r } -// true - type RegexValidationVariant interface { RegexValidationCaster() *RegexValidation } @@ -103,3 +101,8 @@ type RegexValidationVariant interface { func (s *RegexValidation) RegexValidationCaster() *RegexValidation { return s } + +func (s *RegexValidation) ValidationCaster() *Validation { + o := Validation(s) + return &o +} diff --git a/typedapi/types/registereddomainprocessor.go b/typedapi/types/registereddomainprocessor.go index d19e18218b..5400b9f2f9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RegisteredDomainProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1341-L1357 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1341-L1357 type RegisteredDomainProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewRegisteredDomainProcessor() *RegisteredDomainProcessor { return r } -// true - type RegisteredDomainProcessorVariant interface { RegisteredDomainProcessorCaster() *RegisteredDomainProcessor } diff --git a/typedapi/types/regressioninferenceoptions.go b/typedapi/types/regressioninferenceoptions.go index 2cf5267179..7056335fa9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RegressionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L107-L116 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -88,8 +88,6 @@ func NewRegressionInferenceOptions() *RegressionInferenceOptions { return r } -// true - type RegressionInferenceOptionsVariant interface { RegressionInferenceOptionsCaster() *RegressionInferenceOptions } diff --git a/typedapi/types/reindexdestination.go b/typedapi/types/reindexdestination.go index 7016df589b..641e738a09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // ReindexDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex/types.ts#L39-L67 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -118,8 +118,6 @@ func NewReindexDestination() *ReindexDestination { return r } -// true - type ReindexDestinationVariant interface { ReindexDestinationCaster() *ReindexDestination } diff --git a/typedapi/types/reindexnode.go b/typedapi/types/reindexnode.go index a4ebfb95a0..c9b4a15143 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ReindexNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex_rethrottle/types.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/reindex_rethrottle/types.ts#L33-L35 type ReindexNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` @@ -113,5 +113,3 @@ func NewReindexNode() *ReindexNode { return r } - -// false diff --git a/typedapi/types/reindexsource.go b/typedapi/types/reindexsource.go index 57408a1bab..b53b310a48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReindexSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex/types.ts#L69-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -176,8 +176,6 @@ func NewReindexSource() *ReindexSource { return r } -// true - type ReindexSourceVariant interface { ReindexSourceCaster() *ReindexSource } diff --git a/typedapi/types/reindexstatus.go b/typedapi/types/reindexstatus.go index d7fc83513b..575f605c47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReindexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex_rethrottle/types.ts#L37-L85 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -237,5 +237,3 @@ func NewReindexStatus() *ReindexStatus { return r } - -// false diff --git a/typedapi/types/reindextask.go b/typedapi/types/reindextask.go index d453df6b4b..dd7903c48f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReindexTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex_rethrottle/types.ts#L87-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/reindex_rethrottle/types.ts#L87-L98 type ReindexTask struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` @@ -161,5 +161,3 @@ func NewReindexTask() *ReindexTask { return r } - -// false diff --git a/typedapi/types/reloaddetails.go b/typedapi/types/reloaddetails.go index 78686c3007..c4f388d9b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReloadDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/reload_search_analyzers/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/reload_search_analyzers/types.ts#L27-L31 type ReloadDetails struct { Index string `json:"index"` ReloadedAnalyzers []string `json:"reloaded_analyzers"` @@ -86,5 +86,3 @@ func NewReloadDetails() *ReloadDetails { return r } - -// false diff --git a/typedapi/types/reloadresult.go b/typedapi/types/reloadresult.go index 8572ab452f..feeae3919d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/reload_search_analyzers/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/reload_search_analyzers/types.ts#L22-L25 type ReloadResult struct { ReloadDetails []ReloadDetails `json:"reload_details"` Shards_ ShardStatistics `json:"_shards"` @@ -34,5 +34,3 @@ func NewReloadResult() *ReloadResult { return r } - -// false diff --git a/typedapi/types/relocationfailureinfo.go b/typedapi/types/relocationfailureinfo.go index 9c025e68af..9ffdd5a9fb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RelocationFailureInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Node.ts#L67-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Node.ts#L67-L69 type RelocationFailureInfo struct { FailedAttempts int `json:"failed_attempts"` } @@ -78,5 +78,3 @@ func NewRelocationFailureInfo() *RelocationFailureInfo { return r } - -// false diff --git a/typedapi/types/remoteclusterinfo.go b/typedapi/types/remoteclusterinfo.go new file mode 100644 index 0000000000..25e77d67a7 --- /dev/null +++ b/typedapi/types/remoteclusterinfo.go @@ -0,0 +1,290 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" +) + +// RemoteClusterInfo type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L786-L817 +type RemoteClusterInfo struct { + // ClusterUuid The UUID of the remote cluster. + ClusterUuid string `json:"cluster_uuid"` + // IndicesCount The total number of indices in the remote cluster. + IndicesCount int `json:"indices_count"` + // IndicesTotalSize Total data set size of all shards assigned to selected nodes, as a + // human-readable string. + IndicesTotalSize *string `json:"indices_total_size,omitempty"` + // IndicesTotalSizeInBytes Total data set size, in bytes, of all shards assigned to selected nodes. + IndicesTotalSizeInBytes int64 `json:"indices_total_size_in_bytes"` + // MaxHeap Maximum amount of memory available for use by the heap across the nodes of + // the remote cluster, as a human-readable string. + MaxHeap *string `json:"max_heap,omitempty"` + // MaxHeapInBytes Maximum amount of memory, in bytes, available for use by the heap across the + // nodes of the remote cluster. + MaxHeapInBytes int64 `json:"max_heap_in_bytes"` + // MemTotal Total amount of physical memory across the nodes of the remote cluster, as a + // human-readable string. + MemTotal *string `json:"mem_total,omitempty"` + // MemTotalInBytes Total amount, in bytes, of physical memory across the nodes of the remote + // cluster. + MemTotalInBytes int64 `json:"mem_total_in_bytes"` + // Mode The connection mode used to communicate with the remote cluster. + Mode string `json:"mode"` + // NodesCount The total count of nodes in the remote cluster. + NodesCount int `json:"nodes_count"` + // ShardsCount The total number of shards in the remote cluster. + ShardsCount int `json:"shards_count"` + // SkipUnavailable The `skip_unavailable` setting used for this remote cluster. + SkipUnavailable bool `json:"skip_unavailable"` + // Status Health status of the cluster, based on the state of its primary and replica + // shards. + Status healthstatus.HealthStatus `json:"status"` + // TransportCompress Transport compression setting used for this remote cluster. + TransportCompress string `json:"transport.compress"` + // Version The list of Elasticsearch versions used by the nodes on the remote cluster. + Version []string `json:"version"` +} + +func (s *RemoteClusterInfo) 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 "cluster_uuid": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ClusterUuid", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ClusterUuid = o + + case "indices_count": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "IndicesCount", err) + } + s.IndicesCount = value + case float64: + f := int(v) + s.IndicesCount = f + } + + case "indices_total_size": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "IndicesTotalSize", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.IndicesTotalSize = &o + + case "indices_total_size_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "IndicesTotalSizeInBytes", err) + } + s.IndicesTotalSizeInBytes = value + case float64: + f := int64(v) + s.IndicesTotalSizeInBytes = f + } + + case "max_heap": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "MaxHeap", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.MaxHeap = &o + + case "max_heap_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "MaxHeapInBytes", err) + } + s.MaxHeapInBytes = value + case float64: + f := int64(v) + s.MaxHeapInBytes = f + } + + case "mem_total": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "MemTotal", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.MemTotal = &o + + case "mem_total_in_bytes": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "MemTotalInBytes", err) + } + s.MemTotalInBytes = value + case float64: + f := int64(v) + s.MemTotalInBytes = f + } + + case "mode": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Mode", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Mode = o + + case "nodes_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", "NodesCount", err) + } + s.NodesCount = value + case float64: + f := int(v) + s.NodesCount = f + } + + case "shards_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", "ShardsCount", err) + } + s.ShardsCount = value + case float64: + f := int(v) + s.ShardsCount = f + } + + case "skip_unavailable": + 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", "SkipUnavailable", err) + } + s.SkipUnavailable = value + case bool: + s.SkipUnavailable = v + } + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "transport.compress": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "TransportCompress", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.TransportCompress = o + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// NewRemoteClusterInfo returns a RemoteClusterInfo. +func NewRemoteClusterInfo() *RemoteClusterInfo { + r := &RemoteClusterInfo{} + + return r +} diff --git a/typedapi/types/remoteclusterprivileges.go b/typedapi/types/remoteclusterprivileges.go index 71dfa6f3d9..77f79e2005 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // RemoteClusterPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L278-L290 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -89,8 +89,6 @@ func NewRemoteClusterPrivileges() *RemoteClusterPrivileges { return r } -// true - type RemoteClusterPrivilegesVariant interface { RemoteClusterPrivilegesCaster() *RemoteClusterPrivileges } diff --git a/typedapi/types/remoteindicesprivileges.go b/typedapi/types/remoteindicesprivileges.go index f006a06214..1e93d27667 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RemoteIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L244-L276 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -186,8 +186,6 @@ func NewRemoteIndicesPrivileges() *RemoteIndicesPrivileges { return r } -// true - type RemoteIndicesPrivilegesVariant interface { RemoteIndicesPrivilegesCaster() *RemoteIndicesPrivileges } diff --git a/typedapi/types/remotesource.go b/typedapi/types/remotesource.go index 9b7c5a0658..78200bf20b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RemoteSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/reindex/types.ts#L112-L140 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/reindex/types.ts#L112-L140 type RemoteSource struct { // ConnectTimeout The remote connection timeout. ConnectTimeout Duration `json:"connect_timeout,omitempty"` @@ -109,8 +109,6 @@ func NewRemoteSource() *RemoteSource { return r } -// true - type RemoteSourceVariant interface { RemoteSourceCaster() *RemoteSource } diff --git a/typedapi/types/remoteuserindicesprivileges.go b/typedapi/types/remoteuserindicesprivileges.go index 796e14056e..7fc33248b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RemoteUserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L316-L339 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -176,5 +176,3 @@ func NewRemoteUserIndicesPrivileges() *RemoteUserIndicesPrivileges { return r } - -// false diff --git a/typedapi/types/removeaction.go b/typedapi/types/removeaction.go index 72d3fd1bfe..3bb0ecb6bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RemoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/types.ts#L97-L122 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/update_aliases/types.ts#L97-L122 type RemoveAction struct { // Alias Alias for the action. // Index alias names support date math. @@ -132,8 +132,6 @@ func NewRemoveAction() *RemoveAction { return r } -// true - type RemoveActionVariant interface { RemoveActionCaster() *RemoveAction } diff --git a/typedapi/types/removeclusterserver.go b/typedapi/types/removeclusterserver.go new file mode 100644 index 0000000000..694e6eabb9 --- /dev/null +++ b/typedapi/types/removeclusterserver.go @@ -0,0 +1,74 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// RemoveClusterServer type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/info/types.ts#L74-L77 +type RemoveClusterServer struct { + BoundAddress []string `json:"bound_address"` + PublishAddress string `json:"publish_address"` +} + +func (s *RemoveClusterServer) 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 "bound_address": + if err := dec.Decode(&s.BoundAddress); err != nil { + return fmt.Errorf("%s | %w", "BoundAddress", err) + } + + case "publish_address": + if err := dec.Decode(&s.PublishAddress); err != nil { + return fmt.Errorf("%s | %w", "PublishAddress", err) + } + + } + } + return nil +} + +// NewRemoveClusterServer returns a RemoveClusterServer. +func NewRemoveClusterServer() *RemoveClusterServer { + r := &RemoveClusterServer{} + + return r +} diff --git a/typedapi/types/removeduplicatestokenfilter.go b/typedapi/types/removeduplicatestokenfilter.go index 0d332728ec..eb0448bfaa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RemoveDuplicatesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L302-L304 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L403-L405 type RemoveDuplicatesTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewRemoveDuplicatesTokenFilter() *RemoveDuplicatesTokenFilter { return r } -// true - type RemoveDuplicatesTokenFilterVariant interface { RemoveDuplicatesTokenFilterCaster() *RemoveDuplicatesTokenFilter } @@ -95,3 +93,8 @@ type RemoveDuplicatesTokenFilterVariant interface { func (s *RemoveDuplicatesTokenFilter) RemoveDuplicatesTokenFilterCaster() *RemoveDuplicatesTokenFilter { return s } + +func (s *RemoveDuplicatesTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/removeindexaction.go b/typedapi/types/removeindexaction.go index 2d452c1b0b..62ab5d06b8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RemoveIndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/update_aliases/types.ts#L124-L139 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/update_aliases/types.ts#L124-L139 type RemoveIndexAction struct { // Index Data stream or index for the action. // Supports wildcards (`*`). @@ -105,8 +105,6 @@ func NewRemoveIndexAction() *RemoveIndexAction { return r } -// true - type RemoveIndexActionVariant interface { RemoveIndexActionCaster() *RemoveIndexAction } diff --git a/typedapi/types/removeprocessor.go b/typedapi/types/removeprocessor.go index ce6cd8b7f0..68d9177d50 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RemoveProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1359-L1373 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1359-L1373 type RemoveProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -176,8 +176,6 @@ func NewRemoveProcessor() *RemoveProcessor { return r } -// true - type RemoveProcessorVariant interface { RemoveProcessorCaster() *RemoveProcessor } diff --git a/typedapi/types/renameprocessor.go b/typedapi/types/renameprocessor.go index 9e6e06c7f6..8f9f796544 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RenameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1375-L1391 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1375-L1391 type RenameProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -155,8 +155,6 @@ func NewRenameProcessor() *RenameProcessor { return r } -// true - type RenameProcessorVariant interface { RenameProcessorCaster() *RenameProcessor } diff --git a/typedapi/types/replicationaccess.go b/typedapi/types/replicationaccess.go index 9b72de01ae..d059d1b8f2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReplicationAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L442-L452 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -98,8 +98,6 @@ func NewReplicationAccess() *ReplicationAccess { return r } -// true - type ReplicationAccessVariant interface { ReplicationAccessCaster() *ReplicationAccess } diff --git a/typedapi/types/reportingemailattachment.go b/typedapi/types/reportingemailattachment.go index 7ec8748955..37d410294c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReportingEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L224-L232 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L224-L232 type ReportingEmailAttachment struct { Inline *bool `json:"inline,omitempty"` Interval Duration `json:"interval,omitempty"` @@ -119,8 +119,6 @@ func NewReportingEmailAttachment() *ReportingEmailAttachment { return r } -// true - type ReportingEmailAttachmentVariant interface { ReportingEmailAttachmentCaster() *ReportingEmailAttachment } diff --git a/typedapi/types/repositoriesrecord.go b/typedapi/types/repositoriesrecord.go index 04ed550ebf..f88e85cd8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RepositoriesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/repositories/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/repositories/types.ts#L20-L31 type RepositoriesRecord struct { // Id The unique repository identifier. Id *string `json:"id,omitempty"` @@ -89,5 +89,3 @@ func NewRepositoriesRecord() *RepositoriesRecord { return r } - -// false diff --git a/typedapi/types/repository.go b/typedapi/types/repository.go index bc9663bcca..2b95e364aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ package types // ReadOnlyUrlRepository // SourceOnlyRepository // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 da51a911a7..4e322c6a56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RepositoryIntegrityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L137-L141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L138-L142 type RepositoryIntegrityIndicator struct { Details *RepositoryIntegrityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewRepositoryIntegrityIndicator() *RepositoryIntegrityIndicator { return r } - -// false diff --git a/typedapi/types/repositoryintegrityindicatordetails.go b/typedapi/types/repositoryintegrityindicatordetails.go index d3354d60da..cb18a90093 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RepositoryIntegrityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L142-L146 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L143-L147 type RepositoryIntegrityIndicatorDetails struct { Corrupted []string `json:"corrupted,omitempty"` CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"` @@ -99,5 +99,3 @@ func NewRepositoryIntegrityIndicatorDetails() *RepositoryIntegrityIndicatorDetai return r } - -// false diff --git a/typedapi/types/repositorylocation.go b/typedapi/types/repositorylocation.go index 7574476972..91f70ba624 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RepositoryLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 type RepositoryLocation struct { BasePath string `json:"base_path"` // Bucket Bucket name (GCP, S3) @@ -102,5 +102,3 @@ func NewRepositoryLocation() *RepositoryLocation { return r } - -// false diff --git a/typedapi/types/repositorymeteringinformation.go b/typedapi/types/repositorymeteringinformation.go index 3c81e7548e..fd81db27d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RepositoryMeteringInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -154,5 +154,3 @@ func NewRepositoryMeteringInformation() *RepositoryMeteringInformation { return r } - -// false diff --git a/typedapi/types/repositorystatscurrentcounts.go b/typedapi/types/repositorystatscurrentcounts.go new file mode 100644 index 0000000000..ee5f05d504 --- /dev/null +++ b/typedapi/types/repositorystatscurrentcounts.go @@ -0,0 +1,171 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RepositoryStatsCurrentCounts type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L672-L680 +type RepositoryStatsCurrentCounts struct { + ActiveDeletions int `json:"active_deletions"` + Clones int `json:"clones"` + Deletions int `json:"deletions"` + Finalizations int `json:"finalizations"` + Shards RepositoryStatsShards `json:"shards"` + SnapshotDeletions int `json:"snapshot_deletions"` + Snapshots int `json:"snapshots"` +} + +func (s *RepositoryStatsCurrentCounts) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "active_deletions": + + 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", "ActiveDeletions", err) + } + s.ActiveDeletions = value + case float64: + f := int(v) + s.ActiveDeletions = f + } + + case "clones": + + 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", "Clones", err) + } + s.Clones = value + case float64: + f := int(v) + s.Clones = f + } + + case "deletions": + + 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", "Deletions", err) + } + s.Deletions = value + case float64: + f := int(v) + s.Deletions = f + } + + case "finalizations": + + 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", "Finalizations", err) + } + s.Finalizations = value + case float64: + f := int(v) + s.Finalizations = f + } + + case "shards": + if err := dec.Decode(&s.Shards); err != nil { + return fmt.Errorf("%s | %w", "Shards", err) + } + + case "snapshot_deletions": + + 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", "SnapshotDeletions", err) + } + s.SnapshotDeletions = value + case float64: + f := int(v) + s.SnapshotDeletions = f + } + + case "snapshots": + + 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", "Snapshots", err) + } + s.Snapshots = value + case float64: + f := int(v) + s.Snapshots = f + } + + } + } + return nil +} + +// NewRepositoryStatsCurrentCounts returns a RepositoryStatsCurrentCounts. +func NewRepositoryStatsCurrentCounts() *RepositoryStatsCurrentCounts { + r := &RepositoryStatsCurrentCounts{} + + return r +} diff --git a/typedapi/types/repositorystatsshards.go b/typedapi/types/repositorystatsshards.go new file mode 100644 index 0000000000..df31456081 --- /dev/null +++ b/typedapi/types/repositorystatsshards.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardstate" +) + +// RepositoryStatsShards type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L682-L687 +type RepositoryStatsShards struct { + Complete int `json:"complete"` + Incomplete int `json:"incomplete"` + States map[shardstate.ShardState]int `json:"states"` + Total int `json:"total"` +} + +func (s *RepositoryStatsShards) 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 "complete": + + 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", "Complete", err) + } + s.Complete = value + case float64: + f := int(v) + s.Complete = f + } + + case "incomplete": + + 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", "Incomplete", err) + } + s.Incomplete = value + case float64: + f := int(v) + s.Incomplete = f + } + + case "states": + if s.States == nil { + s.States = make(map[shardstate.ShardState]int, 0) + } + if err := dec.Decode(&s.States); err != nil { + return fmt.Errorf("%s | %w", "States", err) + } + + case "total": + + 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", "Total", err) + } + s.Total = value + case float64: + f := int(v) + s.Total = f + } + + } + } + return nil +} + +// NewRepositoryStatsShards returns a RepositoryStatsShards. +func NewRepositoryStatsShards() *RepositoryStatsShards { + r := &RepositoryStatsShards{ + States: make(map[shardstate.ShardState]int), + } + + return r +} diff --git a/typedapi/types/requestcachestats.go b/typedapi/types/requestcachestats.go index 3774896b7d..a3e20c841a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RequestCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L247-L253 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L269-L275 type RequestCacheStats struct { Evictions int64 `json:"evictions"` HitCount int64 `json:"hit_count"` @@ -138,5 +138,3 @@ func NewRequestCacheStats() *RequestCacheStats { return r } - -// false diff --git a/typedapi/types/requestchatcompletion.go b/typedapi/types/requestchatcompletion.go index 61703578df..ee9a6f3d59 100644 --- a/typedapi/types/requestchatcompletion.go +++ b/typedapi/types/requestchatcompletion.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,16 @@ import ( // RequestChatCompletion type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L25-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L25-L97 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. + // Requests should generally only add new messages from the user (role `user`). + // The other message roles (`assistant`, `system`, or `tool`) should generally + // only be copied from the response to a previous completion request, such that + // the messages array is built up throughout a conversation. Messages []Message `json:"messages"` // Model The ID of the model to use. Model *string `json:"model,omitempty"` @@ -46,8 +50,52 @@ type RequestChatCompletion struct { // Temperature The sampling temperature to use. Temperature *float32 `json:"temperature,omitempty"` // ToolChoice Controls which tool is called by the model. + // String representation: One of `auto`, `none`, or `requrired`. `auto` allows + // the model to choose between calling tools and generating a message. `none` + // causes the model to not call any tools. `required` forces the model to call + // one or more tools. + // Example (object representation): + // ``` + // + // { + // "tool_choice": { + // "type": "function", + // "function": { + // "name": "get_current_weather" + // } + // } + // } + // + // ``` ToolChoice CompletionToolType `json:"tool_choice,omitempty"` // Tools A list of tools that the model can call. + // Example: + // ``` + // + // { + // "tools": [ + // { + // "type": "function", + // "function": { + // "name": "get_price_of_item", + // "description": "Get the current price of an item", + // "parameters": { + // "type": "object", + // "properties": { + // "item": { + // "id": "12345" + // }, + // "unit": { + // "type": "currency" + // } + // } + // } + // } + // } + // ] + // } + // + // ``` Tools []CompletionTool `json:"tools,omitempty"` // TopP Nucleus sampling, an alternative to sampling with temperature. TopP *float32 `json:"top_p,omitempty"` @@ -190,8 +238,6 @@ func NewRequestChatCompletion() *RequestChatCompletion { return r } -// true - type RequestChatCompletionVariant interface { RequestChatCompletionCaster() *RequestChatCompletion } diff --git a/typedapi/types/requestcounts.go b/typedapi/types/requestcounts.go index 955808c225..ddc36369f1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RequestCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 type RequestCounts struct { // GetBlob Number of Get Blob requests (Azure) GetBlob *int64 `json:"GetBlob,omitempty"` @@ -253,5 +253,3 @@ func NewRequestCounts() *RequestCounts { return r } - -// false diff --git a/typedapi/types/requestitem.go b/typedapi/types/requestitem.go index 292a664438..c9f4c08e1e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // MultisearchHeader // TemplateConfig // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch_template/types.ts#L26-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch_template/types.ts#L26-L27 type RequestItem any type RequestItemVariant interface { diff --git a/typedapi/types/reroutedecision.go b/typedapi/types/reroutedecision.go index 0fb6bfc648..afad1e14a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RerouteDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L86-L90 type RerouteDecision struct { Decider string `json:"decider"` Decision string `json:"decision"` @@ -100,5 +100,3 @@ func NewRerouteDecision() *RerouteDecision { return r } - -// false diff --git a/typedapi/types/rerouteexplanation.go b/typedapi/types/rerouteexplanation.go index ea10ddc54f..4e23e0943b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RerouteExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L92-L96 type RerouteExplanation struct { Command string `json:"command"` Decisions []RerouteDecision `json:"decisions"` @@ -86,5 +86,3 @@ func NewRerouteExplanation() *RerouteExplanation { return r } - -// false diff --git a/typedapi/types/rerouteparameters.go b/typedapi/types/rerouteparameters.go index 5d94311f69..e1b58a036b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RerouteParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/reroute/types.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/reroute/types.ts#L98-L105 type RerouteParameters struct { AllowPrimary bool `json:"allow_primary"` FromNode *string `json:"from_node,omitempty"` @@ -117,5 +117,3 @@ func NewRerouteParameters() *RerouteParameters { return r } - -// false diff --git a/typedapi/types/rerouteprocessor.go b/typedapi/types/rerouteprocessor.go index 66f1215d2b..0e5f13f9b2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RerouteProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1393-L1421 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1393-L1421 type RerouteProcessor struct { // Dataset Field references or a static value for the dataset part of the data stream // name. @@ -197,8 +197,6 @@ func NewRerouteProcessor() *RerouteProcessor { return r } -// true - type RerouteProcessorVariant interface { RerouteProcessorCaster() *RerouteProcessor } diff --git a/typedapi/types/rescore.go b/typedapi/types/rescore.go index 2c60090400..b3ddd99d4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Rescore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/rescoring.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/rescoring.ts#L25-L38 type Rescore struct { AdditionalRescoreProperty map[string]json.RawMessage `json:"-"` LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"` @@ -136,8 +136,6 @@ func NewRescore() *Rescore { return r } -// true - type RescoreVariant interface { RescoreCaster() *Rescore } diff --git a/typedapi/types/rescorequery.go b/typedapi/types/rescorequery.go index b41a6764e2..e218355808 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RescoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/rescoring.ts#L40-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -116,8 +116,6 @@ func NewRescoreQuery() *RescoreQuery { return r } -// true - type RescoreQueryVariant interface { RescoreQueryCaster() *RescoreQuery } diff --git a/typedapi/types/rescorerretriever.go b/typedapi/types/rescorerretriever.go new file mode 100644 index 0000000000..43a5866d65 --- /dev/null +++ b/typedapi/types/rescorerretriever.go @@ -0,0 +1,146 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RescorerRetriever type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L62-L66 +type RescorerRetriever struct { + // Filter Query to filter the documents that can match. + Filter []Query `json:"filter,omitempty"` + // MinScore Minimum _score for matching documents. Documents with a lower _score are not + // included in the top documents. + MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` + Rescore []Rescore `json:"rescore"` + // Retriever Inner retriever. + Retriever RetrieverContainer `json:"retriever"` +} + +func (s *RescorerRetriever) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "filter": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewQuery() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + s.Filter = append(s.Filter, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + } + + case "min_score": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "MinScore", err) + } + f := float32(value) + s.MinScore = &f + case float64: + f := float32(v) + s.MinScore = &f + } + + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + + case "rescore": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewRescore() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Rescore", err) + } + + s.Rescore = append(s.Rescore, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Rescore); err != nil { + return fmt.Errorf("%s | %w", "Rescore", err) + } + } + + case "retriever": + if err := dec.Decode(&s.Retriever); err != nil { + return fmt.Errorf("%s | %w", "Retriever", err) + } + + } + } + return nil +} + +// NewRescorerRetriever returns a RescorerRetriever. +func NewRescorerRetriever() *RescorerRetriever { + r := &RescorerRetriever{} + + return r +} + +type RescorerRetrieverVariant interface { + RescorerRetrieverCaster() *RescorerRetriever +} + +func (s *RescorerRetriever) RescorerRetrieverCaster() *RescorerRetriever { + return s +} diff --git a/typedapi/types/rescorevector.go b/typedapi/types/rescorevector.go index 30e4fc37f3..e8d1d9574d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RescoreVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Knn.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -80,8 +80,6 @@ func NewRescoreVector() *RescoreVector { return r } -// true - type RescoreVectorVariant interface { RescoreVectorCaster() *RescoreVector } diff --git a/typedapi/types/reservedsize.go b/typedapi/types/reservedsize.go index eef18c4ca8..05c8782a79 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ReservedSize type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L72-L77 type ReservedSize struct { NodeId string `json:"node_id"` Path string `json:"path"` @@ -102,5 +102,3 @@ func NewReservedSize() *ReservedSize { return r } - -// false diff --git a/typedapi/types/resolveclusterinfo.go b/typedapi/types/resolveclusterinfo.go index d607165e0e..61abc6546b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ResolveClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -135,5 +135,3 @@ func NewResolveClusterInfo() *ResolveClusterInfo { return r } - -// false diff --git a/typedapi/types/resolveindexaliasitem.go b/typedapi/types/resolveindexaliasitem.go index dc0676ea79..471798ff3c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexAliasItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 type ResolveIndexAliasItem struct { Indices []string `json:"indices"` Name string `json:"name"` @@ -83,5 +83,3 @@ func NewResolveIndexAliasItem() *ResolveIndexAliasItem { return r } - -// false diff --git a/typedapi/types/resolveindexdatastreamsitem.go b/typedapi/types/resolveindexdatastreamsitem.go index 61d8ad4daf..2f9b04f767 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexDataStreamsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 type ResolveIndexDataStreamsItem struct { BackingIndices []string `json:"backing_indices"` Name string `json:"name"` @@ -89,5 +89,3 @@ func NewResolveIndexDataStreamsItem() *ResolveIndexDataStreamsItem { return r } - -// false diff --git a/typedapi/types/resolveindexitem.go b/typedapi/types/resolveindexitem.go index 7d1d0e7948..8a0d6b36de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 type ResolveIndexItem struct { Aliases []string `json:"aliases,omitempty"` Attributes []string `json:"attributes"` @@ -84,5 +84,3 @@ func NewResolveIndexItem() *ResolveIndexItem { return r } - -// false diff --git a/typedapi/types/resourceprivileges.go b/typedapi/types/resourceprivileges.go index 41096b6488..507bd6a429 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ResourcePrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/has_privileges/types.ts#L48-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 55d9ba3138..0dd6649da5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L37-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -204,5 +204,3 @@ func NewResponseItem() *ResponseItem { return r } - -// false diff --git a/typedapi/types/restriction.go b/typedapi/types/restriction.go index a621ae6ee5..5b3cef70f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // Restriction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleDescriptor.ts#L135-L141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -41,8 +41,6 @@ func NewRestriction() *Restriction { return r } -// true - type RestrictionVariant interface { RestrictionCaster() *Restriction } diff --git a/typedapi/types/retention.go b/typedapi/types/retention.go index 83b4c3e349..f81a0bb54f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Retention type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L94-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -108,8 +108,6 @@ func NewRetention() *Retention { return r } -// true - type RetentionVariant interface { RetentionCaster() *Retention } diff --git a/typedapi/types/retentionlease.go b/typedapi/types/retentionlease.go index d75ebc21f9..a051046545 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RetentionLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L66-L68 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L66-L68 type RetentionLease struct { Period Duration `json:"period"` } @@ -67,8 +67,6 @@ func NewRetentionLease() *RetentionLease { return r } -// true - type RetentionLeaseVariant interface { RetentionLeaseCaster() *RetentionLease } diff --git a/typedapi/types/retentionpolicy.go b/typedapi/types/retentionpolicy.go index 3f3cea4a87..cc2aa9a11f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RetentionPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -77,8 +77,6 @@ func NewRetentionPolicy() *RetentionPolicy { return r } -// true - type RetentionPolicyVariant interface { RetentionPolicyCaster() *RetentionPolicy } diff --git a/typedapi/types/retentionpolicycontainer.go b/typedapi/types/retentionpolicycontainer.go index 3c67ecba41..1745b98a09 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // RetentionPolicyContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -72,8 +72,6 @@ func NewRetentionPolicyContainer() *RetentionPolicyContainer { return r } -// true - type RetentionPolicyContainerVariant interface { RetentionPolicyContainerCaster() *RetentionPolicyContainer } diff --git a/typedapi/types/retries.go b/typedapi/types/retries.go index c194f89d2b..f9b0ae0b6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Retries type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retries.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retries.ts#L22-L31 type Retries struct { // Bulk The number of bulk actions retried. Bulk int64 `json:"bulk"` @@ -95,5 +95,3 @@ func NewRetries() *Retries { return r } - -// false diff --git a/typedapi/types/retrievercontainer.go b/typedapi/types/retrievercontainer.go index a0efcf8dcd..2b3afaa7d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,11 +27,19 @@ import ( // RetrieverContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L28-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L28-L51 type RetrieverContainer struct { AdditionalRetrieverContainerProperty map[string]json.RawMessage `json:"-"` // Knn A retriever that replaces the functionality of a knn search. Knn *KnnRetriever `json:"knn,omitempty"` + // Linear A retriever that supports the combination of different retrievers through a + // weighted linear combination. + Linear *LinearRetriever `json:"linear,omitempty"` + // Pinned A pinned retriever applies pinned documents to the underlying retriever. + // This retriever will rewrite to a PinnedQueryBuilder. + Pinned *PinnedRetriever `json:"pinned,omitempty"` + // Rescorer A retriever that re-scores only the results produced by its child retriever. + Rescorer *RescorerRetriever `json:"rescorer,omitempty"` // Rrf A retriever that produces top documents from reciprocal rank fusion (RRF). Rrf *RRFRetriever `json:"rrf,omitempty"` // Rule A retriever that replaces the functionality of a rule query. @@ -81,8 +89,6 @@ func NewRetrieverContainer() *RetrieverContainer { return r } -// true - type RetrieverContainerVariant interface { RetrieverContainerCaster() *RetrieverContainer } diff --git a/typedapi/types/reversenestedaggregate.go b/typedapi/types/reversenestedaggregate.go index 99254556c6..092d9a0cc9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ReverseNestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L540-L544 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L540-L544 type ReverseNestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewReverseNestedAggregate() *ReverseNestedAggregate { return r } - -// false diff --git a/typedapi/types/reversenestedaggregation.go b/typedapi/types/reversenestedaggregation.go index 0650c7a577..9b85e7dd18 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ReverseNestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L741-L747 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -70,8 +70,6 @@ func NewReverseNestedAggregation() *ReverseNestedAggregation { return r } -// true - type ReverseNestedAggregationVariant interface { ReverseNestedAggregationCaster() *ReverseNestedAggregation } diff --git a/typedapi/types/reversetokenfilter.go b/typedapi/types/reversetokenfilter.go index a810c9c32b..65706dac93 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ReverseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L306-L308 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L407-L409 type ReverseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewReverseTokenFilter() *ReverseTokenFilter { return r } -// true - type ReverseTokenFilterVariant interface { ReverseTokenFilterCaster() *ReverseTokenFilter } @@ -95,3 +93,8 @@ type ReverseTokenFilterVariant interface { func (s *ReverseTokenFilter) ReverseTokenFilterCaster() *ReverseTokenFilter { return s } + +func (s *ReverseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/role.go b/typedapi/types/role.go index 8c4539408e..63675cd51e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Role type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_role/types.ts#L32-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_role/types.ts#L32-L54 type Role struct { Applications []ApplicationPrivileges `json:"applications"` Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"` @@ -145,5 +145,3 @@ func NewRole() *Role { return r } - -// false diff --git a/typedapi/types/roledescriptor.go b/typedapi/types/roledescriptor.go index 46cea0b848..8f92dbf4ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleDescriptor.ts#L33-L83 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RoleDescriptor.ts#L33-L83 type RoleDescriptor struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` @@ -171,8 +171,6 @@ func NewRoleDescriptor() *RoleDescriptor { return r } -// true - type RoleDescriptorVariant interface { RoleDescriptorCaster() *RoleDescriptor } diff --git a/typedapi/types/roledescriptorread.go b/typedapi/types/roledescriptorread.go index 04bf1f64f2..0d448f131b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RoleDescriptorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleDescriptor.ts#L85-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RoleDescriptor.ts#L85-L133 type RoleDescriptorRead struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` @@ -167,5 +167,3 @@ func NewRoleDescriptorRead() *RoleDescriptorRead { return r } - -// false diff --git a/typedapi/types/roledescriptorwrapper.go b/typedapi/types/roledescriptorwrapper.go index 9a47726147..64da5cb804 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RoleDescriptorWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_service_accounts/types.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_service_accounts/types.ts#L22-L24 type RoleDescriptorWrapper struct { RoleDescriptor RoleDescriptorRead `json:"role_descriptor"` } @@ -33,5 +33,3 @@ func NewRoleDescriptorWrapper() *RoleDescriptorWrapper { return r } - -// false diff --git a/typedapi/types/rolemappingrule.go b/typedapi/types/rolemappingrule.go index b351186742..b0134d2636 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // RoleMappingRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleMappingRule.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RoleMappingRule.ts#L23-L31 type RoleMappingRule struct { AdditionalRoleMappingRuleProperty map[string]json.RawMessage `json:"-"` All []RoleMappingRule `json:"all,omitempty"` @@ -75,8 +75,6 @@ func NewRoleMappingRule() *RoleMappingRule { return r } -// true - type RoleMappingRuleVariant interface { RoleMappingRuleCaster() *RoleMappingRule } diff --git a/typedapi/types/rolequerycontainer.go b/typedapi/types/rolequerycontainer.go index ebc58c5e3c..09d1c014ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RoleQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_role/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -221,8 +221,6 @@ func NewRoleQueryContainer() *RoleQueryContainer { return r } -// true - type RoleQueryContainerVariant interface { RoleQueryContainerCaster() *RoleQueryContainer } diff --git a/typedapi/types/roletemplate.go b/typedapi/types/roletemplate.go index 70283c8e57..81d5ecb324 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // RoleTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleTemplate.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RoleTemplate.ts#L28-L31 type RoleTemplate struct { Format *templateformat.TemplateFormat `json:"format,omitempty"` Template Script `json:"template"` @@ -39,8 +39,6 @@ func NewRoleTemplate() *RoleTemplate { return r } -// true - type RoleTemplateVariant interface { RoleTemplateCaster() *RoleTemplate } diff --git a/typedapi/types/roletemplateinlinequery.go b/typedapi/types/roletemplateinlinequery.go index 4fd3cf2f7a..a0b0e5fcee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // Query // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L383-L384 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b375fc909a..db7df03285 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RoleTemplateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L351-L361 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -42,8 +42,6 @@ func NewRoleTemplateQuery() *RoleTemplateQuery { return r } -// true - type RoleTemplateQueryVariant interface { RoleTemplateQueryCaster() *RoleTemplateQuery } @@ -51,3 +49,8 @@ type RoleTemplateQueryVariant interface { func (s *RoleTemplateQuery) RoleTemplateQueryCaster() *RoleTemplateQuery { return s } + +func (s *RoleTemplateQuery) IndicesPrivilegesQueryCaster() *IndicesPrivilegesQuery { + o := IndicesPrivilegesQuery(s) + return &o +} diff --git a/typedapi/types/roletemplatescript.go b/typedapi/types/roletemplatescript.go index bee3fb89ee..960d012a5c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // RoleTemplateScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L363-L381 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/Privileges.ts#L363-L381 type RoleTemplateScript struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` @@ -142,8 +142,6 @@ func NewRoleTemplateScript() *RoleTemplateScript { return r } -// true - type RoleTemplateScriptVariant interface { RoleTemplateScriptCaster() *RoleTemplateScript } diff --git a/typedapi/types/rolloveraction.go b/typedapi/types/rolloveraction.go index e96489a60f..2d64210c82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RolloverAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L99-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L99-L110 type RolloverAction struct { MaxAge Duration `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` @@ -162,8 +162,6 @@ func NewRolloverAction() *RolloverAction { return r } -// true - type RolloverActionVariant interface { RolloverActionCaster() *RolloverAction } diff --git a/typedapi/types/rolloverconditions.go b/typedapi/types/rolloverconditions.go index 178b757d0d..1b8b159ee2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/rollover/types.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/rollover/types.ts#L24-L40 type RolloverConditions struct { MaxAge Duration `json:"max_age,omitempty"` MaxAgeMillis *int64 `json:"max_age_millis,omitempty"` @@ -232,8 +232,6 @@ func NewRolloverConditions() *RolloverConditions { return r } -// true - type RolloverConditionsVariant interface { RolloverConditionsCaster() *RolloverConditions } diff --git a/typedapi/types/rollupcapabilities.go b/typedapi/types/rollupcapabilities.go index 04265d7237..d7cee49948 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RollupCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_caps/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -36,5 +36,3 @@ func NewRollupCapabilities() *RollupCapabilities { return r } - -// false diff --git a/typedapi/types/rollupcapabilitysummary.go b/typedapi/types/rollupcapabilitysummary.go index 95a8c894fd..29ed2ef656 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupCapabilitySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_caps/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_rollup_caps/types.ts#L31-L36 type RollupCapabilitySummary struct { Fields map[string][]RollupFieldSummary `json:"fields"` IndexPattern string `json:"index_pattern"` @@ -111,5 +111,3 @@ func NewRollupCapabilitySummary() *RollupCapabilitySummary { return r } - -// false diff --git a/typedapi/types/rollupfieldsummary.go b/typedapi/types/rollupfieldsummary.go index eff1b302c4..6d889f5782 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupFieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_caps/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_rollup_caps/types.ts#L38-L42 type RollupFieldSummary struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` @@ -86,5 +86,3 @@ func NewRollupFieldSummary() *RollupFieldSummary { return r } - -// false diff --git a/typedapi/types/rollupjob.go b/typedapi/types/rollupjob.go index 317418507f..0eb2225ee7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RollupJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/types.ts#L28-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_jobs/types.ts#L28-L43 type RollupJob struct { // Config The rollup job configuration. Config RollupJobConfiguration `json:"config"` @@ -41,5 +41,3 @@ func NewRollupJob() *RollupJob { return r } - -// false diff --git a/typedapi/types/rollupjobconfiguration.go b/typedapi/types/rollupjobconfiguration.go index 99ee92950f..c446baa9f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupJobConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/types.ts#L45-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_jobs/types.ts#L45-L54 type RollupJobConfiguration struct { Cron string `json:"cron"` Groups Groupings `json:"groups"` @@ -133,5 +133,3 @@ func NewRollupJobConfiguration() *RollupJobConfiguration { return r } - -// false diff --git a/typedapi/types/rollupjobstats.go b/typedapi/types/rollupjobstats.go index 8e0ed2fec6..34d22a4d9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupJobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/types.ts#L56-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_jobs/types.ts#L56-L69 type RollupJobStats struct { DocumentsProcessed int64 `json:"documents_processed"` IndexFailures int64 `json:"index_failures"` @@ -223,5 +223,3 @@ func NewRollupJobStats() *RollupJobStats { return r } - -// false diff --git a/typedapi/types/rollupjobstatus.go b/typedapi/types/rollupjobstatus.go index 438f722c40..0aa55d34e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RollupJobStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_jobs/types.ts#L71-L75 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -95,5 +95,3 @@ func NewRollupJobStatus() *RollupJobStatus { return r } - -// false diff --git a/typedapi/types/rollupjobsummary.go b/typedapi/types/rollupjobsummary.go index ca79448030..f6d8e31acf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 type RollupJobSummary struct { Fields map[string][]RollupJobSummaryField `json:"fields"` IndexPattern string `json:"index_pattern"` @@ -97,5 +97,3 @@ func NewRollupJobSummary() *RollupJobSummary { return r } - -// false diff --git a/typedapi/types/rollupjobsummaryfield.go b/typedapi/types/rollupjobsummaryfield.go index 81224a6d95..dc10f74b1d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummaryField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 type RollupJobSummaryField struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` @@ -86,5 +86,3 @@ func NewRollupJobSummaryField() *RollupJobSummaryField { return r } - -// false diff --git a/typedapi/types/romaniananalyzer.go b/typedapi/types/romaniananalyzer.go index b50ef0a0d7..b55cff6e00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // RomanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L268-L273 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L268-L273 type RomanianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *RomanianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *RomanianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewRomanianAnalyzer() *RomanianAnalyzer { return r } -// true - type RomanianAnalyzerVariant interface { RomanianAnalyzerCaster() *RomanianAnalyzer } @@ -128,3 +115,8 @@ type RomanianAnalyzerVariant interface { func (s *RomanianAnalyzer) RomanianAnalyzerCaster() *RomanianAnalyzer { return s } + +func (s *RomanianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/routingfield.go b/typedapi/types/routingfield.go index 5ff2eec9db..28c00a5eb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RoutingField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L50-L52 type RoutingField struct { Required bool `json:"required"` } @@ -77,8 +77,6 @@ func NewRoutingField() *RoutingField { return r } -// true - type RoutingFieldVariant interface { RoutingFieldCaster() *RoutingField } diff --git a/typedapi/types/rrfrank.go b/typedapi/types/rrfrank.go index 7778478055..5df5f892e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RrfRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Rank.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -97,8 +97,6 @@ func NewRrfRank() *RrfRank { return r } -// true - type RrfRankVariant interface { RrfRankCaster() *RrfRank } diff --git a/typedapi/types/rrfretriever.go b/typedapi/types/rrfretriever.go index 2e3c3b852f..cb7deda0f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,15 @@ import ( // RRFRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L84-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L131-L138 type RRFRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` // MinScore Minimum _score for matching documents. Documents with a lower _score are not // included in the top documents. MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` // RankConstant This value determines how much influence documents in individual result sets // per query have over the final ranked result set. RankConstant *int `json:"rank_constant,omitempty"` @@ -95,6 +97,18 @@ func (s *RRFRetriever) UnmarshalJSON(data []byte) error { s.MinScore = &f } + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + case "rank_constant": var tmp any @@ -144,8 +158,6 @@ func NewRRFRetriever() *RRFRetriever { return r } -// true - type RRFRetrieverVariant interface { RRFRetrieverCaster() *RRFRetriever } diff --git a/typedapi/types/rulecondition.go b/typedapi/types/rulecondition.go index 6a3323b8a0..7f4ef4db6d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // RuleCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Rule.ts#L52-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -100,8 +100,6 @@ func NewRuleCondition() *RuleCondition { return r } -// true - type RuleConditionVariant interface { RuleConditionCaster() *RuleCondition } diff --git a/typedapi/types/rulequery.go b/typedapi/types/rulequery.go index 6523cfbfaf..edc4073d74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RuleQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L398-L405 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L398-L406 type RuleQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -42,7 +42,8 @@ type RuleQuery struct { MatchCriteria json.RawMessage `json:"match_criteria,omitempty"` Organic Query `json:"organic"` QueryName_ *string `json:"_name,omitempty"` - RulesetIds []string `json:"ruleset_ids"` + RulesetId *string `json:"ruleset_id,omitempty"` + RulesetIds []string `json:"ruleset_ids,omitempty"` } func (s *RuleQuery) UnmarshalJSON(data []byte) error { @@ -98,9 +99,32 @@ func (s *RuleQuery) UnmarshalJSON(data []byte) error { } s.QueryName_ = &o + case "ruleset_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "RulesetId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.RulesetId = &o + case "ruleset_ids": - if err := dec.Decode(&s.RulesetIds); err != nil { - return fmt.Errorf("%s | %w", "RulesetIds", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "RulesetIds", err) + } + + s.RulesetIds = append(s.RulesetIds, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.RulesetIds); err != nil { + return fmt.Errorf("%s | %w", "RulesetIds", err) + } } } @@ -115,8 +139,6 @@ func NewRuleQuery() *RuleQuery { return r } -// true - type RuleQueryVariant interface { RuleQueryCaster() *RuleQuery } diff --git a/typedapi/types/ruleretriever.go b/typedapi/types/ruleretriever.go index 729680f4ee..680ab31af1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RuleRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L106-L115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L153-L162 type RuleRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` @@ -41,6 +41,8 @@ type RuleRetriever struct { // MinScore Minimum _score for matching documents. Documents with a lower _score are not // included in the top documents. MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` // RankWindowSize This value determines the size of the individual result set. RankWindowSize *int `json:"rank_window_size,omitempty"` // Retriever The retriever whose results rules should be applied to. @@ -101,6 +103,18 @@ func (s *RuleRetriever) UnmarshalJSON(data []byte) error { s.MinScore = &f } + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + case "rank_window_size": var tmp any @@ -123,8 +137,19 @@ func (s *RuleRetriever) UnmarshalJSON(data []byte) error { } case "ruleset_ids": - if err := dec.Decode(&s.RulesetIds); err != nil { - return fmt.Errorf("%s | %w", "RulesetIds", err) + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "RulesetIds", err) + } + + s.RulesetIds = append(s.RulesetIds, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.RulesetIds); err != nil { + return fmt.Errorf("%s | %w", "RulesetIds", err) + } } } @@ -139,8 +164,6 @@ func NewRuleRetriever() *RuleRetriever { return r } -// true - type RuleRetrieverVariant interface { RuleRetrieverCaster() *RuleRetriever } diff --git a/typedapi/types/runningstatesearchinterval.go b/typedapi/types/runningstatesearchinterval.go index a73c4b5138..be58c34e8e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // RunningStateSearchInterval type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Datafeed.ts#L226-L243 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/Datafeed.ts#L226-L243 type RunningStateSearchInterval struct { // End The end time. End Duration `json:"end,omitempty"` @@ -88,5 +88,3 @@ func NewRunningStateSearchInterval() *RunningStateSearchInterval { return r } - -// false diff --git a/typedapi/types/runtimefield.go b/typedapi/types/runtimefield.go index bf8d964efa..58fcbea14f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // RuntimeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/RuntimeFields.ts#L26-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/RuntimeFields.ts#L26-L50 type RuntimeField struct { // FetchFields For type `lookup` FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"` @@ -133,8 +133,6 @@ func NewRuntimeField() *RuntimeField { return r } -// true - type RuntimeFieldVariant interface { RuntimeFieldCaster() *RuntimeField } diff --git a/typedapi/types/runtimefieldfetchfields.go b/typedapi/types/runtimefieldfetchfields.go index e5282fce29..2bd753233a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldFetchFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/RuntimeFields.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/RuntimeFields.ts#L56-L60 type RuntimeFieldFetchFields struct { Field string `json:"field"` Format *string `json:"format,omitempty"` @@ -93,8 +93,6 @@ func NewRuntimeFieldFetchFields() *RuntimeFieldFetchFields { return r } -// true - type RuntimeFieldFetchFieldsVariant interface { RuntimeFieldFetchFieldsCaster() *RuntimeFieldFetchFields } diff --git a/typedapi/types/runtimefields.go b/typedapi/types/runtimefields.go index e2868cf5cf..5e02e70aa1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // RuntimeFields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/RuntimeFields.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7c0ecf7826..cf36497cb2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldsType type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L289-L304 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L289-L304 type RuntimeFieldsType struct { CharsMax int64 `json:"chars_max"` CharsTotal int64 `json:"chars_total"` @@ -265,5 +265,3 @@ func NewRuntimeFieldsType() *RuntimeFieldsType { return r } - -// false diff --git a/typedapi/types/russiananalyzer.go b/typedapi/types/russiananalyzer.go index ff978409ff..2637c72772 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // RussianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L275-L280 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L275-L280 type RussianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *RussianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *RussianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewRussianAnalyzer() *RussianAnalyzer { return r } -// true - type RussianAnalyzerVariant interface { RussianAnalyzerCaster() *RussianAnalyzer } @@ -128,3 +115,8 @@ type RussianAnalyzerVariant interface { func (s *RussianAnalyzer) RussianAnalyzerCaster() *RussianAnalyzer { return s } + +func (s *RussianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/russianstemtokenfilter.go b/typedapi/types/russianstemtokenfilter.go new file mode 100644 index 0000000000..6f05bb5b07 --- /dev/null +++ b/typedapi/types/russianstemtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// RussianStemTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L567-L569 +type RussianStemTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *RussianStemTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s RussianStemTokenFilter) MarshalJSON() ([]byte, error) { + type innerRussianStemTokenFilter RussianStemTokenFilter + tmp := innerRussianStemTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "russian_stem" + + return json.Marshal(tmp) +} + +// NewRussianStemTokenFilter returns a RussianStemTokenFilter. +func NewRussianStemTokenFilter() *RussianStemTokenFilter { + r := &RussianStemTokenFilter{} + + return r +} + +type RussianStemTokenFilterVariant interface { + RussianStemTokenFilterCaster() *RussianStemTokenFilter +} + +func (s *RussianStemTokenFilter) RussianStemTokenFilterCaster() *RussianStemTokenFilter { + return s +} + +func (s *RussianStemTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/s3repository.go b/typedapi/types/s3repository.go index 9639df0441..e0d84da530 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // S3Repository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L64-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L64-L78 type S3Repository struct { // Settings The repository settings. // @@ -102,8 +102,6 @@ func NewS3Repository() *S3Repository { return r } -// true - type S3RepositoryVariant interface { S3RepositoryCaster() *S3Repository } @@ -111,3 +109,8 @@ type S3RepositoryVariant interface { func (s *S3Repository) S3RepositoryCaster() *S3Repository { return s } + +func (s *S3Repository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/s3repositorysettings.go b/typedapi/types/s3repositorysettings.go index 7ae422044c..53e1ccb2f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // S3RepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L237-L346 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L237-L346 type S3RepositorySettings struct { // BasePath The path to the repository data within its bucket. // It defaults to an empty string, meaning that the repository is at the root of @@ -381,8 +381,6 @@ func NewS3RepositorySettings() *S3RepositorySettings { return r } -// true - type S3RepositorySettingsVariant interface { S3RepositorySettingsCaster() *S3RepositorySettings } diff --git a/typedapi/types/samplediversity.go b/typedapi/types/samplediversity.go index 3eb60527d0..d378ba2525 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SampleDiversity type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/ExploreControls.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/graph/_types/ExploreControls.ts#L51-L54 type SampleDiversity struct { Field string `json:"field"` MaxDocsPerValue int `json:"max_docs_per_value"` @@ -85,8 +85,6 @@ func NewSampleDiversity() *SampleDiversity { return r } -// true - type SampleDiversityVariant interface { SampleDiversityCaster() *SampleDiversity } diff --git a/typedapi/types/sampleraggregate.go b/typedapi/types/sampleraggregate.go index e31162b5b9..5ac5b6b3fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // SamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L558-L559 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L558-L559 type SamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewSamplerAggregate() *SamplerAggregate { return r } - -// false diff --git a/typedapi/types/sampleraggregation.go b/typedapi/types/sampleraggregation.go index 9e3af41927..69ddf910f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L771-L780 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -81,8 +81,6 @@ func NewSamplerAggregation() *SamplerAggregation { return r } -// true - type SamplerAggregationVariant interface { SamplerAggregationCaster() *SamplerAggregation } diff --git a/typedapi/types/scalarvalue.go b/typedapi/types/scalarvalue.go index d8ff581a92..87d32af0b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L33-L37 type ScalarValue any type ScalarValueVariant interface { diff --git a/typedapi/types/scaledfloatnumberproperty.go b/typedapi/types/scaledfloatnumberproperty.go index 36e42bd439..3200aed02e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // ScaledFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L195-L199 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L195-L199 type ScaledFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -287,6 +287,12 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -691,6 +697,12 @@ func (s *ScaledFloatNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -991,8 +1003,6 @@ func NewScaledFloatNumberProperty() *ScaledFloatNumberProperty { return r } -// true - type ScaledFloatNumberPropertyVariant interface { ScaledFloatNumberPropertyCaster() *ScaledFloatNumberProperty } @@ -1000,3 +1010,8 @@ type ScaledFloatNumberPropertyVariant interface { func (s *ScaledFloatNumberProperty) ScaledFloatNumberPropertyCaster() *ScaledFloatNumberProperty { return s } + +func (s *ScaledFloatNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/scandinavianfoldingtokenfilter.go b/typedapi/types/scandinavianfoldingtokenfilter.go new file mode 100644 index 0000000000..3a7eba5cc1 --- /dev/null +++ b/typedapi/types/scandinavianfoldingtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ScandinavianFoldingTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L531-L533 +type ScandinavianFoldingTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ScandinavianFoldingTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ScandinavianFoldingTokenFilter) MarshalJSON() ([]byte, error) { + type innerScandinavianFoldingTokenFilter ScandinavianFoldingTokenFilter + tmp := innerScandinavianFoldingTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "scandinavian_folding" + + return json.Marshal(tmp) +} + +// NewScandinavianFoldingTokenFilter returns a ScandinavianFoldingTokenFilter. +func NewScandinavianFoldingTokenFilter() *ScandinavianFoldingTokenFilter { + r := &ScandinavianFoldingTokenFilter{} + + return r +} + +type ScandinavianFoldingTokenFilterVariant interface { + ScandinavianFoldingTokenFilterCaster() *ScandinavianFoldingTokenFilter +} + +func (s *ScandinavianFoldingTokenFilter) ScandinavianFoldingTokenFilterCaster() *ScandinavianFoldingTokenFilter { + return s +} + +func (s *ScandinavianFoldingTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/scandinaviannormalizationtokenfilter.go b/typedapi/types/scandinaviannormalizationtokenfilter.go new file mode 100644 index 0000000000..e4175091a4 --- /dev/null +++ b/typedapi/types/scandinaviannormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// ScandinavianNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L535-L537 +type ScandinavianNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *ScandinavianNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s ScandinavianNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerScandinavianNormalizationTokenFilter ScandinavianNormalizationTokenFilter + tmp := innerScandinavianNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "scandinavian_normalization" + + return json.Marshal(tmp) +} + +// NewScandinavianNormalizationTokenFilter returns a ScandinavianNormalizationTokenFilter. +func NewScandinavianNormalizationTokenFilter() *ScandinavianNormalizationTokenFilter { + r := &ScandinavianNormalizationTokenFilter{} + + return r +} + +type ScandinavianNormalizationTokenFilterVariant interface { + ScandinavianNormalizationTokenFilterCaster() *ScandinavianNormalizationTokenFilter +} + +func (s *ScandinavianNormalizationTokenFilter) ScandinavianNormalizationTokenFilterCaster() *ScandinavianNormalizationTokenFilter { + return s +} + +func (s *ScandinavianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/schedulecontainer.go b/typedapi/types/schedulecontainer.go index 0484d4ec0b..cd6b114333 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScheduleContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L80-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L80-L92 type ScheduleContainer struct { AdditionalScheduleContainerProperty map[string]json.RawMessage `json:"-"` Cron *string `json:"cron,omitempty"` @@ -195,8 +195,6 @@ func NewScheduleContainer() *ScheduleContainer { return r } -// true - type ScheduleContainerVariant interface { ScheduleContainerCaster() *ScheduleContainer } diff --git a/typedapi/types/scheduletimeofday.go b/typedapi/types/scheduletimeofday.go index 6ea272f55f..e0dec691e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // HourAndMinute // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L99-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 93f09bc518..ffa37fc803 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ScheduleTriggerEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L94-L97 type ScheduleTriggerEvent struct { ScheduledTime DateTime `json:"scheduled_time"` TriggeredTime DateTime `json:"triggered_time,omitempty"` @@ -73,8 +73,6 @@ func NewScheduleTriggerEvent() *ScheduleTriggerEvent { return r } -// true - type ScheduleTriggerEventVariant interface { ScheduleTriggerEventCaster() *ScheduleTriggerEvent } diff --git a/typedapi/types/schedulingconfiguration.go b/typedapi/types/schedulingconfiguration.go index b5167ee8b1..35f933428e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SchedulingConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L246-L250 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L246-L250 type SchedulingConfiguration struct { AccessControl *ConnectorScheduling `json:"access_control,omitempty"` Full *ConnectorScheduling `json:"full,omitempty"` @@ -36,8 +36,6 @@ func NewSchedulingConfiguration() *SchedulingConfiguration { return r } -// true - type SchedulingConfigurationVariant interface { SchedulingConfigurationCaster() *SchedulingConfiguration } diff --git a/typedapi/types/scoresort.go b/typedapi/types/scoresort.go index 972db32131..aa8b90fc6e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // ScoreSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L54-L56 type ScoreSort struct { Order *sortorder.SortOrder `json:"order,omitempty"` } @@ -38,8 +38,6 @@ func NewScoreSort() *ScoreSort { return r } -// true - type ScoreSortVariant interface { ScoreSortCaster() *ScoreSort } diff --git a/typedapi/types/script.go b/typedapi/types/script.go index 2191ea4d55..38804e21b0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // Script type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Scripting.ts#L65-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Scripting.ts#L65-L89 type Script struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` @@ -143,8 +143,6 @@ func NewScript() *Script { return r } -// true - type ScriptVariant interface { ScriptCaster() *Script } diff --git a/typedapi/types/scriptcache.go b/typedapi/types/scriptcache.go index 38d3fcc5a2..ebf396b23f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScriptCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1102-L1116 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1109-L1123 type ScriptCache struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` @@ -126,5 +126,3 @@ func NewScriptCache() *ScriptCache { return r } - -// false diff --git a/typedapi/types/scriptcondition.go b/typedapi/types/scriptcondition.go index 5d673c6772..5b98115268 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ScriptCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L80-L88 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L80-L88 type ScriptCondition struct { Id *string `json:"id,omitempty"` Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` @@ -131,8 +131,6 @@ func NewScriptCondition() *ScriptCondition { return r } -// true - type ScriptConditionVariant interface { ScriptConditionCaster() *ScriptCondition } diff --git a/typedapi/types/scriptedheuristic.go b/typedapi/types/scriptedheuristic.go index 0eecd169f8..cc5a01373e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ScriptedHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L813-L815 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L813-L815 type ScriptedHeuristic struct { Script Script `json:"script"` } @@ -34,8 +34,6 @@ func NewScriptedHeuristic() *ScriptedHeuristic { return r } -// true - type ScriptedHeuristicVariant interface { ScriptedHeuristicCaster() *ScriptedHeuristic } diff --git a/typedapi/types/scriptedmetricaggregate.go b/typedapi/types/scriptedmetricaggregate.go index 1ee8519d7e..097d95485e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L739-L745 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L741-L747 type ScriptedMetricAggregate struct { Meta Metadata `json:"meta,omitempty"` Value json.RawMessage `json:"value,omitempty"` @@ -72,5 +72,3 @@ func NewScriptedMetricAggregate() *ScriptedMetricAggregate { return r } - -// false diff --git a/typedapi/types/scriptedmetricaggregation.go b/typedapi/types/scriptedmetricaggregation.go index b3a64ece94..1d808ef50e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L263-L289 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -131,8 +131,6 @@ func NewScriptedMetricAggregation() *ScriptedMetricAggregation { return r } -// true - type ScriptedMetricAggregationVariant interface { ScriptedMetricAggregationCaster() *ScriptedMetricAggregation } diff --git a/typedapi/types/scriptfield.go b/typedapi/types/scriptfield.go index 648c46dfb1..06df43094e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScriptField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Scripting.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Scripting.ts#L91-L94 type ScriptField struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Script Script `json:"script"` @@ -83,8 +83,6 @@ func NewScriptField() *ScriptField { return r } -// true - type ScriptFieldVariant interface { ScriptFieldCaster() *ScriptField } diff --git a/typedapi/types/scripting.go b/typedapi/types/scripting.go index a2bb3a3f89..bfcb1ad5af 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Scripting type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1048-L1066 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1055-L1073 type Scripting struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` @@ -131,5 +131,3 @@ func NewScripting() *Scripting { return r } - -// false diff --git a/typedapi/types/scriptprocessor.go b/typedapi/types/scriptprocessor.go index c88ff2a026..f99c55e644 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ScriptProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1423-L1443 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1423-L1443 type ScriptProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -190,8 +190,6 @@ func NewScriptProcessor() *ScriptProcessor { return r } -// true - type ScriptProcessorVariant interface { ScriptProcessorCaster() *ScriptProcessor } diff --git a/typedapi/types/scriptquery.go b/typedapi/types/scriptquery.go index 633a4e4ea1..2bdb3618e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScriptQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -105,8 +105,6 @@ func NewScriptQuery() *ScriptQuery { return r } -// true - type ScriptQueryVariant interface { ScriptQueryCaster() *ScriptQuery } diff --git a/typedapi/types/scriptscorefunction.go b/typedapi/types/scriptscorefunction.go index 0e932d8f16..6cdb12c88f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ScriptScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L137-L142 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/compound.ts#L137-L142 type ScriptScoreFunction struct { // Script A script that computes a score. Script Script `json:"script"` @@ -35,8 +35,6 @@ func NewScriptScoreFunction() *ScriptScoreFunction { return r } -// true - type ScriptScoreFunctionVariant interface { ScriptScoreFunctionCaster() *ScriptScoreFunction } diff --git a/typedapi/types/scriptscorequery.go b/typedapi/types/scriptscorequery.go index 0043254498..5413814717 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScriptScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L348-L365 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -132,8 +132,6 @@ func NewScriptScoreQuery() *ScriptScoreQuery { return r } -// true - type ScriptScoreQueryVariant interface { ScriptScoreQueryCaster() *ScriptScoreQuery } diff --git a/typedapi/types/scriptsort.go b/typedapi/types/scriptsort.go index 08ea352446..17913245b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ import ( // ScriptSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L72-L78 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L72-L78 type ScriptSort struct { Mode *sortmode.SortMode `json:"mode,omitempty"` Nested *NestedSortValue `json:"nested,omitempty"` @@ -44,8 +44,6 @@ func NewScriptSort() *ScriptSort { return r } -// true - type ScriptSortVariant interface { ScriptSortCaster() *ScriptSort } diff --git a/typedapi/types/scriptsource.go b/typedapi/types/scriptsource.go index 61710d2174..6d8e517e20 100644 --- a/typedapi/types/scriptsource.go +++ b/typedapi/types/scriptsource.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // SearchRequestBody // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Scripting.ts#L48-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Scripting.ts#L48-L49 type ScriptSource any type ScriptSourceVariant interface { diff --git a/typedapi/types/scripttransform.go b/typedapi/types/scripttransform.go index a323951010..d5f1beb631 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ScriptTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Transform.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Transform.ts#L37-L45 type ScriptTransform struct { Id *string `json:"id,omitempty"` Lang *string `json:"lang,omitempty"` @@ -136,8 +136,6 @@ func NewScriptTransform() *ScriptTransform { return r } -// true - type ScriptTransformVariant interface { ScriptTransformCaster() *ScriptTransform } diff --git a/typedapi/types/scrollids.go b/typedapi/types/scrollids.go index 454a36a6b9..36df8b65d5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ScrollIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L50-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L50-L50 type ScrollIds []string type ScrollIdsVariant interface { diff --git a/typedapi/types/searchablesnapshotaction.go b/typedapi/types/searchablesnapshotaction.go index b45ff5c151..639620334e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L128-L131 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L128-L131 type SearchableSnapshotAction struct { ForceMergeIndex *bool `json:"force_merge_index,omitempty"` SnapshotRepository string `json:"snapshot_repository"` @@ -90,8 +90,6 @@ func NewSearchableSnapshotAction() *SearchableSnapshotAction { return r } -// true - type SearchableSnapshotActionVariant interface { SearchableSnapshotActionCaster() *SearchableSnapshotAction } diff --git a/typedapi/types/searchablesnapshots.go b/typedapi/types/searchablesnapshots.go index fe74e31b95..13da1a65ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshots type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L434-L438 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L434-L438 type SearchableSnapshots struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -142,5 +142,3 @@ func NewSearchableSnapshots() *SearchableSnapshots { return r } - -// false diff --git a/typedapi/types/searchaccess.go b/typedapi/types/searchaccess.go index b38af62caa..a0b3449a5d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L454-L474 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -158,8 +158,6 @@ func NewSearchAccess() *SearchAccess { return r } -// true - type SearchAccessVariant interface { SearchAccessCaster() *SearchAccess } diff --git a/typedapi/types/searchapplication.go b/typedapi/types/searchapplication.go index e6e5df84c7..8f18a01a40 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SearchApplication type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/SearchApplication.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -95,5 +95,3 @@ func NewSearchApplication() *SearchApplication { return r } - -// false diff --git a/typedapi/types/searchapplicationparameters.go b/typedapi/types/searchapplicationparameters.go index f8bc0b7614..c9c90f05de 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SearchApplicationParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -82,8 +82,6 @@ func NewSearchApplicationParameters() *SearchApplicationParameters { return r } -// true - type SearchApplicationParametersVariant interface { SearchApplicationParametersCaster() *SearchApplicationParameters } diff --git a/typedapi/types/searchapplicationtemplate.go b/typedapi/types/searchapplicationtemplate.go index 5242a02a68..2c88c248e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SearchApplicationTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 type SearchApplicationTemplate struct { // Script The associated mustache template. Script Script `json:"script"` @@ -35,8 +35,6 @@ func NewSearchApplicationTemplate() *SearchApplicationTemplate { return r } -// true - type SearchApplicationTemplateVariant interface { SearchApplicationTemplateCaster() *SearchApplicationTemplate } diff --git a/typedapi/types/searchasyoutypeproperty.go b/typedapi/types/searchasyoutypeproperty.go index 4c8b61b4c2..66a9d460ec 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // SearchAsYouTypeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L237-L248 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L247-L258 type SearchAsYouTypeProperty struct { Analyzer *string `json:"analyzer,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -249,6 +249,12 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -653,6 +659,12 @@ func (s *SearchAsYouTypeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -952,8 +964,6 @@ func NewSearchAsYouTypeProperty() *SearchAsYouTypeProperty { return r } -// true - type SearchAsYouTypePropertyVariant interface { SearchAsYouTypePropertyCaster() *SearchAsYouTypeProperty } @@ -961,3 +971,8 @@ type SearchAsYouTypePropertyVariant interface { func (s *SearchAsYouTypeProperty) SearchAsYouTypePropertyCaster() *SearchAsYouTypeProperty { return s } + +func (s *SearchAsYouTypeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/searchidle.go b/typedapi/types/searchidle.go index aa0fb17cd1..8164e9b7bc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SearchIdle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L253-L256 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L255-L258 type SearchIdle struct { After Duration `json:"after,omitempty"` } @@ -67,8 +67,6 @@ func NewSearchIdle() *SearchIdle { return r } -// true - type SearchIdleVariant interface { SearchIdleCaster() *SearchIdle } diff --git a/typedapi/types/searchinput.go b/typedapi/types/searchinput.go index 6441999d49..989e7020d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SearchInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L112-L116 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L109-L113 type SearchInput struct { Extract []string `json:"extract,omitempty"` Request SearchInputRequestDefinition `json:"request"` @@ -79,8 +79,6 @@ func NewSearchInput() *SearchInput { return r } -// true - type SearchInputVariant interface { SearchInputCaster() *SearchInput } diff --git a/typedapi/types/searchinputrequestbody.go b/typedapi/types/searchinputrequestbody.go index 1243cd7f12..df11713534 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SearchInputRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L147-L149 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L144-L146 type SearchInputRequestBody struct { Query Query `json:"query"` } @@ -34,8 +34,6 @@ func NewSearchInputRequestBody() *SearchInputRequestBody { return r } -// true - type SearchInputRequestBodyVariant interface { SearchInputRequestBodyCaster() *SearchInputRequestBody } diff --git a/typedapi/types/searchinputrequestdefinition.go b/typedapi/types/searchinputrequestdefinition.go index b1a4429fe7..26a1a66273 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SearchInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L118-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L115-L122 type SearchInputRequestDefinition struct { Body *SearchInputRequestBody `json:"body,omitempty"` Indices []string `json:"indices,omitempty"` @@ -109,8 +109,6 @@ func NewSearchInputRequestDefinition() *SearchInputRequestDefinition { return r } -// true - type SearchInputRequestDefinitionVariant interface { SearchInputRequestDefinitionCaster() *SearchInputRequestDefinition } diff --git a/typedapi/types/searchprofile.go b/typedapi/types/searchprofile.go index 2008a09726..8714a17ad0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L136-L140 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L136-L140 type SearchProfile struct { Collector []Collector `json:"collector"` Query []QueryProfile `json:"query"` @@ -89,5 +89,3 @@ func NewSearchProfile() *SearchProfile { return r } - -// false diff --git a/typedapi/types/searchrequestbody.go b/typedapi/types/searchrequestbody.go index cc229af83f..a550df2d91 100644 --- a/typedapi/types/searchrequestbody.go +++ b/typedapi/types/searchrequestbody.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/SearchRequestBody.ts#L42-L238 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/SearchRequestBody.ts#L42-L242 type SearchRequestBody struct { // Aggregations Defines the aggregations that are run as part of the search request. Aggregations map[string]Aggregations `json:"aggregations,omitempty"` @@ -544,8 +544,6 @@ func NewSearchRequestBody() *SearchRequestBody { return r } -// true - type SearchRequestBodyVariant interface { SearchRequestBodyCaster() *SearchRequestBody } @@ -553,3 +551,13 @@ type SearchRequestBodyVariant interface { func (s *SearchRequestBody) SearchRequestBodyCaster() *SearchRequestBody { return s } + +func (s *SearchRequestBody) MsearchRequestItemCaster() *MsearchRequestItem { + o := MsearchRequestItem(s) + return &o +} + +func (s *SearchRequestBody) ScriptSourceCaster() *ScriptSource { + o := ScriptSource(s) + return &o +} diff --git a/typedapi/types/searchshardsnodeattributes.go b/typedapi/types/searchshardsnodeattributes.go index 97d3129118..eea7f7c4d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SearchShardsNodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 type SearchShardsNodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` @@ -155,5 +155,3 @@ func NewSearchShardsNodeAttributes() *SearchShardsNodeAttributes { return r } - -// false diff --git a/typedapi/types/searchstats.go b/typedapi/types/searchstats.go index a4c9d2141a..ad9afa1b81 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L255-L274 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L277-L296 type SearchStats struct { FetchCurrent int64 `json:"fetch_current"` FetchTime Duration `json:"fetch_time,omitempty"` @@ -264,5 +264,3 @@ func NewSearchStats() *SearchStats { return r } - -// false diff --git a/typedapi/types/searchtemplaterequestbody.go b/typedapi/types/searchtemplaterequestbody.go index 8cdcbf3cd1..d7384859c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SearchTemplateRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L128-L145 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L125-L142 type SearchTemplateRequestBody struct { Explain *bool `json:"explain,omitempty"` // Id ID of the search template to use. If no source is specified, @@ -127,8 +127,6 @@ func NewSearchTemplateRequestBody() *SearchTemplateRequestBody { return r } -// true - type SearchTemplateRequestBodyVariant interface { SearchTemplateRequestBodyCaster() *SearchTemplateRequestBody } diff --git a/typedapi/types/searchtransform.go b/typedapi/types/searchtransform.go index fbf268d102..f1525f4195 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SearchTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Transform.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Transform.ts#L47-L50 type SearchTransform struct { Request SearchInputRequestDefinition `json:"request"` Timeout Duration `json:"timeout"` @@ -73,8 +73,6 @@ func NewSearchTransform() *SearchTransform { return r } -// true - type SearchTransformVariant interface { SearchTransformCaster() *SearchTransform } diff --git a/typedapi/types/searchusagestats.go b/typedapi/types/searchusagestats.go new file mode 100644 index 0000000000..41213a18e1 --- /dev/null +++ b/typedapi/types/searchusagestats.go @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SearchUsageStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L149-L155 +type SearchUsageStats struct { + Queries map[string]int64 `json:"queries"` + Rescorers map[string]int64 `json:"rescorers"` + Retrievers map[string]int64 `json:"retrievers"` + Sections map[string]int64 `json:"sections"` + Total int64 `json:"total"` +} + +func (s *SearchUsageStats) 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 "queries": + if s.Queries == nil { + s.Queries = make(map[string]int64, 0) + } + if err := dec.Decode(&s.Queries); err != nil { + return fmt.Errorf("%s | %w", "Queries", err) + } + + case "rescorers": + if s.Rescorers == nil { + s.Rescorers = make(map[string]int64, 0) + } + if err := dec.Decode(&s.Rescorers); err != nil { + return fmt.Errorf("%s | %w", "Rescorers", err) + } + + case "retrievers": + if s.Retrievers == nil { + s.Retrievers = make(map[string]int64, 0) + } + if err := dec.Decode(&s.Retrievers); err != nil { + return fmt.Errorf("%s | %w", "Retrievers", err) + } + + case "sections": + if s.Sections == nil { + s.Sections = make(map[string]int64, 0) + } + if err := dec.Decode(&s.Sections); err != nil { + return fmt.Errorf("%s | %w", "Sections", err) + } + + case "total": + 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", "Total", err) + } + s.Total = value + case float64: + f := int64(v) + s.Total = f + } + + } + } + return nil +} + +// NewSearchUsageStats returns a SearchUsageStats. +func NewSearchUsageStats() *SearchUsageStats { + r := &SearchUsageStats{ + Queries: make(map[string]int64), + Rescorers: make(map[string]int64), + Retrievers: make(map[string]int64), + Sections: make(map[string]int64), + } + + return r +} diff --git a/typedapi/types/security.go b/typedapi/types/security.go index 44ea291393..dbef0b40a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Security type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L440-L453 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L440-L453 type Security struct { Anonymous FeatureToggle `json:"anonymous"` ApiKeyService FeatureToggle `json:"api_key_service"` @@ -172,5 +172,3 @@ func NewSecurity() *Security { return r } - -// false diff --git a/typedapi/types/securityrolemapping.go b/typedapi/types/securityrolemapping.go index f201fe3649..a52f99de5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SecurityRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/RoleMapping.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/RoleMapping.ts#L25-L33 type SecurityRoleMapping struct { Enabled bool `json:"enabled"` Metadata Metadata `json:"metadata"` @@ -100,5 +100,3 @@ func NewSecurityRoleMapping() *SecurityRoleMapping { return r } - -// false diff --git a/typedapi/types/securityroles.go b/typedapi/types/securityroles.go index a4c056f644..02dd1f2813 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SecurityRoles type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L306-L310 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L306-L310 type SecurityRoles struct { Dls SecurityRolesDls `json:"dls"` File SecurityRolesFile `json:"file"` @@ -35,5 +35,3 @@ func NewSecurityRoles() *SecurityRoles { return r } - -// false diff --git a/typedapi/types/securityrolesdls.go b/typedapi/types/securityrolesdls.go index 0f885c5c55..1df789633c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SecurityRolesDls type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L318-L320 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L318-L320 type SecurityRolesDls struct { BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"` } @@ -33,5 +33,3 @@ func NewSecurityRolesDls() *SecurityRolesDls { return r } - -// false diff --git a/typedapi/types/securityrolesdlsbitsetcache.go b/typedapi/types/securityrolesdlsbitsetcache.go index d2766ea6e1..2fae637fa9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesDlsBitSetCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L322-L326 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L322-L326 type SecurityRolesDlsBitSetCache struct { Count int `json:"count"` Memory ByteSize `json:"memory,omitempty"` @@ -90,5 +90,3 @@ func NewSecurityRolesDlsBitSetCache() *SecurityRolesDlsBitSetCache { return r } - -// false diff --git a/typedapi/types/securityrolesfile.go b/typedapi/types/securityrolesfile.go index 811dd69add..a82a6628f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesFile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L328-L332 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L328-L332 type SecurityRolesFile struct { Dls bool `json:"dls"` Fls bool `json:"fls"` @@ -107,5 +107,3 @@ func NewSecurityRolesFile() *SecurityRolesFile { return r } - -// false diff --git a/typedapi/types/securityrolesnative.go b/typedapi/types/securityrolesnative.go index 743d5a9505..0e24f2d8a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesNative type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L312-L316 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L312-L316 type SecurityRolesNative struct { Dls bool `json:"dls"` Fls bool `json:"fls"` @@ -107,5 +107,3 @@ func NewSecurityRolesNative() *SecurityRolesNative { return r } - -// false diff --git a/typedapi/types/securitysettings.go b/typedapi/types/securitysettings.go index d99759b6ea..dbb7e7191d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SecuritySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/SecuritySettings.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/SecuritySettings.ts#L22-L24 type SecuritySettings struct { Index *IndexSettings `json:"index,omitempty"` } @@ -34,8 +34,6 @@ func NewSecuritySettings() *SecuritySettings { return r } -// true - type SecuritySettingsVariant interface { SecuritySettingsCaster() *SecuritySettings } diff --git a/typedapi/types/segment.go b/typedapi/types/segment.go index 1df1d826e6..8bfb19a192 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Segment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/segments/types.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/segments/types.ts#L28-L38 type Segment struct { Attributes map[string]string `json:"attributes"` Committed bool `json:"committed"` @@ -189,5 +189,3 @@ func NewSegment() *Segment { return r } - -// false diff --git a/typedapi/types/segmentsrecord.go b/typedapi/types/segmentsrecord.go index e1b15a59b9..435120ba3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SegmentsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/segments/types.ts#L22-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -259,5 +259,3 @@ func NewSegmentsRecord() *SegmentsRecord { return r } - -// false diff --git a/typedapi/types/segmentsstats.go b/typedapi/types/segmentsstats.go index 04249b2638..70456d3252 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SegmentsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L276-L369 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L298-L393 type SegmentsStats struct { // Count Total number of segments across all shards assigned to selected nodes. Count int `json:"count"` @@ -51,8 +51,7 @@ type SegmentsStats struct { FixedBitSet ByteSize `json:"fixed_bit_set,omitempty"` // FixedBitSetMemoryInBytes Total amount of memory, in bytes, used by fixed bit sets across all shards // assigned to selected nodes. - FixedBitSetMemoryInBytes int64 `json:"fixed_bit_set_memory_in_bytes"` - IndexWriterMaxMemoryInBytes *int64 `json:"index_writer_max_memory_in_bytes,omitempty"` + FixedBitSetMemoryInBytes int64 `json:"fixed_bit_set_memory_in_bytes"` // IndexWriterMemory Total amount of memory used by all index writers across all shards assigned // to selected nodes. IndexWriterMemory ByteSize `json:"index_writer_memory,omitempty"` @@ -80,16 +79,18 @@ type SegmentsStats struct { // PointsMemoryInBytes Total amount, in bytes, of memory used for points across all shards assigned // to selected nodes. PointsMemoryInBytes int64 `json:"points_memory_in_bytes"` + // StoredFieldsMemory Total amount of memory used for stored fields across all shards assigned to + // selected nodes. + StoredFieldsMemory ByteSize `json:"stored_fields_memory,omitempty"` // StoredFieldsMemoryInBytes Total amount, in bytes, of memory used for stored fields across all shards // assigned to selected nodes. - StoredFieldsMemoryInBytes int64 `json:"stored_fields_memory_in_bytes"` - StoredMemory ByteSize `json:"stored_memory,omitempty"` + StoredFieldsMemoryInBytes int64 `json:"stored_fields_memory_in_bytes"` + // TermVectorsMemory Total amount of memory used for term vectors across all shards assigned to + // selected nodes. + TermVectorsMemory ByteSize `json:"term_vectors_memory,omitempty"` // TermVectorsMemoryInBytes Total amount, in bytes, of memory used for term vectors across all shards // assigned to selected nodes. TermVectorsMemoryInBytes int64 `json:"term_vectors_memory_in_bytes"` - // TermVectoryMemory Total amount of memory used for term vectors across all shards assigned to - // selected nodes. - TermVectoryMemory ByteSize `json:"term_vectory_memory,omitempty"` // TermsMemory Total amount of memory used for terms across all shards assigned to selected // nodes. TermsMemory ByteSize `json:"terms_memory,omitempty"` @@ -183,21 +184,6 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error { s.FixedBitSetMemoryInBytes = f } - case "index_writer_max_memory_in_bytes": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "IndexWriterMaxMemoryInBytes", err) - } - s.IndexWriterMaxMemoryInBytes = &value - case float64: - f := int64(v) - s.IndexWriterMaxMemoryInBytes = &f - } - case "index_writer_memory": if err := dec.Decode(&s.IndexWriterMemory); err != nil { return fmt.Errorf("%s | %w", "IndexWriterMemory", err) @@ -293,6 +279,11 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error { s.PointsMemoryInBytes = f } + case "stored_fields_memory": + if err := dec.Decode(&s.StoredFieldsMemory); err != nil { + return fmt.Errorf("%s | %w", "StoredFieldsMemory", err) + } + case "stored_fields_memory_in_bytes": var tmp any dec.Decode(&tmp) @@ -308,9 +299,9 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error { s.StoredFieldsMemoryInBytes = f } - case "stored_memory": - if err := dec.Decode(&s.StoredMemory); err != nil { - return fmt.Errorf("%s | %w", "StoredMemory", err) + case "term_vectors_memory": + if err := dec.Decode(&s.TermVectorsMemory); err != nil { + return fmt.Errorf("%s | %w", "TermVectorsMemory", err) } case "term_vectors_memory_in_bytes": @@ -328,11 +319,6 @@ func (s *SegmentsStats) UnmarshalJSON(data []byte) error { s.TermVectorsMemoryInBytes = f } - case "term_vectory_memory": - if err := dec.Decode(&s.TermVectoryMemory); err != nil { - return fmt.Errorf("%s | %w", "TermVectoryMemory", err) - } - case "terms_memory": if err := dec.Decode(&s.TermsMemory); err != nil { return fmt.Errorf("%s | %w", "TermsMemory", err) @@ -386,5 +372,3 @@ func NewSegmentsStats() *SegmentsStats { return r } - -// false diff --git a/typedapi/types/selectoption.go b/typedapi/types/selectoption.go index 035bf7f39b..b8e5df0acc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SelectOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L25-L28 type SelectOption struct { Label string `json:"label"` Value ScalarValue `json:"value"` @@ -81,8 +81,6 @@ func NewSelectOption() *SelectOption { return r } -// true - type SelectOptionVariant interface { SelectOptionCaster() *SelectOption } diff --git a/typedapi/types/semanticquery.go b/typedapi/types/semanticquery.go index f37b6e4cdd..0da1038176 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SemanticQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -125,8 +125,6 @@ func NewSemanticQuery() *SemanticQuery { return r } -// true - type SemanticQueryVariant interface { SemanticQueryCaster() *SemanticQuery } diff --git a/typedapi/types/semantictextproperty.go b/typedapi/types/semantictextproperty.go index 0fe06d6fb5..b266f84e7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SemanticTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L219-L235 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L229-L245 type SemanticTextProperty struct { // 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 @@ -115,8 +115,6 @@ func NewSemanticTextProperty() *SemanticTextProperty { return r } -// true - type SemanticTextPropertyVariant interface { SemanticTextPropertyCaster() *SemanticTextProperty } @@ -124,3 +122,8 @@ type SemanticTextPropertyVariant interface { func (s *SemanticTextProperty) SemanticTextPropertyCaster() *SemanticTextProperty { return s } + +func (s *SemanticTextProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/serbiananalyzer.go b/typedapi/types/serbiananalyzer.go index 08571edfb5..f5b726905d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // SerbianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L282-L287 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L282-L287 type SerbianAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *SerbianAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *SerbianAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewSerbianAnalyzer() *SerbianAnalyzer { return r } -// true - type SerbianAnalyzerVariant interface { SerbianAnalyzerCaster() *SerbianAnalyzer } @@ -128,3 +115,8 @@ type SerbianAnalyzerVariant interface { func (s *SerbianAnalyzer) SerbianAnalyzerCaster() *SerbianAnalyzer { return s } + +func (s *SerbianAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/serbiannormalizationtokenfilter.go b/typedapi/types/serbiannormalizationtokenfilter.go new file mode 100644 index 0000000000..20597a2f6f --- /dev/null +++ b/typedapi/types/serbiannormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// SerbianNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L539-L541 +type SerbianNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *SerbianNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SerbianNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerSerbianNormalizationTokenFilter SerbianNormalizationTokenFilter + tmp := innerSerbianNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "serbian_normalization" + + return json.Marshal(tmp) +} + +// NewSerbianNormalizationTokenFilter returns a SerbianNormalizationTokenFilter. +func NewSerbianNormalizationTokenFilter() *SerbianNormalizationTokenFilter { + r := &SerbianNormalizationTokenFilter{} + + return r +} + +type SerbianNormalizationTokenFilterVariant interface { + SerbianNormalizationTokenFilterCaster() *SerbianNormalizationTokenFilter +} + +func (s *SerbianNormalizationTokenFilter) SerbianNormalizationTokenFilterCaster() *SerbianNormalizationTokenFilter { + return s +} + +func (s *SerbianNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/serialdifferencingaggregation.go b/typedapi/types/serialdifferencingaggregation.go index 6c93e84f97..49978d5958 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SerialDifferencingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L399-L408 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -113,8 +113,6 @@ func NewSerialDifferencingAggregation() *SerialDifferencingAggregation { return r } -// true - type SerialDifferencingAggregationVariant interface { SerialDifferencingAggregationCaster() *SerialDifferencingAggregation } diff --git a/typedapi/types/serializedclusterstate.go b/typedapi/types/serializedclusterstate.go index 3d3f08967d..82fb379ce7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SerializedClusterState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L234-L240 type SerializedClusterState struct { Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"` // FullStates Number of published cluster states. @@ -35,5 +35,3 @@ func NewSerializedClusterState() *SerializedClusterState { return r } - -// false diff --git a/typedapi/types/serializedclusterstatedetail.go b/typedapi/types/serializedclusterstatedetail.go index a622823e73..268caba1e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SerializedClusterStateDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L240-L246 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L242-L248 type SerializedClusterStateDetail struct { CompressedSize *string `json:"compressed_size,omitempty"` CompressedSizeInBytes *int64 `json:"compressed_size_in_bytes,omitempty"` @@ -135,5 +135,3 @@ func NewSerializedClusterStateDetail() *SerializedClusterStateDetail { return r } - -// false diff --git a/typedapi/types/servicetoken.go b/typedapi/types/servicetoken.go index 03750a4400..ec61b4691f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ServiceToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/create_service_token/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/create_service_token/types.ts#L22-L25 type ServiceToken struct { Name string `json:"name"` Value string `json:"value"` @@ -80,5 +80,3 @@ func NewServiceToken() *ServiceToken { return r } - -// false diff --git a/typedapi/types/setpriorityaction.go b/typedapi/types/setpriorityaction.go index d35bb73198..7c28d62746 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SetPriorityAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L95-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L95-L97 type SetPriorityAction struct { Priority *int `json:"priority,omitempty"` } @@ -79,8 +79,6 @@ func NewSetPriorityAction() *SetPriorityAction { return r } -// true - type SetPriorityActionVariant interface { SetPriorityActionCaster() *SetPriorityAction } diff --git a/typedapi/types/setprocessor.go b/typedapi/types/setprocessor.go index f2f54358cd..be144ca1e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SetProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1445-L1479 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1445-L1479 type SetProcessor struct { // CopyFrom The origin field which will be copied to `field`, cannot set `value` // simultaneously. @@ -201,8 +201,6 @@ func NewSetProcessor() *SetProcessor { return r } -// true - type SetProcessorVariant interface { SetProcessorCaster() *SetProcessor } diff --git a/typedapi/types/setsecurityuserprocessor.go b/typedapi/types/setsecurityuserprocessor.go index 85bf22c317..668b361ce5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SetSecurityUserProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1481-L1490 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1481-L1490 type SetSecurityUserProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -136,8 +136,6 @@ func NewSetSecurityUserProcessor() *SetSecurityUserProcessor { return r } -// true - type SetSecurityUserProcessorVariant interface { SetSecurityUserProcessorCaster() *SetSecurityUserProcessor } diff --git a/typedapi/types/settings.go b/typedapi/types/settings.go index d4e46f65ce..baf596a0a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Settings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L98-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -183,8 +183,6 @@ func NewSettings() *Settings { return r } -// true - type SettingsVariant interface { SettingsCaster() *Settings } diff --git a/typedapi/types/settingsanalyze.go b/typedapi/types/settingsanalyze.go index d97da1c6f2..c8fdb01875 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SettingsAnalyze type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L243-L246 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L245-L248 type SettingsAnalyze struct { MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` } @@ -67,8 +67,6 @@ func NewSettingsAnalyze() *SettingsAnalyze { return r } -// true - type SettingsAnalyzeVariant interface { SettingsAnalyzeCaster() *SettingsAnalyze } diff --git a/typedapi/types/settingshighlight.go b/typedapi/types/settingshighlight.go index 9e28908f6f..f3486dcff5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SettingsHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L238-L241 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L240-L243 type SettingsHighlight struct { MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"` } @@ -79,8 +79,6 @@ func NewSettingsHighlight() *SettingsHighlight { return r } -// true - type SettingsHighlightVariant interface { SettingsHighlightCaster() *SettingsHighlight } diff --git a/typedapi/types/settingsquerystring.go b/typedapi/types/settingsquerystring.go index 460dd0acb8..988d252bc8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SettingsQueryString type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L258-L260 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L260-L262 type SettingsQueryString struct { Lenient Stringifiedboolean `json:"lenient"` } @@ -67,8 +67,6 @@ func NewSettingsQueryString() *SettingsQueryString { return r } -// true - type SettingsQueryStringVariant interface { SettingsQueryStringCaster() *SettingsQueryString } diff --git a/typedapi/types/settingssearch.go b/typedapi/types/settingssearch.go index 30279f3103..4eefa5f457 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SettingsSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L248-L251 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L250-L253 type SettingsSearch struct { Idle *SearchIdle `json:"idle,omitempty"` Slowlog *SlowlogSettings `json:"slowlog,omitempty"` @@ -35,8 +35,6 @@ func NewSettingsSearch() *SettingsSearch { return r } -// true - type SettingsSearchVariant interface { SettingsSearchCaster() *SettingsSearch } diff --git a/typedapi/types/settingssimilarity.go b/typedapi/types/settingssimilarity.go index 34d251d4b4..687050cca1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ package types // SettingsSimilarityLmj // SettingsSimilarityScripted // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L178-L190 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L180-L192 type SettingsSimilarity any type SettingsSimilarityVariant interface { diff --git a/typedapi/types/settingssimilaritybm25.go b/typedapi/types/settingssimilaritybm25.go index 3bc6c54a7b..41964a8a99 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityBm25 type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L196-L201 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L198-L203 type SettingsSimilarityBm25 struct { B *Float64 `json:"b,omitempty"` DiscountOverlaps *bool `json:"discount_overlaps,omitempty"` @@ -132,8 +132,6 @@ func NewSettingsSimilarityBm25() *SettingsSimilarityBm25 { return r } -// true - type SettingsSimilarityBm25Variant interface { SettingsSimilarityBm25Caster() *SettingsSimilarityBm25 } @@ -141,3 +139,8 @@ type SettingsSimilarityBm25Variant interface { func (s *SettingsSimilarityBm25) SettingsSimilarityBm25Caster() *SettingsSimilarityBm25 { return s } + +func (s *SettingsSimilarityBm25) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilarityboolean.go b/typedapi/types/settingssimilarityboolean.go index 3f85097662..9e138023c2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityBoolean type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L192-L194 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L194-L196 type SettingsSimilarityBoolean struct { Type string `json:"type,omitempty"` } @@ -50,8 +50,6 @@ func NewSettingsSimilarityBoolean() *SettingsSimilarityBoolean { return r } -// true - type SettingsSimilarityBooleanVariant interface { SettingsSimilarityBooleanCaster() *SettingsSimilarityBoolean } @@ -59,3 +57,8 @@ type SettingsSimilarityBooleanVariant interface { func (s *SettingsSimilarityBoolean) SettingsSimilarityBooleanCaster() *SettingsSimilarityBoolean { return s } + +func (s *SettingsSimilarityBoolean) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilaritydfi.go b/typedapi/types/settingssimilaritydfi.go index 9a46b11003..5551899143 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ import ( // SettingsSimilarityDfi type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L203-L206 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L205-L208 type SettingsSimilarityDfi struct { IndependenceMeasure dfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"` Type string `json:"type,omitempty"` @@ -54,8 +54,6 @@ func NewSettingsSimilarityDfi() *SettingsSimilarityDfi { return r } -// true - type SettingsSimilarityDfiVariant interface { SettingsSimilarityDfiCaster() *SettingsSimilarityDfi } @@ -63,3 +61,8 @@ type SettingsSimilarityDfiVariant interface { func (s *SettingsSimilarityDfi) SettingsSimilarityDfiCaster() *SettingsSimilarityDfi { return s } + +func (s *SettingsSimilarityDfi) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilaritydfr.go b/typedapi/types/settingssimilaritydfr.go index 9da180fb24..92347b5d35 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityDfr type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L208-L213 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L210-L215 type SettingsSimilarityDfr struct { AfterEffect dfraftereffect.DFRAfterEffect `json:"after_effect"` BasicModel dfrbasicmodel.DFRBasicModel `json:"basic_model"` @@ -60,8 +60,6 @@ func NewSettingsSimilarityDfr() *SettingsSimilarityDfr { return r } -// true - type SettingsSimilarityDfrVariant interface { SettingsSimilarityDfrCaster() *SettingsSimilarityDfr } @@ -69,3 +67,8 @@ type SettingsSimilarityDfrVariant interface { func (s *SettingsSimilarityDfr) SettingsSimilarityDfrCaster() *SettingsSimilarityDfr { return s } + +func (s *SettingsSimilarityDfr) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilarityib.go b/typedapi/types/settingssimilarityib.go index 5bc58f82ba..d46da6ff76 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SettingsSimilarityIb type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L215-L220 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L217-L222 type SettingsSimilarityIb struct { Distribution ibdistribution.IBDistribution `json:"distribution"` Lambda iblambda.IBLambda `json:"lambda"` @@ -60,8 +60,6 @@ func NewSettingsSimilarityIb() *SettingsSimilarityIb { return r } -// true - type SettingsSimilarityIbVariant interface { SettingsSimilarityIbCaster() *SettingsSimilarityIb } @@ -69,3 +67,8 @@ type SettingsSimilarityIbVariant interface { func (s *SettingsSimilarityIb) SettingsSimilarityIbCaster() *SettingsSimilarityIb { return s } + +func (s *SettingsSimilarityIb) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilaritylmd.go b/typedapi/types/settingssimilaritylmd.go index f62a2a8736..02a0637b56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmd type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L222-L225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L224-L227 type SettingsSimilarityLmd struct { Mu *Float64 `json:"mu,omitempty"` Type string `json:"type,omitempty"` @@ -98,8 +98,6 @@ func NewSettingsSimilarityLmd() *SettingsSimilarityLmd { return r } -// true - type SettingsSimilarityLmdVariant interface { SettingsSimilarityLmdCaster() *SettingsSimilarityLmd } @@ -107,3 +105,8 @@ type SettingsSimilarityLmdVariant interface { func (s *SettingsSimilarityLmd) SettingsSimilarityLmdCaster() *SettingsSimilarityLmd { return s } + +func (s *SettingsSimilarityLmd) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilaritylmj.go b/typedapi/types/settingssimilaritylmj.go index d9455d98a0..43f2aa4eb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmj type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L227-L230 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L229-L232 type SettingsSimilarityLmj struct { Lambda *Float64 `json:"lambda,omitempty"` Type string `json:"type,omitempty"` @@ -98,8 +98,6 @@ func NewSettingsSimilarityLmj() *SettingsSimilarityLmj { return r } -// true - type SettingsSimilarityLmjVariant interface { SettingsSimilarityLmjCaster() *SettingsSimilarityLmj } @@ -107,3 +105,8 @@ type SettingsSimilarityLmjVariant interface { func (s *SettingsSimilarityLmj) SettingsSimilarityLmjCaster() *SettingsSimilarityLmj { return s } + +func (s *SettingsSimilarityLmj) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/settingssimilarityscripted.go b/typedapi/types/settingssimilarityscripted.go index 34c6d7dc0b..275378f69a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityScripted type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L232-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L234-L238 type SettingsSimilarityScripted struct { Script Script `json:"script"` Type string `json:"type,omitempty"` @@ -54,8 +54,6 @@ func NewSettingsSimilarityScripted() *SettingsSimilarityScripted { return r } -// true - type SettingsSimilarityScriptedVariant interface { SettingsSimilarityScriptedCaster() *SettingsSimilarityScripted } @@ -63,3 +61,8 @@ type SettingsSimilarityScriptedVariant interface { func (s *SettingsSimilarityScripted) SettingsSimilarityScriptedCaster() *SettingsSimilarityScripted { return s } + +func (s *SettingsSimilarityScripted) SettingsSimilarityCaster() *SettingsSimilarity { + o := SettingsSimilarity(s) + return &o +} diff --git a/typedapi/types/shapefieldquery.go b/typedapi/types/shapefieldquery.go index bceb3baef1..4112292b68 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L383-L396 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/specialized.ts#L383-L396 type ShapeFieldQuery struct { // IndexedShape Queries using a pre-indexed shape. IndexedShape *FieldLookup `json:"indexed_shape,omitempty"` @@ -85,8 +85,6 @@ func NewShapeFieldQuery() *ShapeFieldQuery { return r } -// true - type ShapeFieldQueryVariant interface { ShapeFieldQueryCaster() *ShapeFieldQuery } diff --git a/typedapi/types/shapeproperty.go b/typedapi/types/shapeproperty.go index 4400d5b381..785fee76a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // ShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/geo.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/geo.ts#L81-L93 type ShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` @@ -260,6 +260,12 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -648,6 +654,12 @@ func (s *ShapeProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -902,8 +914,6 @@ func NewShapeProperty() *ShapeProperty { return r } -// true - type ShapePropertyVariant interface { ShapePropertyCaster() *ShapeProperty } @@ -911,3 +921,8 @@ type ShapePropertyVariant interface { func (s *ShapeProperty) ShapePropertyCaster() *ShapeProperty { return s } + +func (s *ShapeProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/shapequery.go b/typedapi/types/shapequery.go index 72bf269624..b7cbc8e183 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L367-L381 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -159,8 +159,6 @@ func NewShapeQuery() *ShapeQuery { return r } -// true - type ShapeQueryVariant interface { ShapeQueryCaster() *ShapeQuery } diff --git a/typedapi/types/shardcommit.go b/typedapi/types/shardcommit.go index 225b7567c9..47a30253a4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardCommit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L112-L117 type ShardCommit struct { Generation int `json:"generation"` Id string `json:"id"` @@ -111,5 +111,3 @@ func NewShardCommit() *ShardCommit { return r } - -// false diff --git a/typedapi/types/shardfailure.go b/typedapi/types/shardfailure.go index 4fb2d6ca70..1e5c929d20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Errors.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Errors.ts#L52-L58 type ShardFailure struct { Index *string `json:"index,omitempty"` Node *string `json:"node,omitempty"` @@ -116,5 +116,3 @@ func NewShardFailure() *ShardFailure { return r } - -// false diff --git a/typedapi/types/shardfilesizeinfo.go b/typedapi/types/shardfilesizeinfo.go index 57351f0210..2064c0b0b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardFileSizeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L124-L131 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L124-L131 type ShardFileSizeInfo struct { AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"` Count *int64 `json:"count,omitempty"` @@ -154,5 +154,3 @@ func NewShardFileSizeInfo() *ShardFileSizeInfo { return r } - -// false diff --git a/typedapi/types/shardhealthstats.go b/typedapi/types/shardhealthstats.go index 3c01ce7982..e6134f9b9f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ShardHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/health/types.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/health/types.ts#L37-L45 type ShardHealthStats struct { ActiveShards int `json:"active_shards"` InitializingShards int `json:"initializing_shards"` @@ -169,5 +169,3 @@ func NewShardHealthStats() *ShardHealthStats { return r } - -// false diff --git a/typedapi/types/shardlease.go b/typedapi/types/shardlease.go index 0b513513d4..0a12adf2aa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L133-L138 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L133-L138 type ShardLease struct { Id string `json:"id"` RetainingSeqNo int64 `json:"retaining_seq_no"` @@ -102,5 +102,3 @@ func NewShardLease() *ShardLease { return r } - -// false diff --git a/typedapi/types/shardmigrationstatus.go b/typedapi/types/shardmigrationstatus.go index e79b65aba8..81bb3e3b9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // ShardMigrationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 type ShardMigrationStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } @@ -37,5 +37,3 @@ func NewShardMigrationStatus() *ShardMigrationStatus { return r } - -// false diff --git a/typedapi/types/shardpath.go b/typedapi/types/shardpath.go index cc30ae6296..f9d3af3501 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L140-L144 type ShardPath struct { DataPath string `json:"data_path"` IsCustomDataPath bool `json:"is_custom_data_path"` @@ -102,5 +102,3 @@ func NewShardPath() *ShardPath { return r } - -// false diff --git a/typedapi/types/shardprofile.go b/typedapi/types/shardprofile.go index 271ae62ca1..0bddf4a6b2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/profile.ts#L142-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/profile.ts#L142-L152 type ShardProfile struct { Aggregations []AggregationProfile `json:"aggregations"` Cluster string `json:"cluster"` @@ -41,7 +41,7 @@ type ShardProfile struct { Index string `json:"index"` NodeId string `json:"node_id"` Searches []SearchProfile `json:"searches"` - ShardId int64 `json:"shard_id"` + ShardId int `json:"shard_id"` } func (s *ShardProfile) UnmarshalJSON(data []byte) error { @@ -114,17 +114,18 @@ func (s *ShardProfile) UnmarshalJSON(data []byte) error { } case "shard_id": + var tmp any dec.Decode(&tmp) switch v := tmp.(type) { case string: - value, err := strconv.ParseInt(v, 10, 64) + value, err := strconv.Atoi(v) if err != nil { return fmt.Errorf("%s | %w", "ShardId", err) } s.ShardId = value case float64: - f := int64(v) + f := int(v) s.ShardId = f } @@ -139,5 +140,3 @@ func NewShardProfile() *ShardProfile { return r } - -// false diff --git a/typedapi/types/shardquerycache.go b/typedapi/types/shardquerycache.go index 8504243605..af2a7cf26a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardQueryCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L146-L154 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L146-L154 type ShardQueryCache struct { CacheCount int64 `json:"cache_count"` CacheSize int64 `json:"cache_size"` @@ -173,5 +173,3 @@ func NewShardQueryCache() *ShardQueryCache { return r } - -// false diff --git a/typedapi/types/shardrecovery.go b/typedapi/types/shardrecovery.go index 3b6b72f135..16351318e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L118-L135 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L118-L135 type ShardRecovery struct { Id int64 `json:"id"` Index RecoveryIndexStatus `json:"index"` @@ -190,5 +190,3 @@ func NewShardRecovery() *ShardRecovery { return r } - -// false diff --git a/typedapi/types/shardretentionleases.go b/typedapi/types/shardretentionleases.go index 5f7e13b3b3..8c5dacbf4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardRetentionLeases type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L156-L160 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L156-L160 type ShardRetentionLeases struct { Leases []ShardLease `json:"leases"` PrimaryTerm int64 `json:"primary_term"` @@ -89,5 +89,3 @@ func NewShardRetentionLeases() *ShardRetentionLeases { return r } - -// false diff --git a/typedapi/types/shardrouting.go b/typedapi/types/shardrouting.go index deae3add74..07f6ff5bdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ShardRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L162-L167 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L162-L167 type ShardRouting struct { Node string `json:"node"` Primary bool `json:"primary"` @@ -110,5 +110,3 @@ func NewShardRouting() *ShardRouting { return r } - -// false diff --git a/typedapi/types/shardsavailabilityindicator.go b/typedapi/types/shardsavailabilityindicator.go index dbcaf46456..3ca339831b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ShardsAvailabilityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L107-L111 type ShardsAvailabilityIndicator struct { Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewShardsAvailabilityIndicator() *ShardsAvailabilityIndicator { return r } - -// false diff --git a/typedapi/types/shardsavailabilityindicatordetails.go b/typedapi/types/shardsavailabilityindicatordetails.go index 70e6159a0b..103d304c00 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsAvailabilityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L111-L122 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L112-L123 type ShardsAvailabilityIndicatorDetails struct { CreatingPrimaries int64 `json:"creating_primaries"` CreatingReplicas int64 `json:"creating_replicas"` @@ -221,5 +221,3 @@ func NewShardsAvailabilityIndicatorDetails() *ShardsAvailabilityIndicatorDetails return r } - -// false diff --git a/typedapi/types/shardscapacityindicator.go b/typedapi/types/shardscapacityindicator.go index d458599266..b6eb0f8398 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // ShardsCapacityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L191-L195 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L192-L196 type ShardsCapacityIndicator struct { Details *ShardsCapacityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewShardsCapacityIndicator() *ShardsCapacityIndicator { return r } - -// false diff --git a/typedapi/types/shardscapacityindicatordetails.go b/typedapi/types/shardscapacityindicatordetails.go index f9d43bf2fa..f9d63a1461 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ShardsCapacityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L198-L201 type ShardsCapacityIndicatorDetails struct { Data ShardsCapacityIndicatorTierDetail `json:"data"` Frozen ShardsCapacityIndicatorTierDetail `json:"frozen"` @@ -34,5 +34,3 @@ func NewShardsCapacityIndicatorDetails() *ShardsCapacityIndicatorDetails { return r } - -// false diff --git a/typedapi/types/shardscapacityindicatortierdetail.go b/typedapi/types/shardscapacityindicatortierdetail.go index 86ae89e037..429a4866ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsCapacityIndicatorTierDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L202-L205 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L203-L206 type ShardsCapacityIndicatorTierDetail struct { CurrentUsedShards *int `json:"current_used_shards,omitempty"` MaxShardsInCluster int `json:"max_shards_in_cluster"` @@ -95,5 +95,3 @@ func NewShardsCapacityIndicatorTierDetail() *ShardsCapacityIndicatorTierDetail { return r } - -// false diff --git a/typedapi/types/shardsegmentrouting.go b/typedapi/types/shardsegmentrouting.go index ad31c0c37b..a8d0ce1db0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardSegmentRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/segments/types.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/segments/types.ts#L40-L44 type ShardSegmentRouting struct { Node string `json:"node"` Primary bool `json:"primary"` @@ -102,5 +102,3 @@ func NewShardSegmentRouting() *ShardSegmentRouting { return r } - -// false diff --git a/typedapi/types/shardsequencenumber.go b/typedapi/types/shardsequencenumber.go index a5b0a91712..30a4b183ee 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardSequenceNumber type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L176-L180 type ShardSequenceNumber struct { GlobalCheckpoint int64 `json:"global_checkpoint"` LocalCheckpoint int64 `json:"local_checkpoint"` @@ -99,5 +99,3 @@ func NewShardSequenceNumber() *ShardSequenceNumber { return r } - -// false diff --git a/typedapi/types/shardsrecord.go b/typedapi/types/shardsrecord.go index 374aefd85c..79424a36a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/shards/types.ts#L20-L427 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -1179,5 +1179,3 @@ func NewShardsRecord() *ShardsRecord { return r } - -// false diff --git a/typedapi/types/shardssegment.go b/typedapi/types/shardssegment.go index 65653a9e10..4c9bf49f0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/segments/types.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/segments/types.ts#L46-L51 type ShardsSegment struct { NumCommittedSegments int `json:"num_committed_segments"` NumSearchSegments int `json:"num_search_segments"` @@ -112,5 +112,3 @@ func NewShardsSegment() *ShardsSegment { return r } - -// false diff --git a/typedapi/types/shardsstatssummary.go b/typedapi/types/shardsstatssummary.go index b53b93fff8..be93412b33 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ShardsStatsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 type ShardsStatsSummary struct { Incremental ShardsStatsSummaryItem `json:"incremental"` StartTimeInMillis int64 `json:"start_time_in_millis"` @@ -90,5 +90,3 @@ func NewShardsStatsSummary() *ShardsStatsSummary { return r } - -// false diff --git a/typedapi/types/shardsstatssummaryitem.go b/typedapi/types/shardsstatssummaryitem.go index 0e05cb83b1..8bc729b900 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsStatsSummaryItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 type ShardsStatsSummaryItem struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` @@ -93,5 +93,3 @@ func NewShardsStatsSummaryItem() *ShardsStatsSummaryItem { return r } - -// false diff --git a/typedapi/types/shardstatistics.go b/typedapi/types/shardstatistics.go index ce3d7aea33..786eb75141 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ShardStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L54-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -40,5 +40,3 @@ func NewShardStatistics() *ShardStatistics { return r } - -// false diff --git a/typedapi/types/shardstore.go b/typedapi/types/shardstore.go index 649d393316..56ec3c7a85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // ShardStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L29-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/shard_stores/types.ts#L29-L36 type ShardStore struct { Allocation shardstoreallocation.ShardStoreAllocation `json:"allocation"` AllocationId *string `json:"allocation_id,omitempty"` @@ -125,5 +125,3 @@ func NewShardStore() *ShardStore { return r } - -// false diff --git a/typedapi/types/shardstoreexception.go b/typedapi/types/shardstoreexception.go index 7121192a05..f2cf32c537 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardStoreException type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/shard_stores/types.ts#L53-L56 type ShardStoreException struct { Reason string `json:"reason"` Type string `json:"type"` @@ -87,5 +87,3 @@ func NewShardStoreException() *ShardStoreException { return r } - -// false diff --git a/typedapi/types/shardstoreindex.go b/typedapi/types/shardstoreindex.go index 7d7fc6d156..b7a1de7bc7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ShardStoreIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 type ShardStoreIndex struct { Aliases []string `json:"aliases,omitempty"` Filter *Query `json:"filter,omitempty"` @@ -34,5 +34,3 @@ func NewShardStoreIndex() *ShardStoreIndex { return r } - -// false diff --git a/typedapi/types/shardstorenode.go b/typedapi/types/shardstorenode.go index 65d7b0f79d..840b470d3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardStoreNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L38-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/shard_stores/types.ts#L38-L45 type ShardStoreNode struct { Attributes map[string]string `json:"attributes"` EphemeralId *string `json:"ephemeral_id,omitempty"` @@ -116,5 +116,3 @@ func NewShardStoreNode() *ShardStoreNode { return r } - -// false diff --git a/typedapi/types/shardstorewrapper.go b/typedapi/types/shardstorewrapper.go index 9364da8939..0c9bdc894a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // ShardStoreWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/shard_stores/types.ts#L58-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/shard_stores/types.ts#L58-L60 type ShardStoreWrapper struct { Stores []ShardStore `json:"stores"` } @@ -33,5 +33,3 @@ func NewShardStoreWrapper() *ShardStoreWrapper { return r } - -// false diff --git a/typedapi/types/shardstotalstats.go b/typedapi/types/shardstotalstats.go index 8f313c7577..acf5c97c6a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShardsTotalStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/stats/types.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/stats/types.ts#L182-L184 type ShardsTotalStats struct { TotalCount int64 `json:"total_count"` } @@ -77,5 +77,3 @@ func NewShardsTotalStats() *ShardsTotalStats { return r } - -// false diff --git a/typedapi/types/shared.go b/typedapi/types/shared.go index 44687eab60..b5179321df 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Shared type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -150,5 +150,3 @@ func NewShared() *Shared { return r } - -// false diff --git a/typedapi/types/sharedfilesystemrepository.go b/typedapi/types/sharedfilesystemrepository.go index bd730f9e93..a73d4a4926 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SharedFileSystemRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L80-L90 type SharedFileSystemRepository struct { // Settings The repository settings. Settings SharedFileSystemRepositorySettings `json:"settings"` @@ -95,8 +95,6 @@ func NewSharedFileSystemRepository() *SharedFileSystemRepository { return r } -// true - type SharedFileSystemRepositoryVariant interface { SharedFileSystemRepositoryCaster() *SharedFileSystemRepository } @@ -104,3 +102,8 @@ type SharedFileSystemRepositoryVariant interface { func (s *SharedFileSystemRepository) SharedFileSystemRepositoryCaster() *SharedFileSystemRepository { return s } + +func (s *SharedFileSystemRepository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/sharedfilesystemrepositorysettings.go b/typedapi/types/sharedfilesystemrepositorysettings.go index b170201f8c..875caab28b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SharedFileSystemRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L348-L375 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L348-L375 type SharedFileSystemRepositorySettings struct { // ChunkSize Big files can be broken down into multiple smaller blobs in the blob store // during snapshotting. @@ -182,8 +182,6 @@ func NewSharedFileSystemRepositorySettings() *SharedFileSystemRepositorySettings return r } -// true - type SharedFileSystemRepositorySettingsVariant interface { SharedFileSystemRepositorySettingsCaster() *SharedFileSystemRepositorySettings } diff --git a/typedapi/types/shingletokenfilter.go b/typedapi/types/shingletokenfilter.go index 51e45bf188..d72cc12ef7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,16 +31,31 @@ import ( // ShingleTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L86-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L109-L123 type ShingleTokenFilter struct { - FillerToken *string `json:"filler_token,omitempty"` - MaxShingleSize string `json:"max_shingle_size,omitempty"` - MinShingleSize string `json:"min_shingle_size,omitempty"` - OutputUnigrams *bool `json:"output_unigrams,omitempty"` - OutputUnigramsIfNoShingles *bool `json:"output_unigrams_if_no_shingles,omitempty"` - TokenSeparator *string `json:"token_separator,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // FillerToken String used in shingles as a replacement for empty positions that do not + // contain a token. This filler token is only used in shingles, not original + // unigrams. Defaults to an underscore (`_`). + FillerToken *string `json:"filler_token,omitempty"` + // MaxShingleSize Maximum number of tokens to concatenate when creating shingles. Defaults to + // `2`. + MaxShingleSize Stringifiedinteger `json:"max_shingle_size,omitempty"` + // MinShingleSize Minimum number of tokens to concatenate when creating shingles. Defaults to + // `2`. + MinShingleSize Stringifiedinteger `json:"min_shingle_size,omitempty"` + // OutputUnigrams If `true`, the output includes the original input tokens. If `false`, the + // output only includes shingles; the original input tokens are removed. + // Defaults to `true`. + OutputUnigrams *bool `json:"output_unigrams,omitempty"` + // OutputUnigramsIfNoShingles If `true`, the output includes the original input tokens only if no shingles + // are produced; if shingles are produced, the output only includes shingles. + // Defaults to `false`. + OutputUnigramsIfNoShingles *bool `json:"output_unigrams_if_no_shingles,omitempty"` + // TokenSeparator Separator used to concatenate adjacent tokens to form a shingle. Defaults to + // a space (`" "`). + TokenSeparator *string `json:"token_separator,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *ShingleTokenFilter) UnmarshalJSON(data []byte) error { @@ -71,28 +86,14 @@ func (s *ShingleTokenFilter) UnmarshalJSON(data []byte) error { s.FillerToken = &o case "max_shingle_size": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.MaxShingleSize); err != nil { return fmt.Errorf("%s | %w", "MaxShingleSize", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.MaxShingleSize = o case "min_shingle_size": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.MinShingleSize); err != nil { return fmt.Errorf("%s | %w", "MinShingleSize", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.MinShingleSize = o case "output_unigrams": var tmp any @@ -175,8 +176,6 @@ func NewShingleTokenFilter() *ShingleTokenFilter { return r } -// true - type ShingleTokenFilterVariant interface { ShingleTokenFilterCaster() *ShingleTokenFilter } @@ -184,3 +183,8 @@ type ShingleTokenFilterVariant interface { func (s *ShingleTokenFilter) ShingleTokenFilterCaster() *ShingleTokenFilter { return s } + +func (s *ShingleTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/shortnumberproperty.go b/typedapi/types/shortnumberproperty.go index 799c198fbe..d017cf4f1e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // ShortNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L180-L183 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L180-L183 type ShortNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -679,6 +685,12 @@ func (s *ShortNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -962,8 +974,6 @@ func NewShortNumberProperty() *ShortNumberProperty { return r } -// true - type ShortNumberPropertyVariant interface { ShortNumberPropertyCaster() *ShortNumberProperty } @@ -971,3 +981,8 @@ type ShortNumberPropertyVariant interface { func (s *ShortNumberProperty) ShortNumberPropertyCaster() *ShortNumberProperty { return s } + +func (s *ShortNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/shrinkaction.go b/typedapi/types/shrinkaction.go index e93c2ec939..1d7ee106f0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ShrinkAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L117-L121 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -100,8 +100,6 @@ func NewShrinkAction() *ShrinkAction { return r } -// true - type ShrinkActionVariant interface { ShrinkActionCaster() *ShrinkAction } diff --git a/typedapi/types/significantlongtermsaggregate.go b/typedapi/types/significantlongtermsaggregate.go index 3e0da222a0..77d060d4a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SignificantLongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L668-L670 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L670-L672 type SignificantLongTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantLongTermsBucket `json:"buckets"` @@ -121,5 +121,3 @@ func NewSignificantLongTermsAggregate() *SignificantLongTermsAggregate { return r } - -// false diff --git a/typedapi/types/significantlongtermsbucket.go b/typedapi/types/significantlongtermsbucket.go index 683a9d8459..99e35de654 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // SignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L677-L680 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L679-L682 type SignificantLongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` @@ -692,5 +692,3 @@ func NewSignificantLongTermsBucket() *SignificantLongTermsBucket { return r } - -// false diff --git a/typedapi/types/significantstringtermsaggregate.go b/typedapi/types/significantstringtermsaggregate.go index 0f83085a86..fc096354d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SignificantStringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L682-L684 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L684-L686 type SignificantStringTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantStringTermsBucket `json:"buckets"` @@ -121,5 +121,3 @@ func NewSignificantStringTermsAggregate() *SignificantStringTermsAggregate { return r } - -// false diff --git a/typedapi/types/significantstringtermsbucket.go b/typedapi/types/significantstringtermsbucket.go index 56ab92f984..958fe43810 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // SignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L686-L688 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L688-L690 type SignificantStringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` @@ -676,5 +676,3 @@ func NewSignificantStringTermsBucket() *SignificantStringTermsBucket { return r } - -// false diff --git a/typedapi/types/significanttermsaggregation.go b/typedapi/types/significanttermsaggregation.go index a1eca75439..de9d1e042e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SignificantTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L817-L884 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -264,8 +264,6 @@ func NewSignificantTermsAggregation() *SignificantTermsAggregation { return r } -// true - type SignificantTermsAggregationVariant interface { SignificantTermsAggregationCaster() *SignificantTermsAggregation } diff --git a/typedapi/types/significanttextaggregation.go b/typedapi/types/significanttextaggregation.go index ad2142d0c0..9db5e81220 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SignificantTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L886-L961 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -298,8 +298,6 @@ func NewSignificantTextAggregation() *SignificantTextAggregation { return r } -// true - type SignificantTextAggregationVariant interface { SignificantTextAggregationCaster() *SignificantTextAggregation } diff --git a/typedapi/types/simpleanalyzer.go b/typedapi/types/simpleanalyzer.go index 32849f779e..979dc77d2f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SimpleAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L367-L371 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L367-L371 type SimpleAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewSimpleAnalyzer() *SimpleAnalyzer { return r } -// true - type SimpleAnalyzerVariant interface { SimpleAnalyzerCaster() *SimpleAnalyzer } @@ -95,3 +93,8 @@ type SimpleAnalyzerVariant interface { func (s *SimpleAnalyzer) SimpleAnalyzerCaster() *SimpleAnalyzer { return s } + +func (s *SimpleAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/simplemovingaverageaggregation.go b/typedapi/types/simplemovingaverageaggregation.go index 8c9cdef5a5..0bf550eeb9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SimpleMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L273-L276 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -174,8 +174,6 @@ func NewSimpleMovingAverageAggregation() *SimpleMovingAverageAggregation { return r } -// true - type SimpleMovingAverageAggregationVariant interface { SimpleMovingAverageAggregationCaster() *SimpleMovingAverageAggregation } @@ -183,3 +181,8 @@ type SimpleMovingAverageAggregationVariant interface { func (s *SimpleMovingAverageAggregation) SimpleMovingAverageAggregationCaster() *SimpleMovingAverageAggregation { return s } + +func (s *SimpleMovingAverageAggregation) MovingAverageAggregationCaster() *MovingAverageAggregation { + o := MovingAverageAggregation(s) + return &o +} diff --git a/typedapi/types/simplepatternsplittokenizer.go b/typedapi/types/simplepatternsplittokenizer.go index 173416e241..36ed41d2c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SimplePatternSplitTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L118-L121 type SimplePatternSplitTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` @@ -101,8 +101,6 @@ func NewSimplePatternSplitTokenizer() *SimplePatternSplitTokenizer { return r } -// true - type SimplePatternSplitTokenizerVariant interface { SimplePatternSplitTokenizerCaster() *SimplePatternSplitTokenizer } @@ -110,3 +108,8 @@ type SimplePatternSplitTokenizerVariant interface { func (s *SimplePatternSplitTokenizer) SimplePatternSplitTokenizerCaster() *SimplePatternSplitTokenizer { return s } + +func (s *SimplePatternSplitTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/simplepatterntokenizer.go b/typedapi/types/simplepatterntokenizer.go index 681b58e8f7..0cbb5e5d74 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SimplePatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L113-L116 type SimplePatternTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` @@ -101,8 +101,6 @@ func NewSimplePatternTokenizer() *SimplePatternTokenizer { return r } -// true - type SimplePatternTokenizerVariant interface { SimplePatternTokenizerCaster() *SimplePatternTokenizer } @@ -110,3 +108,8 @@ type SimplePatternTokenizerVariant interface { func (s *SimplePatternTokenizer) SimplePatternTokenizerCaster() *SimplePatternTokenizer { return s } + +func (s *SimplePatternTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/simplequerystringflags.go b/typedapi/types/simplequerystringflags.go index 25736cb904..24ae919e52 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SimpleQueryStringFlags type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L723-L727 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L774-L778 type SimpleQueryStringFlags PipeSeparatedFlagsSimpleQueryStringFlag type SimpleQueryStringFlagsVariant interface { diff --git a/typedapi/types/simplequerystringquery.go b/typedapi/types/simplequerystringquery.go index 1f972a846b..1cbd69dfc3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SimpleQueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/fulltext.ts#L786-L854 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/fulltext.ts#L837-L905 type SimpleQueryStringQuery struct { // AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string. AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"` @@ -279,8 +279,6 @@ func NewSimpleQueryStringQuery() *SimpleQueryStringQuery { return r } -// true - type SimpleQueryStringQueryVariant interface { SimpleQueryStringQueryCaster() *SimpleQueryStringQuery } diff --git a/typedapi/types/simplevalueaggregate.go b/typedapi/types/simplevalueaggregate.go index ac6cb4c983..8f277af591 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SimpleValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L238-L239 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewSimpleValueAggregate() *SimpleValueAggregate { return r } - -// false diff --git a/typedapi/types/simulatedactions.go b/typedapi/types/simulatedactions.go index be8cf13d0b..945433da3f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SimulatedActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L90-L94 type SimulatedActions struct { Actions []string `json:"actions"` All *SimulatedActions `json:"all,omitempty"` @@ -89,8 +89,6 @@ func NewSimulatedActions() *SimulatedActions { return r } -// true - type SimulatedActionsVariant interface { SimulatedActionsCaster() *SimulatedActions } diff --git a/typedapi/types/simulatedocumentresult.go b/typedapi/types/simulatedocumentresult.go index c7cb0b3975..09ffb50870 100644 --- a/typedapi/types/simulatedocumentresult.go +++ b/typedapi/types/simulatedocumentresult.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SimulateDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Simulation.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Simulation.ts#L45-L49 type SimulateDocumentResult struct { - Doc *DocumentSimulation `json:"doc,omitempty"` - Error *ErrorCause `json:"error,omitempty"` - ProcessorResults []PipelineSimulation `json:"processor_results,omitempty"` + Doc *DocumentSimulation `json:"doc,omitempty"` + Error *ErrorCause `json:"error,omitempty"` + ProcessorResults []PipelineProcessorResult `json:"processor_results,omitempty"` } // NewSimulateDocumentResult returns a SimulateDocumentResult. @@ -35,5 +35,3 @@ func NewSimulateDocumentResult() *SimulateDocumentResult { return r } - -// false diff --git a/typedapi/types/simulateingestdocumentresult.go b/typedapi/types/simulateingestdocumentresult.go index 95fa24c449..301e0ec0ab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SimulateIngestDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 type SimulateIngestDocumentResult struct { Doc *IngestDocumentSimulation `json:"doc,omitempty"` } @@ -33,5 +33,3 @@ func NewSimulateIngestDocumentResult() *SimulateIngestDocumentResult { return r } - -// false diff --git a/typedapi/types/sizefield.go b/typedapi/types/sizefield.go index 7269488a6e..8b8cfada83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SizeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L54-L56 type SizeField struct { Enabled bool `json:"enabled"` } @@ -77,8 +77,6 @@ func NewSizeField() *SizeField { return r } -// true - type SizeFieldVariant interface { SizeFieldCaster() *SizeField } diff --git a/typedapi/types/sizehttphistogram.go b/typedapi/types/sizehttphistogram.go index 29b2ed10e3..29f92d4b4d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SizeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L714-L718 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L716-L720 type SizeHttpHistogram struct { Count int64 `json:"count"` GeBytes *int64 `json:"ge_bytes,omitempty"` @@ -109,5 +109,3 @@ func NewSizeHttpHistogram() *SizeHttpHistogram { return r } - -// false diff --git a/typedapi/types/slackaction.go b/typedapi/types/slackaction.go index c3b62b5f34..7a6c02874c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L91-L94 type SlackAction struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` @@ -81,8 +81,6 @@ func NewSlackAction() *SlackAction { return r } -// true - type SlackActionVariant interface { SlackActionCaster() *SlackAction } diff --git a/typedapi/types/slackattachment.go b/typedapi/types/slackattachment.go index efa07c913c..a26010f705 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L101-L117 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L101-L117 type SlackAttachment struct { AuthorIcon *string `json:"author_icon,omitempty"` AuthorLink *string `json:"author_link,omitempty"` @@ -243,8 +243,6 @@ func NewSlackAttachment() *SlackAttachment { return r } -// true - type SlackAttachmentVariant interface { SlackAttachmentCaster() *SlackAttachment } diff --git a/typedapi/types/slackattachmentfield.go b/typedapi/types/slackattachmentfield.go index f5c6845ee4..8998e13e61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackAttachmentField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L119-L123 type SlackAttachmentField struct { Int bool `json:"short"` Title string `json:"title"` @@ -103,8 +103,6 @@ func NewSlackAttachmentField() *SlackAttachmentField { return r } -// true - type SlackAttachmentFieldVariant interface { SlackAttachmentFieldCaster() *SlackAttachmentField } diff --git a/typedapi/types/slackdynamicattachment.go b/typedapi/types/slackdynamicattachment.go index b4d3f2e010..0d91f2340c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackDynamicAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L125-L128 type SlackDynamicAttachment struct { AttachmentTemplate SlackAttachment `json:"attachment_template"` ListPath string `json:"list_path"` @@ -81,8 +81,6 @@ func NewSlackDynamicAttachment() *SlackDynamicAttachment { return r } -// true - type SlackDynamicAttachmentVariant interface { SlackDynamicAttachmentCaster() *SlackDynamicAttachment } diff --git a/typedapi/types/slackmessage.go b/typedapi/types/slackmessage.go index 1481225223..3ceb2f1a56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackMessage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L130-L137 type SlackMessage struct { Attachments []SlackAttachment `json:"attachments"` DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"` @@ -119,8 +119,6 @@ func NewSlackMessage() *SlackMessage { return r } -// true - type SlackMessageVariant interface { SlackMessageCaster() *SlackMessage } diff --git a/typedapi/types/slackresult.go b/typedapi/types/slackresult.go index 5dde1ebab4..6bb2764aa6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlackResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L96-L99 type SlackResult struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` @@ -80,5 +80,3 @@ func NewSlackResult() *SlackResult { return r } - -// false diff --git a/typedapi/types/slicedscroll.go b/typedapi/types/slicedscroll.go index 6e5e27d4d0..6cf495056c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlicedScroll type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/SlicedScroll.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/SlicedScroll.ts#L23-L27 type SlicedScroll struct { Field *string `json:"field,omitempty"` Id string `json:"id"` @@ -91,8 +91,6 @@ func NewSlicedScroll() *SlicedScroll { return r } -// true - type SlicedScrollVariant interface { SlicedScrollCaster() *SlicedScroll } diff --git a/typedapi/types/slices.go b/typedapi/types/slices.go index e9cb4704b9..2bbe0410bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // int // slicescalculation.SlicesCalculation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L361-L366 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L363-L368 type Slices any diff --git a/typedapi/types/slm.go b/typedapi/types/slm.go index 44f8fc1799..d4d0d670f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Slm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L455-L458 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L455-L458 type Slm struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -114,5 +114,3 @@ func NewSlm() *Slm { return r } - -// false diff --git a/typedapi/types/slmindicator.go b/typedapi/types/slmindicator.go index 4d3fc0f551..13fdf0c160 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L175-L179 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L176-L180 type SlmIndicator struct { Details *SlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` @@ -100,5 +100,3 @@ func NewSlmIndicator() *SlmIndicator { return r } - -// false diff --git a/typedapi/types/slmindicatordetails.go b/typedapi/types/slmindicatordetails.go index 37601b0b7b..37490f0d58 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L180-L184 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L181-L185 type SlmIndicatorDetails struct { Policies int64 `json:"policies"` SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"` @@ -91,5 +91,3 @@ func NewSlmIndicatorDetails() *SlmIndicatorDetails { return r } - -// false diff --git a/typedapi/types/slmindicatorunhealthypolicies.go b/typedapi/types/slmindicatorunhealthypolicies.go index b19347aae9..b0219ecd9f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlmIndicatorUnhealthyPolicies type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L186-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L187-L190 type SlmIndicatorUnhealthyPolicies struct { Count int64 `json:"count"` InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"` @@ -88,5 +88,3 @@ func NewSlmIndicatorUnhealthyPolicies() *SlmIndicatorUnhealthyPolicies { return r } - -// false diff --git a/typedapi/types/slmpolicy.go b/typedapi/types/slmpolicy.go index b69746b398..2042721561 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SLMPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 type SLMPolicy struct { Config *Configuration `json:"config,omitempty"` Name string `json:"name"` @@ -98,5 +98,3 @@ func NewSLMPolicy() *SLMPolicy { return r } - -// false diff --git a/typedapi/types/slowlogsettings.go b/typedapi/types/slowlogsettings.go index f560593679..240437f477 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L515-L520 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L517-L522 type SlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` @@ -113,8 +113,6 @@ func NewSlowlogSettings() *SlowlogSettings { return r } -// true - type SlowlogSettingsVariant interface { SlowlogSettingsCaster() *SlowlogSettings } diff --git a/typedapi/types/slowlogtresholdlevels.go b/typedapi/types/slowlogtresholdlevels.go index 9d8476a96a..d7fb531e86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SlowlogTresholdLevels type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L527-L532 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L529-L534 type SlowlogTresholdLevels struct { Debug Duration `json:"debug,omitempty"` Info Duration `json:"info,omitempty"` @@ -85,8 +85,6 @@ func NewSlowlogTresholdLevels() *SlowlogTresholdLevels { return r } -// true - type SlowlogTresholdLevelsVariant interface { SlowlogTresholdLevelsCaster() *SlowlogTresholdLevels } diff --git a/typedapi/types/slowlogtresholds.go b/typedapi/types/slowlogtresholds.go index 089f4a8707..b1089ba3db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L522-L525 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L524-L527 type SlowlogTresholds struct { Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"` Query *SlowlogTresholdLevels `json:"query,omitempty"` @@ -35,8 +35,6 @@ func NewSlowlogTresholds() *SlowlogTresholds { return r } -// true - type SlowlogTresholdsVariant interface { SlowlogTresholdsCaster() *SlowlogTresholds } diff --git a/typedapi/types/smoothingmodelcontainer.go b/typedapi/types/smoothingmodelcontainer.go index 65ba424c49..cea003a90e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // SmoothingModelContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L446-L462 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L446-L462 type SmoothingModelContainer struct { AdditionalSmoothingModelContainerProperty map[string]json.RawMessage `json:"-"` // Laplace A smoothing model that uses an additive smoothing where a constant (typically @@ -80,8 +80,6 @@ func NewSmoothingModelContainer() *SmoothingModelContainer { return r } -// true - type SmoothingModelContainerVariant interface { SmoothingModelContainerCaster() *SmoothingModelContainer } diff --git a/typedapi/types/snapshotcurrentcounts.go b/typedapi/types/snapshotcurrentcounts.go new file mode 100644 index 0000000000..64fdd88f51 --- /dev/null +++ b/typedapi/types/snapshotcurrentcounts.go @@ -0,0 +1,154 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SnapshotCurrentCounts type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L642-L663 +type SnapshotCurrentCounts struct { + // Cleanups Cleanups in progress, not counted in concurrent_operations as they are not + // concurrent + Cleanups int `json:"cleanups"` + // ConcurrentOperations Sum of snapshots and snapshot_deletions + ConcurrentOperations int `json:"concurrent_operations"` + // ShardSnapshots Incomplete shard snapshots + ShardSnapshots int `json:"shard_snapshots"` + // SnapshotDeletions Snapshots deletions in progress + SnapshotDeletions int `json:"snapshot_deletions"` + // Snapshots Snapshots currently in progress + Snapshots int `json:"snapshots"` +} + +func (s *SnapshotCurrentCounts) 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 "cleanups": + + 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", "Cleanups", err) + } + s.Cleanups = value + case float64: + f := int(v) + s.Cleanups = f + } + + case "concurrent_operations": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "ConcurrentOperations", err) + } + s.ConcurrentOperations = value + case float64: + f := int(v) + s.ConcurrentOperations = f + } + + case "shard_snapshots": + + 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", "ShardSnapshots", err) + } + s.ShardSnapshots = value + case float64: + f := int(v) + s.ShardSnapshots = f + } + + case "snapshot_deletions": + + 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", "SnapshotDeletions", err) + } + s.SnapshotDeletions = value + case float64: + f := int(v) + s.SnapshotDeletions = f + } + + case "snapshots": + + 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", "Snapshots", err) + } + s.Snapshots = value + case float64: + f := int(v) + s.Snapshots = f + } + + } + } + return nil +} + +// NewSnapshotCurrentCounts returns a SnapshotCurrentCounts. +func NewSnapshotCurrentCounts() *SnapshotCurrentCounts { + r := &SnapshotCurrentCounts{} + + return r +} diff --git a/typedapi/types/snapshotindexstats.go b/typedapi/types/snapshotindexstats.go index 50c58db100..2833bd9aff 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SnapshotIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 type SnapshotIndexStats struct { Shards map[string]SnapshotShardsStatus `json:"shards"` ShardsStats SnapshotShardsStats `json:"shards_stats"` @@ -37,5 +37,3 @@ func NewSnapshotIndexStats() *SnapshotIndexStats { return r } - -// false diff --git a/typedapi/types/snapshotinfo.go b/typedapi/types/snapshotinfo.go index ce0456ef44..cf48dc1016 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SnapshotInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 type SnapshotInfo struct { DataStreams []string `json:"data_streams"` Duration Duration `json:"duration,omitempty"` @@ -215,5 +215,3 @@ func NewSnapshotInfo() *SnapshotInfo { return r } - -// false diff --git a/typedapi/types/snapshotlifecycle.go b/typedapi/types/snapshotlifecycle.go index e104054aa6..9d0ef537db 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SnapshotLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 type SnapshotLifecycle struct { InProgress *InProgress `json:"in_progress,omitempty"` LastFailure *Invocation `json:"last_failure,omitempty"` @@ -124,5 +124,3 @@ func NewSnapshotLifecycle() *SnapshotLifecycle { return r } - -// false diff --git a/typedapi/types/snapshotnodeinfo.go b/typedapi/types/snapshotnodeinfo.go index d83d512661..5c1ddbfa0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SnapshotNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 type SnapshotNodeInfo struct { Id string `json:"id"` Name string `json:"name"` @@ -72,5 +72,3 @@ func NewSnapshotNodeInfo() *SnapshotNodeInfo { return r } - -// false diff --git a/typedapi/types/snapshotpolicystats.go b/typedapi/types/snapshotpolicystats.go new file mode 100644 index 0000000000..4f8784c883 --- /dev/null +++ b/typedapi/types/snapshotpolicystats.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SnapshotPolicyStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L153-L159 +type SnapshotPolicyStats struct { + Policy string `json:"policy"` + SnapshotDeletionFailures int64 `json:"snapshot_deletion_failures"` + SnapshotsDeleted int64 `json:"snapshots_deleted"` + SnapshotsFailed int64 `json:"snapshots_failed"` + SnapshotsTaken int64 `json:"snapshots_taken"` +} + +func (s *SnapshotPolicyStats) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "policy": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Policy", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Policy = o + + case "snapshot_deletion_failures": + 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", "SnapshotDeletionFailures", err) + } + s.SnapshotDeletionFailures = value + case float64: + f := int64(v) + s.SnapshotDeletionFailures = f + } + + case "snapshots_deleted": + 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", "SnapshotsDeleted", err) + } + s.SnapshotsDeleted = value + case float64: + f := int64(v) + s.SnapshotsDeleted = f + } + + case "snapshots_failed": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "SnapshotsFailed", err) + } + s.SnapshotsFailed = value + case float64: + f := int64(v) + s.SnapshotsFailed = f + } + + case "snapshots_taken": + 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", "SnapshotsTaken", err) + } + s.SnapshotsTaken = value + case float64: + f := int64(v) + s.SnapshotsTaken = f + } + + } + } + return nil +} + +// NewSnapshotPolicyStats returns a SnapshotPolicyStats. +func NewSnapshotPolicyStats() *SnapshotPolicyStats { + r := &SnapshotPolicyStats{} + + return r +} diff --git a/typedapi/types/snapshotresponseitem.go b/typedapi/types/snapshotresponseitem.go index 5f59de3af1..fae98d48be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SnapshotResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/get/SnapshotGetResponse.ts#L49-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/get/SnapshotGetResponse.ts#L49-L53 type SnapshotResponseItem struct { Error *ErrorCause `json:"error,omitempty"` Repository string `json:"repository"` @@ -78,5 +78,3 @@ func NewSnapshotResponseItem() *SnapshotResponseItem { return r } - -// false diff --git a/typedapi/types/snapshotrestore.go b/typedapi/types/snapshotrestore.go index 82f5c8178d..65aaf9461c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SnapshotRestore type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 type SnapshotRestore struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` @@ -86,5 +86,3 @@ func NewSnapshotRestore() *SnapshotRestore { return r } - -// false diff --git a/typedapi/types/snapshotshardfailure.go b/typedapi/types/snapshotshardfailure.go index 2c8e87583c..0247ae7e2d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,13 +31,13 @@ import ( // SnapshotShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardFailure.ts#L23-L30 type SnapshotShardFailure struct { Index string `json:"index"` IndexUuid string `json:"index_uuid"` NodeId *string `json:"node_id,omitempty"` Reason string `json:"reason"` - ShardId string `json:"shard_id"` + ShardId int `json:"shard_id"` Status string `json:"status"` } @@ -84,8 +84,19 @@ func (s *SnapshotShardFailure) UnmarshalJSON(data []byte) error { s.Reason = o case "shard_id": - if err := dec.Decode(&s.ShardId); err != nil { - return fmt.Errorf("%s | %w", "ShardId", err) + + 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", "ShardId", err) + } + s.ShardId = value + case float64: + f := int(v) + s.ShardId = f } case "status": @@ -111,5 +122,3 @@ func NewSnapshotShardFailure() *SnapshotShardFailure { return r } - -// false diff --git a/typedapi/types/snapshotshardsstats.go b/typedapi/types/snapshotshardsstats.go index 41d46da3b8..824bcdfd84 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L47 type SnapshotShardsStats struct { // Done The number of shards that initialized, started, and finalized successfully. Done int64 `json:"done"` @@ -163,5 +163,3 @@ func NewSnapshotShardsStats() *SnapshotShardsStats { return r } - -// false diff --git a/typedapi/types/snapshotshardsstatus.go b/typedapi/types/snapshotshardsstatus.go index c21397df20..a8184e071f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // SnapshotShardsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 type SnapshotShardsStatus struct { Stage shardsstatsstage.ShardsStatsStage `json:"stage"` Stats ShardsStatsSummary `json:"stats"` @@ -38,5 +38,3 @@ func NewSnapshotShardsStatus() *SnapshotShardsStatus { return r } - -// false diff --git a/typedapi/types/snapshotsrecord.go b/typedapi/types/snapshotsrecord.go index 73723b6538..be8656aa83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SnapshotsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/snapshots/types.ts#L24-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -248,5 +248,3 @@ func NewSnapshotsRecord() *SnapshotsRecord { return r } - -// false diff --git a/typedapi/types/snapshotstats.go b/typedapi/types/snapshotstats.go index c723f13da8..adfbda850e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotStats.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotStats.ts#L23-L42 type SnapshotStats struct { // Incremental The number and size of files that still need to be copied as part of the // incremental snapshot. @@ -99,5 +99,3 @@ func NewSnapshotStats() *SnapshotStats { return r } - -// false diff --git a/typedapi/types/snowballanalyzer.go b/typedapi/types/snowballanalyzer.go index 7297449c61..214005e008 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,10 +32,10 @@ import ( // SnowballAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L374-L380 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L374-L380 type SnowballAnalyzer struct { Language snowballlanguage.SnowballLanguage `json:"language"` - Stopwords []string `json:"stopwords,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` } @@ -61,19 +61,8 @@ func (s *SnowballAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "type": @@ -113,8 +102,6 @@ func NewSnowballAnalyzer() *SnowballAnalyzer { return r } -// true - type SnowballAnalyzerVariant interface { SnowballAnalyzerCaster() *SnowballAnalyzer } @@ -122,3 +109,8 @@ type SnowballAnalyzerVariant interface { func (s *SnowballAnalyzer) SnowballAnalyzerCaster() *SnowballAnalyzer { return s } + +func (s *SnowballAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/snowballtokenfilter.go b/typedapi/types/snowballtokenfilter.go index d212b63064..75f5ab2edc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,8 +32,9 @@ import ( // SnowballTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L310-L313 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L411-L415 type SnowballTokenFilter struct { + // Language Controls the language used by the stemmer. Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -95,8 +96,6 @@ func NewSnowballTokenFilter() *SnowballTokenFilter { return r } -// true - type SnowballTokenFilterVariant interface { SnowballTokenFilterCaster() *SnowballTokenFilter } @@ -104,3 +103,8 @@ type SnowballTokenFilterVariant interface { func (s *SnowballTokenFilter) SnowballTokenFilterCaster() *SnowballTokenFilter { return s } + +func (s *SnowballTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/softdeletes.go b/typedapi/types/softdeletes.go index 9b51552392..0f2302532b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SoftDeletes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L51-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -91,8 +91,6 @@ func NewSoftDeletes() *SoftDeletes { return r } -// true - type SoftDeletesVariant interface { SoftDeletesCaster() *SoftDeletes } diff --git a/typedapi/types/soranianalyzer.go b/typedapi/types/soranianalyzer.go index f6cd6a14f5..9d9d5b67b7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // SoraniAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L289-L294 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L289-L294 type SoraniAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *SoraniAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *SoraniAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewSoraniAnalyzer() *SoraniAnalyzer { return r } -// true - type SoraniAnalyzerVariant interface { SoraniAnalyzerCaster() *SoraniAnalyzer } @@ -128,3 +115,8 @@ type SoraniAnalyzerVariant interface { func (s *SoraniAnalyzer) SoraniAnalyzerCaster() *SoraniAnalyzer { return s } + +func (s *SoraniAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/soraninormalizationtokenfilter.go b/typedapi/types/soraninormalizationtokenfilter.go new file mode 100644 index 0000000000..71c86b1c9e --- /dev/null +++ b/typedapi/types/soraninormalizationtokenfilter.go @@ -0,0 +1,100 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// SoraniNormalizationTokenFilter type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L543-L545 +type SoraniNormalizationTokenFilter struct { + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +func (s *SoraniNormalizationTokenFilter) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "type": + if err := dec.Decode(&s.Type); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + } + } + return nil +} + +// MarshalJSON override marshalling to include literal value +func (s SoraniNormalizationTokenFilter) MarshalJSON() ([]byte, error) { + type innerSoraniNormalizationTokenFilter SoraniNormalizationTokenFilter + tmp := innerSoraniNormalizationTokenFilter{ + Type: s.Type, + Version: s.Version, + } + + tmp.Type = "sorani_normalization" + + return json.Marshal(tmp) +} + +// NewSoraniNormalizationTokenFilter returns a SoraniNormalizationTokenFilter. +func NewSoraniNormalizationTokenFilter() *SoraniNormalizationTokenFilter { + r := &SoraniNormalizationTokenFilter{} + + return r +} + +type SoraniNormalizationTokenFilterVariant interface { + SoraniNormalizationTokenFilterCaster() *SoraniNormalizationTokenFilter +} + +func (s *SoraniNormalizationTokenFilter) SoraniNormalizationTokenFilterCaster() *SoraniNormalizationTokenFilter { + return s +} + +func (s *SoraniNormalizationTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/sort.go b/typedapi/types/sort.go index 96b0a7b9ee..5ddd3d0c3d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Sort type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L104-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 42d9bf8bb9..15376fefae 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // SortOptions // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9288761e6f..ed82f1066b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // SortOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/sort.ts#L86-L96 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/sort.ts#L86-L96 type SortOptions struct { Doc_ *ScoreSort `json:"_doc,omitempty"` GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"` @@ -74,8 +74,6 @@ func NewSortOptions() *SortOptions { return r } -// true - type SortOptionsVariant interface { SortOptionsCaster() *SortOptions } @@ -83,3 +81,8 @@ type SortOptionsVariant interface { func (s *SortOptions) SortOptionsCaster() *SortOptions { return s } + +func (s *SortOptions) SortCombinationsCaster() *SortCombinations { + o := SortCombinations(s) + return &o +} diff --git a/typedapi/types/sortprocessor.go b/typedapi/types/sortprocessor.go index 9dcb606db9..39e6a10e0b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SortProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1497-L1513 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1497-L1513 type SortProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -147,8 +147,6 @@ func NewSortProcessor() *SortProcessor { return r } -// true - type SortProcessorVariant interface { SortProcessorCaster() *SortProcessor } diff --git a/typedapi/types/sourceconfig.go b/typedapi/types/sourceconfig.go index cfc4d799e0..a929fe6c9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // bool // SourceFilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/SourceFilter.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a1e4f921d2..baca60fed9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // bool // []string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/SourceFilter.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/SourceFilter.ts#L39-L45 type SourceConfigParam any diff --git a/typedapi/types/sourcefield.go b/typedapi/types/sourcefield.go index 0952997e4d..dee8165668 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SourceField type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/meta-fields.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/meta-fields.ts#L58-L65 type SourceField struct { Compress *bool `json:"compress,omitempty"` CompressThreshold *string `json:"compress_threshold,omitempty"` @@ -125,8 +125,6 @@ func NewSourceField() *SourceField { return r } -// true - type SourceFieldVariant interface { SourceFieldCaster() *SourceField } diff --git a/typedapi/types/sourcefilter.go b/typedapi/types/sourcefilter.go index d5dea7f7be..334c7159ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SourceFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/SourceFilter.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/SourceFilter.ts#L23-L31 type SourceFilter struct { Excludes []string `json:"excludes,omitempty"` Includes []string `json:"includes,omitempty"` @@ -105,8 +105,6 @@ func NewSourceFilter() *SourceFilter { return r } -// true - type SourceFilterVariant interface { SourceFilterCaster() *SourceFilter } @@ -114,3 +112,8 @@ type SourceFilterVariant interface { func (s *SourceFilter) SourceFilterCaster() *SourceFilter { return s } + +func (s *SourceFilter) SourceConfigCaster() *SourceConfig { + o := SourceConfig(s) + return &o +} diff --git a/typedapi/types/sourceindex.go b/typedapi/types/sourceindex.go index 7647289bcc..472abf5e47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SourceIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 type SourceIndex struct { Index string `json:"index"` } @@ -67,8 +67,6 @@ func NewSourceIndex() *SourceIndex { return r } -// true - type SourceIndexVariant interface { SourceIndexCaster() *SourceIndex } diff --git a/typedapi/types/sourceonlyrepository.go b/typedapi/types/sourceonlyrepository.go index a0d05b2403..232a5f530c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SourceOnlyRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L104-L114 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L104-L114 type SourceOnlyRepository struct { // Settings The repository settings. Settings SourceOnlyRepositorySettings `json:"settings"` @@ -95,8 +95,6 @@ func NewSourceOnlyRepository() *SourceOnlyRepository { return r } -// true - type SourceOnlyRepositoryVariant interface { SourceOnlyRepositoryCaster() *SourceOnlyRepository } @@ -104,3 +102,8 @@ type SourceOnlyRepositoryVariant interface { func (s *SourceOnlyRepository) SourceOnlyRepositoryCaster() *SourceOnlyRepository { return s } + +func (s *SourceOnlyRepository) RepositoryCaster() *Repository { + o := Repository(s) + return &o +} diff --git a/typedapi/types/sourceonlyrepositorysettings.go b/typedapi/types/sourceonlyrepositorysettings.go index c7f07f857b..4706e02923 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SourceOnlyRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotRepository.ts#L414-L441 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotRepository.ts#L414-L441 type SourceOnlyRepositorySettings struct { // ChunkSize Big files can be broken down into multiple smaller blobs in the blob store // during snapshotting. @@ -182,8 +182,6 @@ func NewSourceOnlyRepositorySettings() *SourceOnlyRepositorySettings { return r } -// true - type SourceOnlyRepositorySettingsVariant interface { SourceOnlyRepositorySettingsCaster() *SourceOnlyRepositorySettings } diff --git a/typedapi/types/spancontainingquery.go b/typedapi/types/spancontainingquery.go index c9531e15b8..6e4057adaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanContainingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -113,8 +113,6 @@ func NewSpanContainingQuery() *SpanContainingQuery { return r } -// true - type SpanContainingQueryVariant interface { SpanContainingQueryCaster() *SpanContainingQuery } diff --git a/typedapi/types/spanfieldmaskingquery.go b/typedapi/types/spanfieldmaskingquery.go index a434d58b28..659223f0da 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanFieldMaskingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -109,8 +109,6 @@ func NewSpanFieldMaskingQuery() *SpanFieldMaskingQuery { return r } -// true - type SpanFieldMaskingQueryVariant interface { SpanFieldMaskingQueryCaster() *SpanFieldMaskingQuery } diff --git a/typedapi/types/spanfirstquery.go b/typedapi/types/spanfirstquery.go index 80518886d3..df6e513d71 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanFirstQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L49-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -122,8 +122,6 @@ func NewSpanFirstQuery() *SpanFirstQuery { return r } -// true - type SpanFirstQueryVariant interface { SpanFirstQueryCaster() *SpanFirstQuery } diff --git a/typedapi/types/spangapquery.go b/typedapi/types/spangapquery.go index 7828f0ed7c..f488c03060 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SpanGapQuery type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f9be627b3e..818d4384e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // SpanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L296-L301 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L296-L301 type SpanishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *SpanishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *SpanishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewSpanishAnalyzer() *SpanishAnalyzer { return r } -// true - type SpanishAnalyzerVariant interface { SpanishAnalyzerCaster() *SpanishAnalyzer } @@ -128,3 +115,8 @@ type SpanishAnalyzerVariant interface { func (s *SpanishAnalyzer) SpanishAnalyzerCaster() *SpanishAnalyzer { return s } + +func (s *SpanishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/spanmultitermquery.go b/typedapi/types/spanmultitermquery.go index 1edde1bd2f..a0f69310c7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanMultiTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -105,8 +105,6 @@ func NewSpanMultiTermQuery() *SpanMultiTermQuery { return r } -// true - type SpanMultiTermQueryVariant interface { SpanMultiTermQueryCaster() *SpanMultiTermQuery } diff --git a/typedapi/types/spannearquery.go b/typedapi/types/spannearquery.go index 0b74f471da..2d5fd471ef 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanNearQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L77-L93 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -138,8 +138,6 @@ func NewSpanNearQuery() *SpanNearQuery { return r } -// true - type SpanNearQueryVariant interface { SpanNearQueryCaster() *SpanNearQuery } diff --git a/typedapi/types/spannotquery.go b/typedapi/types/spannotquery.go index 8decbcbb7f..f59786190f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanNotQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L95-L122 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -169,8 +169,6 @@ func NewSpanNotQuery() *SpanNotQuery { return r } -// true - type SpanNotQueryVariant interface { SpanNotQueryCaster() *SpanNotQuery } diff --git a/typedapi/types/spanorquery.go b/typedapi/types/spanorquery.go index f8f90f0032..d4610eb842 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanOrQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L124-L132 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -104,8 +104,6 @@ func NewSpanOrQuery() *SpanOrQuery { return r } -// true - type SpanOrQueryVariant interface { SpanOrQueryCaster() *SpanOrQuery } diff --git a/typedapi/types/spanquery.go b/typedapi/types/spanquery.go index 6dd68b3be2..614a7e6c66 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SpanQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L159-L201 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/span.ts#L159-L201 type SpanQuery struct { AdditionalSpanQueryProperty map[string]json.RawMessage `json:"-"` // SpanContaining Accepts a list of span queries, but only returns those spans which also match @@ -184,8 +184,6 @@ func NewSpanQuery() *SpanQuery { return r } -// true - type SpanQueryVariant interface { SpanQueryCaster() *SpanQuery } diff --git a/typedapi/types/spantermquery.go b/typedapi/types/spantermquery.go index cb22c48d2e..eb5424a255 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L134-L141 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/span.ts#L134-L141 type SpanTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -108,8 +108,6 @@ func NewSpanTermQuery() *SpanTermQuery { return r } -// true - type SpanTermQueryVariant interface { SpanTermQueryCaster() *SpanTermQuery } diff --git a/typedapi/types/spanwithinquery.go b/typedapi/types/spanwithinquery.go index 844e253455..9b67d03786 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SpanWithinQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/span.ts#L143-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/span.ts#L143-L157 type SpanWithinQuery struct { // Big Can be any span query. // Matching spans from `little` that are enclosed within `big` are returned. @@ -113,8 +113,6 @@ func NewSpanWithinQuery() *SpanWithinQuery { return r } -// true - type SpanWithinQueryVariant interface { SpanWithinQueryCaster() *SpanWithinQuery } diff --git a/typedapi/types/sparseembeddingresult.go b/typedapi/types/sparseembeddingresult.go index c5e9cbede5..55fb6307f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SparseEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Results.ts#L36-L38 type SparseEmbeddingResult struct { Embedding SparseVector `json:"embedding"` } @@ -66,5 +66,3 @@ func NewSparseEmbeddingResult() *SparseEmbeddingResult { return r } - -// false diff --git a/typedapi/types/sparsevector.go b/typedapi/types/sparsevector.go index bd49040c44..84ab6a1881 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SparseVector type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5840bb1dbc..4f70f30220 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // SparseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L215-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L224-L227 type SparseVectorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` @@ -42,6 +42,7 @@ type SparseVectorProperty struct { // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` Properties map[string]Property `json:"properties,omitempty"` + Store *bool `json:"store,omitempty"` SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` Type string `json:"type,omitempty"` } @@ -208,6 +209,12 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -563,6 +570,12 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -752,6 +765,20 @@ func (s *SparseVectorProperty) UnmarshalJSON(data []byte) error { } } + case "store": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Store", err) + } + s.Store = &value + case bool: + s.Store = &v + } + case "synthetic_source_keep": if err := dec.Decode(&s.SyntheticSourceKeep); err != nil { return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) @@ -776,6 +803,7 @@ func (s SparseVectorProperty) MarshalJSON() ([]byte, error) { IgnoreAbove: s.IgnoreAbove, Meta: s.Meta, Properties: s.Properties, + Store: s.Store, SyntheticSourceKeep: s.SyntheticSourceKeep, Type: s.Type, } @@ -796,8 +824,6 @@ func NewSparseVectorProperty() *SparseVectorProperty { return r } -// true - type SparseVectorPropertyVariant interface { SparseVectorPropertyCaster() *SparseVectorProperty } @@ -805,3 +831,8 @@ type SparseVectorPropertyVariant interface { func (s *SparseVectorProperty) SparseVectorPropertyCaster() *SparseVectorProperty { return s } + +func (s *SparseVectorProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/sparsevectorquery.go b/typedapi/types/sparsevectorquery.go index 2b74d68890..5b5fa0c012 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SparseVectorQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -222,8 +222,6 @@ func NewSparseVectorQuery() *SparseVectorQuery { return r } -// true - type SparseVectorQueryVariant interface { SparseVectorQueryCaster() *SparseVectorQuery } diff --git a/typedapi/types/sparsevectorstats.go b/typedapi/types/sparsevectorstats.go new file mode 100644 index 0000000000..e6e4517a49 --- /dev/null +++ b/typedapi/types/sparsevectorstats.go @@ -0,0 +1,79 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// SparseVectorStats type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L162-L164 +type SparseVectorStats struct { + ValueCount int64 `json:"value_count"` +} + +func (s *SparseVectorStats) 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 "value_count": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "ValueCount", err) + } + s.ValueCount = value + case float64: + f := int64(v) + s.ValueCount = f + } + + } + } + return nil +} + +// NewSparseVectorStats returns a SparseVectorStats. +func NewSparseVectorStats() *SparseVectorStats { + r := &SparseVectorStats{} + + return r +} diff --git a/typedapi/types/specifieddocument.go b/typedapi/types/specifieddocument.go new file mode 100644 index 0000000000..09b0677f0d --- /dev/null +++ b/typedapi/types/specifieddocument.go @@ -0,0 +1,82 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// SpecifiedDocument type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L93-L96 +type SpecifiedDocument struct { + Id string `json:"id"` + Index *string `json:"index,omitempty"` +} + +func (s *SpecifiedDocument) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "id": + if err := dec.Decode(&s.Id); err != nil { + return fmt.Errorf("%s | %w", "Id", err) + } + + case "index": + if err := dec.Decode(&s.Index); err != nil { + return fmt.Errorf("%s | %w", "Index", err) + } + + } + } + return nil +} + +// NewSpecifiedDocument returns a SpecifiedDocument. +func NewSpecifiedDocument() *SpecifiedDocument { + r := &SpecifiedDocument{} + + return r +} + +type SpecifiedDocumentVariant interface { + SpecifiedDocumentCaster() *SpecifiedDocument +} + +func (s *SpecifiedDocument) SpecifiedDocumentCaster() *SpecifiedDocument { + return s +} diff --git a/typedapi/types/splitprocessor.go b/typedapi/types/splitprocessor.go index af03a207c8..031c28b1a7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SplitProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1515-L1540 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1515-L1540 type SplitProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -184,8 +184,6 @@ func NewSplitProcessor() *SplitProcessor { return r } -// true - type SplitProcessorVariant interface { SplitProcessorCaster() *SplitProcessor } diff --git a/typedapi/types/sql.go b/typedapi/types/sql.go index c454766099..35e3ddf056 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Sql type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L392-L395 type Sql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -112,5 +112,3 @@ func NewSql() *Sql { return r } - -// false diff --git a/typedapi/types/ssl.go b/typedapi/types/ssl.go index d0eaae7f87..ddef740844 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Ssl type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L397-L400 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L397-L400 type Ssl struct { Http FeatureToggle `json:"http"` Transport FeatureToggle `json:"transport"` @@ -34,5 +34,3 @@ func NewSsl() *Ssl { return r } - -// false diff --git a/typedapi/types/stagnatingbackingindices.go b/typedapi/types/stagnatingbackingindices.go index 78a3ee7b01..1cd46a431f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StagnatingBackingIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/health_report/types.ts#L158-L162 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/health_report/types.ts#L159-L163 type StagnatingBackingIndices struct { FirstOccurrenceTimestamp int64 `json:"first_occurrence_timestamp"` IndexName string `json:"index_name"` @@ -100,5 +100,3 @@ func NewStagnatingBackingIndices() *StagnatingBackingIndices { return r } - -// false diff --git a/typedapi/types/standardanalyzer.go b/typedapi/types/standardanalyzer.go index 1c9fa28854..73457c08a6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StandardAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L382-L402 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L382-L402 type StandardAnalyzer struct { // MaxTokenLength The maximum token length. If a token is seen that exceeds this length then it // is split at `max_token_length` intervals. @@ -40,7 +40,7 @@ type StandardAnalyzer struct { // Stopwords A pre-defined stop words list like `_english_` or an array containing a list // of stop words. // Defaults to `_none_`. - Stopwords []string `json:"stopwords,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` // StopwordsPath The path to a file containing stop words. StopwordsPath *string `json:"stopwords_path,omitempty"` Type string `json:"type,omitempty"` @@ -78,19 +78,8 @@ func (s *StandardAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -137,8 +126,6 @@ func NewStandardAnalyzer() *StandardAnalyzer { return r } -// true - type StandardAnalyzerVariant interface { StandardAnalyzerCaster() *StandardAnalyzer } @@ -146,3 +133,8 @@ type StandardAnalyzerVariant interface { func (s *StandardAnalyzer) StandardAnalyzerCaster() *StandardAnalyzer { return s } + +func (s *StandardAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/standarddeviationbounds.go b/typedapi/types/standarddeviationbounds.go index d4a1cbe170..f68474ef8b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // StandardDeviationBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L281-L288 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L281-L288 type StandardDeviationBounds struct { Lower *Float64 `json:"lower,omitempty"` LowerPopulation *Float64 `json:"lower_population,omitempty"` @@ -96,5 +96,3 @@ func NewStandardDeviationBounds() *StandardDeviationBounds { return r } - -// false diff --git a/typedapi/types/standarddeviationboundsasstring.go b/typedapi/types/standarddeviationboundsasstring.go index 3333829ff2..676bae248f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StandardDeviationBoundsAsString type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L290-L297 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L290-L297 type StandardDeviationBoundsAsString struct { Lower string `json:"lower"` LowerPopulation string `json:"lower_population"` @@ -139,5 +139,3 @@ func NewStandardDeviationBoundsAsString() *StandardDeviationBoundsAsString { return r } - -// false diff --git a/typedapi/types/standardretriever.go b/typedapi/types/standardretriever.go index dd43d6e050..e89d3f502b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StandardRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L51-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L98-L109 type StandardRetriever struct { // Collapse Collapses the top documents by a specified key into a single top document per // key. @@ -41,6 +41,8 @@ type StandardRetriever struct { // MinScore Minimum _score for matching documents. Documents with a lower _score are not // included in the top documents. MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` // Query Defines a query to retrieve a set of top documents. Query *Query `json:"query,omitempty"` // SearchAfter Defines a search after object parameter used for pagination. @@ -103,6 +105,18 @@ func (s *StandardRetriever) UnmarshalJSON(data []byte) error { s.MinScore = &f } + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + case "query": if err := dec.Decode(&s.Query); err != nil { return fmt.Errorf("%s | %w", "Query", err) @@ -157,8 +171,6 @@ func NewStandardRetriever() *StandardRetriever { return r } -// true - type StandardRetrieverVariant interface { StandardRetrieverCaster() *StandardRetriever } diff --git a/typedapi/types/standardtokenizer.go b/typedapi/types/standardtokenizer.go index fb7e017770..40d4d97704 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StandardTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L123-L126 type StandardTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewStandardTokenizer() *StandardTokenizer { return r } -// true - type StandardTokenizerVariant interface { StandardTokenizerCaster() *StandardTokenizer } @@ -114,3 +112,8 @@ type StandardTokenizerVariant interface { func (s *StandardTokenizer) StandardTokenizerCaster() *StandardTokenizer { return s } + +func (s *StandardTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/statistics.go b/typedapi/types/statistics.go index 22de97f8fb..77b131005c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Statistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 type Statistics struct { Policy *string `json:"policy,omitempty"` RetentionDeletionTime Duration `json:"retention_deletion_time,omitempty"` @@ -191,5 +191,3 @@ func NewStatistics() *Statistics { return r } - -// false diff --git a/typedapi/types/stats.go b/typedapi/types/stats.go index 7e2d17c7b8..3adf903597 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Stats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L30-L114 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L30-L114 type Stats struct { // AdaptiveSelection Statistics about adaptive replica selection. AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"` @@ -279,5 +279,3 @@ func NewStats() *Stats { return r } - -// false diff --git a/typedapi/types/statsaggregate.go b/typedapi/types/statsaggregate.go index 8491808766..fa09aed403 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L257-L273 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L257-L273 type StatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` @@ -170,5 +170,3 @@ func NewStatsAggregate() *StatsAggregate { return r } - -// false diff --git a/typedapi/types/statsaggregation.go b/typedapi/types/statsaggregation.go index a31684e6be..dabc0a7749 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L291-L291 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L291-L291 type StatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewStatsAggregation() *StatsAggregation { return r } -// true - type StatsAggregationVariant interface { StatsAggregationCaster() *StatsAggregation } diff --git a/typedapi/types/statsbucketaggregate.go b/typedapi/types/statsbucketaggregate.go index 306ac613a6..4e22976fb3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L275-L279 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L275-L279 type StatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` @@ -170,5 +170,3 @@ func NewStatsBucketAggregate() *StatsBucketAggregate { return r } - -// false diff --git a/typedapi/types/statsbucketaggregation.go b/typedapi/types/statsbucketaggregation.go index 0f156138fa..3dd844064c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // StatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L410-L410 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewStatsBucketAggregation() *StatsBucketAggregation { return r } -// true - type StatsBucketAggregationVariant interface { StatsBucketAggregationCaster() *StatsBucketAggregation } diff --git a/typedapi/types/status.go b/typedapi/types/status.go index e2fe2f6f40..478da804e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Status type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/_types/SnapshotStatus.ts#L26-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/snapshot/_types/SnapshotStatus.ts#L26-L60 type Status struct { // IncludeGlobalState Indicates whether the current cluster state is included in the snapshot. IncludeGlobalState bool `json:"include_global_state"` @@ -156,5 +156,3 @@ func NewStatus() *Status { return r } - -// false diff --git a/typedapi/types/statuserror.go b/typedapi/types/statuserror.go index 9a87e098bd..bc3e59a952 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StatusError type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 type StatusError struct { Index string `json:"index"` Message string `json:"message"` @@ -87,5 +87,3 @@ func NewStatusError() *StatusError { return r } - -// false diff --git a/typedapi/types/statusinprogress.go b/typedapi/types/statusinprogress.go index 16ca305800..57ee226d3a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StatusInProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 type StatusInProgress struct { Index string `json:"index"` ReindexedDocCount int64 `json:"reindexed_doc_count"` @@ -106,5 +106,3 @@ func NewStatusInProgress() *StatusInProgress { return r } - -// false diff --git a/typedapi/types/stemmeroverridetokenfilter.go b/typedapi/types/stemmeroverridetokenfilter.go index b0c41d9b63..3336e4bf89 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,15 @@ import ( // StemmerOverrideTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L315-L319 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L417-L423 type StemmerOverrideTokenFilter struct { - Rules []string `json:"rules,omitempty"` - RulesPath *string `json:"rules_path,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // Rules A list of mapping rules to use. + Rules []string `json:"rules,omitempty"` + // RulesPath A path (either relative to `config` location, or absolute) to a list of + // mappings. + RulesPath *string `json:"rules_path,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *StemmerOverrideTokenFilter) UnmarshalJSON(data []byte) error { @@ -108,8 +111,6 @@ func NewStemmerOverrideTokenFilter() *StemmerOverrideTokenFilter { return r } -// true - type StemmerOverrideTokenFilterVariant interface { StemmerOverrideTokenFilterCaster() *StemmerOverrideTokenFilter } @@ -117,3 +118,8 @@ type StemmerOverrideTokenFilterVariant interface { func (s *StemmerOverrideTokenFilter) StemmerOverrideTokenFilterCaster() *StemmerOverrideTokenFilter { return s } + +func (s *StemmerOverrideTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/stemmertokenfilter.go b/typedapi/types/stemmertokenfilter.go index f8ffc5d59b..230ec3094a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L321-L325 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L425-L429 type StemmerTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` @@ -101,8 +101,6 @@ func NewStemmerTokenFilter() *StemmerTokenFilter { return r } -// true - type StemmerTokenFilterVariant interface { StemmerTokenFilterCaster() *StemmerTokenFilter } @@ -110,3 +108,8 @@ type StemmerTokenFilterVariant interface { func (s *StemmerTokenFilter) StemmerTokenFilterCaster() *StemmerTokenFilter { return s } + +func (s *StemmerTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/stepkey.go b/typedapi/types/stepkey.go index c5d8ce1bfa..570be0ac36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StepKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/move_to_step/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -103,8 +103,6 @@ func NewStepKey() *StepKey { return r } -// true - type StepKeyVariant interface { StepKeyCaster() *StepKey } diff --git a/typedapi/types/stopanalyzer.go b/typedapi/types/stopanalyzer.go index 9c8e098094..5c1ff65770 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // StopAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L404-L419 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L404-L419 type StopAnalyzer struct { // Stopwords A pre-defined stop words list like `_english_` or an array containing a list // of stop words. // Defaults to `_none_`. - Stopwords []string `json:"stopwords,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` // StopwordsPath The path to a file containing stop words. StopwordsPath *string `json:"stopwords_path,omitempty"` Type string `json:"type,omitempty"` @@ -59,19 +59,8 @@ func (s *StopAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -123,8 +112,6 @@ func NewStopAnalyzer() *StopAnalyzer { return r } -// true - type StopAnalyzerVariant interface { StopAnalyzerCaster() *StopAnalyzer } @@ -132,3 +119,8 @@ type StopAnalyzerVariant interface { func (s *StopAnalyzer) StopAnalyzerCaster() *StopAnalyzer { return s } + +func (s *StopAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/stoptokenfilter.go b/typedapi/types/stoptokenfilter.go index 5744a6be68..ea56a47889 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,14 +31,24 @@ import ( // StopTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L96-L102 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L125-L136 type StopTokenFilter struct { - IgnoreCase *bool `json:"ignore_case,omitempty"` - RemoveTrailing *bool `json:"remove_trailing,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` - Version *string `json:"version,omitempty"` + // IgnoreCase If `true`, stop word matching is case insensitive. For example, if `true`, a + // stop word of the matches and removes `The`, `THE`, or `the`. Defaults to + // `false`. + IgnoreCase *bool `json:"ignore_case,omitempty"` + // RemoveTrailing If `true`, the last token of a stream is removed if it’s a stop word. + // Defaults to `true`. + RemoveTrailing *bool `json:"remove_trailing,omitempty"` + // Stopwords Language value, such as `_arabic_` or `_thai_`. Defaults to `_english_`. + Stopwords StopWords `json:"stopwords,omitempty"` + // StopwordsPath Path to a file that contains a list of stop words to remove. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each stop word in the file must be separated by a line + // break. + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` } func (s *StopTokenFilter) UnmarshalJSON(data []byte) error { @@ -85,19 +95,8 @@ func (s *StopTokenFilter) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -151,8 +150,6 @@ func NewStopTokenFilter() *StopTokenFilter { return r } -// true - type StopTokenFilterVariant interface { StopTokenFilterCaster() *StopTokenFilter } @@ -160,3 +157,8 @@ type StopTokenFilterVariant interface { func (s *StopTokenFilter) StopTokenFilterCaster() *StopTokenFilter { return s } + +func (s *StopTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/stopwords.go b/typedapi/types/stopwords.go index 33cbf49ee0..b38567f03f 100644 --- a/typedapi/types/stopwords.go +++ b/typedapi/types/stopwords.go @@ -16,14 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types -// StopWords type alias. +// StopWords holds the union for the following types: // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/StopWords.ts#L20-L26 -type StopWords []string +// stopwordlanguage.StopWordLanguage +// []string +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/StopWords.ts#L60-L66 +type StopWords any type StopWordsVariant interface { StopWordsCaster() *StopWords diff --git a/typedapi/types/storage.go b/typedapi/types/storage.go index ef25923980..80ac891b72 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // Storage type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L534-L543 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L536-L547 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. @@ -42,8 +42,10 @@ type Storage struct { // setting is useful, for example, if you are in an environment where you can // not control the ability to create a lot // of memory maps so you need disable the ability to use memory-mapping. - AllowMmap *bool `json:"allow_mmap,omitempty"` - Type storagetype.StorageType `json:"type"` + AllowMmap *bool `json:"allow_mmap,omitempty"` + // StatsRefreshInterval How often store statistics are refreshed + StatsRefreshInterval Duration `json:"stats_refresh_interval,omitempty"` + Type storagetype.StorageType `json:"type"` } func (s *Storage) UnmarshalJSON(data []byte) error { @@ -75,6 +77,11 @@ func (s *Storage) UnmarshalJSON(data []byte) error { s.AllowMmap = &v } + case "stats_refresh_interval": + if err := dec.Decode(&s.StatsRefreshInterval); err != nil { + return fmt.Errorf("%s | %w", "StatsRefreshInterval", err) + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -92,8 +99,6 @@ func NewStorage() *Storage { return r } -// true - type StorageVariant interface { StorageCaster() *Storage } diff --git a/typedapi/types/storedscript.go b/typedapi/types/storedscript.go index 41bacda35d..c0841ddf4e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // StoredScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Scripting.ts#L51-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Scripting.ts#L51-L63 type StoredScript struct { // Lang The language the script is written in. // For search templates, use `mustache`. @@ -121,8 +121,6 @@ func NewStoredScript() *StoredScript { return r } -// true - type StoredScriptVariant interface { StoredScriptCaster() *StoredScript } diff --git a/typedapi/types/storestats.go b/typedapi/types/storestats.go index 1b2471c3f2..cf82eb93a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StoreStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L371-L398 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L395-L422 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. @@ -140,5 +140,3 @@ func NewStoreStats() *StoreStats { return r } - -// false diff --git a/typedapi/types/streamresult.go b/typedapi/types/streamresult.go index b7e5657fab..b97ba027dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // StreamResult type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Binary.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Binary.ts#L24-L24 type StreamResult []byte diff --git a/typedapi/types/stringifiedboolean.go b/typedapi/types/stringifiedboolean.go index dbb962d28c..c1875f1d57 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // bool // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6ae4aff685..d9d9805b94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifieddouble any diff --git a/typedapi/types/stringifiedepochtimeunitmillis.go b/typedapi/types/stringifiedepochtimeunitmillis.go index 9ec7a7522a..948d5e29c9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 94e2e167e0..0e1a248cc9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedEpochTimeUnitSeconds any diff --git a/typedapi/types/stringifiedinteger.go b/typedapi/types/stringifiedinteger.go index 2f48a6f9db..8d26d330e5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a3bf903dcc..7ce55d5788 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedVersionNumber any diff --git a/typedapi/types/stringraretermsaggregate.go b/typedapi/types/stringraretermsaggregate.go index c6fd467acb..a0b69054f9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // StringRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L483-L487 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L483-L487 type StringRareTermsAggregate struct { Buckets BucketsStringRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewStringRareTermsAggregate() *StringRareTermsAggregate { return r } - -// false diff --git a/typedapi/types/stringraretermsbucket.go b/typedapi/types/stringraretermsbucket.go index c5e188c253..de24531012 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // StringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L489-L491 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L489-L491 type StringRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -643,5 +643,3 @@ func NewStringRareTermsBucket() *StringRareTermsBucket { return r } - -// false diff --git a/typedapi/types/stringstatsaggregate.go b/typedapi/types/stringstatsaggregate.go index abfd0f61c5..7b2eed05fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L793-L804 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L795-L806 type StringStatsAggregate struct { AvgLength *Float64 `json:"avg_length,omitempty"` AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` @@ -152,5 +152,3 @@ func NewStringStatsAggregate() *StringStatsAggregate { return r } - -// false diff --git a/typedapi/types/stringstatsaggregation.go b/typedapi/types/stringstatsaggregation.go index 6da52f5882..5016af19a5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L293-L299 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L293-L299 type StringStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -99,8 +99,6 @@ func NewStringStatsAggregation() *StringStatsAggregation { return r } -// true - type StringStatsAggregationVariant interface { StringStatsAggregationCaster() *StringStatsAggregation } diff --git a/typedapi/types/stringtermsaggregate.go b/typedapi/types/stringtermsaggregate.go index 8debe27ea6..8f47819abc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L424-L429 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L424-L429 type StringTermsAggregate struct { Buckets BucketsStringTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` @@ -121,5 +121,3 @@ func NewStringTermsAggregate() *StringTermsAggregate { return r } - -// false diff --git a/typedapi/types/stringtermsbucket.go b/typedapi/types/stringtermsbucket.go index d9c117d202..7ba6ec1948 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // StringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L435-L437 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L435-L437 type StringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -652,5 +652,3 @@ func NewStringTermsBucket() *StringTermsBucket { return r } - -// false diff --git a/typedapi/types/stupidbackoffsmoothingmodel.go b/typedapi/types/stupidbackoffsmoothingmodel.go index d2fcc9435e..f72c388f0a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // StupidBackoffSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L464-L469 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L464-L469 type StupidBackoffSmoothingModel struct { // Discount A constant factor that the lower order n-gram model is discounted by. Discount Float64 `json:"discount"` @@ -80,8 +80,6 @@ func NewStupidBackoffSmoothingModel() *StupidBackoffSmoothingModel { return r } -// true - type StupidBackoffSmoothingModelVariant interface { StupidBackoffSmoothingModelCaster() *StupidBackoffSmoothingModel } diff --git a/typedapi/types/suggest.go b/typedapi/types/suggest.go index 9918d68d77..9929c54f4a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,5 +26,5 @@ package types // PhraseSuggest // TermSuggest // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L35-L41 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L35-L41 type Suggest any diff --git a/typedapi/types/suggestcontext.go b/typedapi/types/suggestcontext.go index 79597adca1..0b14681423 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // SuggestContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L43-L48 type SuggestContext struct { Name string `json:"name"` Path *string `json:"path,omitempty"` - Precision string `json:"precision,omitempty"` + Precision *string `json:"precision,omitempty"` Type string `json:"type"` } @@ -74,7 +74,7 @@ func (s *SuggestContext) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Precision = o + s.Precision = &o case "type": var tmp json.RawMessage @@ -100,8 +100,6 @@ func NewSuggestContext() *SuggestContext { return r } -// true - type SuggestContextVariant interface { SuggestContextCaster() *SuggestContext } diff --git a/typedapi/types/suggester.go b/typedapi/types/suggester.go index d0ed2a38b4..dc3ed2a52a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Suggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L102-L108 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L102-L108 type Suggester struct { Suggesters map[string]FieldSuggester `json:"-"` // Text Global suggest text, to avoid repetition when the same text is used in @@ -122,8 +122,6 @@ func NewSuggester() *Suggester { return r } -// true - type SuggesterVariant interface { SuggesterCaster() *Suggester } diff --git a/typedapi/types/suggestfuzziness.go b/typedapi/types/suggestfuzziness.go index 7e0020606e..1413ef9855 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SuggestFuzziness type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L197-L225 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L197-L225 type SuggestFuzziness struct { // Fuzziness The fuzziness factor. Fuzziness Fuzziness `json:"fuzziness,omitempty"` @@ -139,8 +139,6 @@ func NewSuggestFuzziness() *SuggestFuzziness { return r } -// true - type SuggestFuzzinessVariant interface { SuggestFuzzinessCaster() *SuggestFuzziness } diff --git a/typedapi/types/sumaggregate.go b/typedapi/types/sumaggregate.go index a7269dcdb7..0a68a91cdb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SumAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewSumAggregate() *SumAggregate { return r } - -// false diff --git a/typedapi/types/sumaggregation.go b/typedapi/types/sumaggregation.go index 5f3a22b8d4..aed33c1ea2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L301-L301 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L301-L301 type SumAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewSumAggregation() *SumAggregation { return r } -// true - type SumAggregationVariant interface { SumAggregationCaster() *SumAggregation } diff --git a/typedapi/types/sumbucketaggregation.go b/typedapi/types/sumbucketaggregation.go index 84394fa0af..587c47343c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // SumBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/pipeline.ts#L412-L415 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -94,8 +94,6 @@ func NewSumBucketAggregation() *SumBucketAggregation { return r } -// true - type SumBucketAggregationVariant interface { SumBucketAggregationCaster() *SumBucketAggregation } diff --git a/typedapi/types/summary.go b/typedapi/types/summary.go index 9746c5cca9..54f8dc1fb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // Summary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/enrich/_types/Policy.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/enrich/_types/Policy.ts#L24-L26 type Summary struct { Config map[policytype.PolicyType]EnrichPolicy `json:"config"` } @@ -39,5 +39,3 @@ func NewSummary() *Summary { return r } - -// false diff --git a/typedapi/types/summaryinfo.go b/typedapi/types/summaryinfo.go index ae64a15288..b39d1f4b10 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -38,5 +38,3 @@ func NewSummaryInfo() *SummaryInfo { return r } - -// false diff --git a/typedapi/types/swedishanalyzer.go b/typedapi/types/swedishanalyzer.go index f0d1f56458..0f9ec6cf92 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // SwedishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L303-L308 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L303-L308 type SwedishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *SwedishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *SwedishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewSwedishAnalyzer() *SwedishAnalyzer { return r } -// true - type SwedishAnalyzerVariant interface { SwedishAnalyzerCaster() *SwedishAnalyzer } @@ -128,3 +115,8 @@ type SwedishAnalyzerVariant interface { func (s *SwedishAnalyzer) SwedishAnalyzerCaster() *SwedishAnalyzer { return s } + +func (s *SwedishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/synccontainer.go b/typedapi/types/synccontainer.go index 813bc73514..da4734fd44 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // SyncContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L169-L175 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -73,8 +73,6 @@ func NewSyncContainer() *SyncContainer { return r } -// true - type SyncContainerVariant interface { SyncContainerCaster() *SyncContainer } diff --git a/typedapi/types/syncjobconnectorreference.go b/typedapi/types/syncjobconnectorreference.go index 5ca15a90a1..55d4f698ce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SyncJobConnectorReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/SyncJob.ts#L31-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/SyncJob.ts#L31-L40 type SyncJobConnectorReference struct { Configuration ConnectorConfiguration `json:"configuration"` Filtering FilteringRules `json:"filtering"` @@ -130,5 +130,3 @@ func NewSyncJobConnectorReference() *SyncJobConnectorReference { return r } - -// false diff --git a/typedapi/types/syncrulesfeature.go b/typedapi/types/syncrulesfeature.go index 1e0e31edac..0e3c280d84 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // SyncRulesFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L219-L228 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/connector/_types/Connector.ts#L219-L228 type SyncRulesFeature struct { // Advanced Indicates whether advanced sync rules are enabled. Advanced *FeatureEnabled `json:"advanced,omitempty"` @@ -37,8 +37,6 @@ func NewSyncRulesFeature() *SyncRulesFeature { return r } -// true - type SyncRulesFeatureVariant interface { SyncRulesFeatureCaster() *SyncRulesFeature } diff --git a/typedapi/types/synonymgraphtokenfilter.go b/typedapi/types/synonymgraphtokenfilter.go index 5bb40a0a57..9911470708 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,18 +33,31 @@ import ( // SynonymGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L109-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L163-L165 type SynonymGraphTokenFilter struct { - Expand *bool `json:"expand,omitempty"` - Format *synonymformat.SynonymFormat `json:"format,omitempty"` - Lenient *bool `json:"lenient,omitempty"` - Synonyms []string `json:"synonyms,omitempty"` - SynonymsPath *string `json:"synonyms_path,omitempty"` - SynonymsSet *string `json:"synonyms_set,omitempty"` - Tokenizer *string `json:"tokenizer,omitempty"` - Type string `json:"type,omitempty"` - Updateable *bool `json:"updateable,omitempty"` - Version *string `json:"version,omitempty"` + // Expand Expands definitions for equivalent synonym rules. Defaults to `true`. + Expand *bool `json:"expand,omitempty"` + // Format Sets the synonym rules format. + Format *synonymformat.SynonymFormat `json:"format,omitempty"` + // Lenient If `true` ignores errors while parsing the synonym rules. It is important to + // note that only those synonym rules which cannot get parsed are ignored. + // Defaults to the value of the `updateable` setting. + Lenient *bool `json:"lenient,omitempty"` + // Synonyms Used to define inline synonyms. + Synonyms []string `json:"synonyms,omitempty"` + // SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the + // `config` location. + SynonymsPath *string `json:"synonyms_path,omitempty"` + // SynonymsSet Provide a synonym set created via Synonyms Management APIs. + SynonymsSet *string `json:"synonyms_set,omitempty"` + // Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this + // parameter is for backwards compatibility for indices that created before 6.0. + Tokenizer *string `json:"tokenizer,omitempty"` + Type string `json:"type,omitempty"` + // Updateable If `true` allows reloading search analyzers to pick up changes to synonym + // files. Only to be used for search analyzers. Defaults to `false`. + Updateable *bool `json:"updateable,omitempty"` + Version *string `json:"version,omitempty"` } func (s *SynonymGraphTokenFilter) UnmarshalJSON(data []byte) error { @@ -193,8 +206,6 @@ func NewSynonymGraphTokenFilter() *SynonymGraphTokenFilter { return r } -// true - type SynonymGraphTokenFilterVariant interface { SynonymGraphTokenFilterCaster() *SynonymGraphTokenFilter } @@ -202,3 +213,8 @@ type SynonymGraphTokenFilterVariant interface { func (s *SynonymGraphTokenFilter) SynonymGraphTokenFilterCaster() *SynonymGraphTokenFilter { return s } + +func (s *SynonymGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/synonymrule.go b/typedapi/types/synonymrule.go index face643258..9f0339ab94 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SynonymRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/_types/SynonymRule.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -77,8 +77,6 @@ func NewSynonymRule() *SynonymRule { return r } -// true - type SynonymRuleVariant interface { SynonymRuleCaster() *SynonymRule } diff --git a/typedapi/types/synonymruleread.go b/typedapi/types/synonymruleread.go index 15f3481864..a74789f121 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // SynonymRuleRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/_types/SynonymRule.ts#L40-L50 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/synonyms/_types/SynonymRule.ts#L40-L50 type SynonymRuleRead struct { // Id Synonym Rule identifier Id string `json:"id"` @@ -74,5 +74,3 @@ func NewSynonymRuleRead() *SynonymRuleRead { return r } - -// false diff --git a/typedapi/types/synonymssetitem.go b/typedapi/types/synonymssetitem.go index 79f4926cd5..3be5143fce 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // SynonymsSetItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -86,5 +86,3 @@ func NewSynonymsSetItem() *SynonymsSetItem { return r } - -// false diff --git a/typedapi/types/nodeinfonetwork.go b/typedapi/types/synonymsstats.go similarity index 59% rename from typedapi/types/nodeinfonetwork.go rename to typedapi/types/synonymsstats.go index 300c6a5c5a..1821e28fc6 100644 --- a/typedapi/types/nodeinfonetwork.go +++ b/typedapi/types/synonymsstats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,15 +29,15 @@ import ( "strconv" ) -// NodeInfoNetwork type. +// SynonymsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/info/types.ts#L336-L339 -type NodeInfoNetwork struct { - PrimaryInterface NodeInfoNetworkInterface `json:"primary_interface"` - RefreshInterval int `json:"refresh_interval"` +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/stats/types.ts#L354-L357 +type SynonymsStats struct { + Count int `json:"count"` + IndexCount int `json:"index_count"` } -func (s *NodeInfoNetwork) UnmarshalJSON(data []byte) error { +func (s *SynonymsStats) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -52,12 +52,23 @@ func (s *NodeInfoNetwork) UnmarshalJSON(data []byte) error { switch t { - case "primary_interface": - if err := dec.Decode(&s.PrimaryInterface); err != nil { - return fmt.Errorf("%s | %w", "PrimaryInterface", err) + 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 "refresh_interval": + case "index_count": var tmp any dec.Decode(&tmp) @@ -65,12 +76,12 @@ func (s *NodeInfoNetwork) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "RefreshInterval", err) + return fmt.Errorf("%s | %w", "IndexCount", err) } - s.RefreshInterval = value + s.IndexCount = value case float64: f := int(v) - s.RefreshInterval = f + s.IndexCount = f } } @@ -78,11 +89,9 @@ func (s *NodeInfoNetwork) UnmarshalJSON(data []byte) error { return nil } -// NewNodeInfoNetwork returns a NodeInfoNetwork. -func NewNodeInfoNetwork() *NodeInfoNetwork { - r := &NodeInfoNetwork{} +// NewSynonymsStats returns a SynonymsStats. +func NewSynonymsStats() *SynonymsStats { + r := &SynonymsStats{} return r } - -// false diff --git a/typedapi/types/synonymtokenfilter.go b/typedapi/types/synonymtokenfilter.go index 65b7390aba..1de8fbc4b9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,18 +33,31 @@ import ( // SynonymTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L121-L131 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L167-L169 type SynonymTokenFilter struct { - Expand *bool `json:"expand,omitempty"` - Format *synonymformat.SynonymFormat `json:"format,omitempty"` - Lenient *bool `json:"lenient,omitempty"` - Synonyms []string `json:"synonyms,omitempty"` - SynonymsPath *string `json:"synonyms_path,omitempty"` - SynonymsSet *string `json:"synonyms_set,omitempty"` - Tokenizer *string `json:"tokenizer,omitempty"` - Type string `json:"type,omitempty"` - Updateable *bool `json:"updateable,omitempty"` - Version *string `json:"version,omitempty"` + // Expand Expands definitions for equivalent synonym rules. Defaults to `true`. + Expand *bool `json:"expand,omitempty"` + // Format Sets the synonym rules format. + Format *synonymformat.SynonymFormat `json:"format,omitempty"` + // Lenient If `true` ignores errors while parsing the synonym rules. It is important to + // note that only those synonym rules which cannot get parsed are ignored. + // Defaults to the value of the `updateable` setting. + Lenient *bool `json:"lenient,omitempty"` + // Synonyms Used to define inline synonyms. + Synonyms []string `json:"synonyms,omitempty"` + // SynonymsPath Used to provide a synonym file. This path must be absolute or relative to the + // `config` location. + SynonymsPath *string `json:"synonyms_path,omitempty"` + // SynonymsSet Provide a synonym set created via Synonyms Management APIs. + SynonymsSet *string `json:"synonyms_set,omitempty"` + // Tokenizer Controls the tokenizers that will be used to tokenize the synonym, this + // parameter is for backwards compatibility for indices that created before 6.0. + Tokenizer *string `json:"tokenizer,omitempty"` + Type string `json:"type,omitempty"` + // Updateable If `true` allows reloading search analyzers to pick up changes to synonym + // files. Only to be used for search analyzers. Defaults to `false`. + Updateable *bool `json:"updateable,omitempty"` + Version *string `json:"version,omitempty"` } func (s *SynonymTokenFilter) UnmarshalJSON(data []byte) error { @@ -193,8 +206,6 @@ func NewSynonymTokenFilter() *SynonymTokenFilter { return r } -// true - type SynonymTokenFilterVariant interface { SynonymTokenFilterCaster() *SynonymTokenFilter } @@ -202,3 +213,8 @@ type SynonymTokenFilterVariant interface { func (s *SynonymTokenFilter) SynonymTokenFilterCaster() *SynonymTokenFilter { return s } + +func (s *SynonymTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/tablevaluescontainer.go b/typedapi/types/tablevaluescontainer.go index cc2f646227..c46764aec0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // TableValuesContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/TableValuesContainer.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/esql/_types/TableValuesContainer.ts#L22-L28 type TableValuesContainer struct { AdditionalTableValuesContainerProperty map[string]json.RawMessage `json:"-"` Float64 [][]Float64 `json:"double,omitempty"` @@ -74,8 +74,6 @@ func NewTableValuesContainer() *TableValuesContainer { return r } -// true - type TableValuesContainerVariant interface { TableValuesContainerCaster() *TableValuesContainer } diff --git a/typedapi/types/tablevaluesintegervalue.go b/typedapi/types/tablevaluesintegervalue.go index 305acd5228..1777914b9d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TableValuesIntegerValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/TableValuesContainer.ts#L30-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d10e1ebc15..bf1b26441c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TableValuesKeywordValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/TableValuesContainer.ts#L31-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9086ac77b6..2c9d671137 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TableValuesLongDouble type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/TableValuesContainer.ts#L33-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 5b766b535a..742bc5ad5f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TableValuesLongValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/esql/_types/TableValuesContainer.ts#L32-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 fc7eaa2b3c..75d6f97fc7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TargetMeanEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L49-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L49-L54 type TargetMeanEncodingPreprocessor struct { DefaultValue Float64 `json:"default_value"` FeatureName string `json:"feature_name"` @@ -116,8 +116,6 @@ func NewTargetMeanEncodingPreprocessor() *TargetMeanEncodingPreprocessor { return r } -// true - type TargetMeanEncodingPreprocessorVariant interface { TargetMeanEncodingPreprocessorCaster() *TargetMeanEncodingPreprocessor } diff --git a/typedapi/types/taskfailure.go b/typedapi/types/taskfailure.go index b9f8c88aa2..fb571e74c1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TaskFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Errors.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Errors.ts#L67-L72 type TaskFailure struct { NodeId string `json:"node_id"` Reason ErrorCause `json:"reason"` @@ -102,5 +102,3 @@ func NewTaskFailure() *TaskFailure { return r } - -// false diff --git a/typedapi/types/taskid.go b/typedapi/types/taskid.go index 7375aa5a36..5fd7eab93f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L129-L129 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L129-L129 type TaskId any diff --git a/typedapi/types/taskinfo.go b/typedapi/types/taskinfo.go index 204fd53ef0..3f01e820f6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/_types/TaskInfo.ts#L32-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/_types/TaskInfo.ts#L32-L58 type TaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` @@ -210,5 +210,3 @@ func NewTaskInfo() *TaskInfo { return r } - -// false diff --git a/typedapi/types/taskinfos.go b/typedapi/types/taskinfos.go index 188e7cca48..6a3fdade06 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // []TaskInfo // map[string]ParentTaskInfo // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 type TaskInfos any diff --git a/typedapi/types/tasksrecord.go b/typedapi/types/tasksrecord.go index 05adf6efd4..19ea06cacb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/tasks/types.ts#L22-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cat/tasks/types.ts#L22-L101 type TasksRecord struct { // Action The task action. Action *string `json:"action,omitempty"` @@ -257,5 +257,3 @@ func NewTasksRecord() *TasksRecord { return r } - -// false diff --git a/typedapi/types/tdigest.go b/typedapi/types/tdigest.go index 208adb18da..c1aa7ce74e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TDigest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L232-L237 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -82,8 +82,6 @@ func NewTDigest() *TDigest { return r } -// true - type TDigestVariant interface { TDigestCaster() *TDigest } diff --git a/typedapi/types/tdigestpercentileranksaggregate.go b/typedapi/types/tdigestpercentileranksaggregate.go index f630acf039..b65f39c1d4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L177-L178 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L177-L178 type TDigestPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -88,5 +88,3 @@ func NewTDigestPercentileRanksAggregate() *TDigestPercentileRanksAggregate { return r } - -// false diff --git a/typedapi/types/tdigestpercentilesaggregate.go b/typedapi/types/tdigestpercentilesaggregate.go index dc90de2c32..bf26d6a925 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L174-L175 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L174-L175 type TDigestPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` @@ -88,5 +88,3 @@ func NewTDigestPercentilesAggregate() *TDigestPercentilesAggregate { return r } - -// false diff --git a/typedapi/types/template.go b/typedapi/types/template.go index a103dc55a0..41514100be 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Template type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 type Template struct { Aliases map[string]Alias `json:"aliases"` Mappings TypeMapping `json:"mappings"` @@ -37,5 +37,3 @@ func NewTemplate() *Template { return r } - -// false diff --git a/typedapi/types/templateconfig.go b/typedapi/types/templateconfig.go index 4fa4ef3d68..d6e40ed585 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TemplateConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/msearch_template/types.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/msearch_template/types.ts#L29-L55 type TemplateConfig struct { // Explain If `true`, returns detailed information about score calculation as part of // each hit. @@ -158,8 +158,6 @@ func NewTemplateConfig() *TemplateConfig { return r } -// true - type TemplateConfigVariant interface { TemplateConfigCaster() *TemplateConfig } @@ -167,3 +165,8 @@ type TemplateConfigVariant interface { func (s *TemplateConfig) TemplateConfigCaster() *TemplateConfig { return s } + +func (s *TemplateConfig) RequestItemCaster() *RequestItem { + o := RequestItem(s) + return &o +} diff --git a/typedapi/types/templatemapping.go b/typedapi/types/templatemapping.go index 19790e522c..3afcfb9c8d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/TemplateMapping.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/TemplateMapping.ts#L27-L34 type TemplateMapping struct { Aliases map[string]Alias `json:"aliases"` IndexPatterns []string `json:"index_patterns"` @@ -117,5 +117,3 @@ func NewTemplateMapping() *TemplateMapping { return r } - -// false diff --git a/typedapi/types/templatesrecord.go b/typedapi/types/templatesrecord.go index e34e90795c..6683a899e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TemplatesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/templates/types.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -117,5 +117,3 @@ func NewTemplatesRecord() *TemplatesRecord { return r } - -// false diff --git a/typedapi/types/term.go b/typedapi/types/term.go index d9de38baba..e0bcdadfb0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Term type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/types.ts#L34-L40 type Term struct { DocFreq *int `json:"doc_freq,omitempty"` Score *Float64 `json:"score,omitempty"` @@ -135,5 +135,3 @@ func NewTerm() *Term { return r } - -// false diff --git a/typedapi/types/terminateprocessor.go b/typedapi/types/terminateprocessor.go index b1ad17f1cc..35142be0fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TerminateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1542-L1542 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1542-L1542 type TerminateProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -122,8 +122,6 @@ func NewTerminateProcessor() *TerminateProcessor { return r } -// true - type TerminateProcessorVariant interface { TerminateProcessorCaster() *TerminateProcessor } diff --git a/typedapi/types/termquery.go b/typedapi/types/termquery.go index 6a77ae9e5b..f97ae04e0e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L238-L255 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L234-L251 type TermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -128,8 +128,6 @@ func NewTermQuery() *TermQuery { return r } -// true - type TermQueryVariant interface { TermQueryCaster() *TermQuery } diff --git a/typedapi/types/termrangequery.go b/typedapi/types/termrangequery.go index a461db4d9a..964f6df83b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TermRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L174-L174 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L170-L170 type TermRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -41,7 +41,6 @@ type TermRangeQuery struct { // A boost value between 0 and 1.0 decreases the relevance score. // A value greater than 1.0 increases the relevance score. Boost *float32 `json:"boost,omitempty"` - From *string `json:"from,omitempty"` // Gt Greater than. Gt *string `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -53,7 +52,6 @@ type TermRangeQuery struct { QueryName_ *string `json:"_name,omitempty"` // Relation Indicates how the range query matches values for `range` fields. Relation *rangerelation.RangeRelation `json:"relation,omitempty"` - To *string `json:"to,omitempty"` } func (s *TermRangeQuery) UnmarshalJSON(data []byte) error { @@ -87,18 +85,6 @@ func (s *TermRangeQuery) UnmarshalJSON(data []byte) error { s.Boost = &f } - case "from": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "From", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.From = &o - case "gt": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -164,18 +150,6 @@ func (s *TermRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Relation", err) } - case "to": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "To", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.To = &o - } } return nil @@ -188,8 +162,6 @@ func NewTermRangeQuery() *TermRangeQuery { return r } -// true - type TermRangeQueryVariant interface { TermRangeQueryCaster() *TermRangeQuery } @@ -197,3 +169,8 @@ type TermRangeQueryVariant interface { func (s *TermRangeQuery) TermRangeQueryCaster() *TermRangeQuery { return s } + +func (s *TermRangeQuery) RangeQueryCaster() *RangeQuery { + o := RangeQuery(s) + return &o +} diff --git a/typedapi/types/termsaggregation.go b/typedapi/types/termsaggregation.go index 7ef0a384c7..84df2c1f69 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // TermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L963-L1031 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L963-L1031 type TermsAggregation struct { // CollectMode Determines how child aggregations should be calculated: breadth-first or // depth-first. @@ -327,8 +327,6 @@ func NewTermsAggregation() *TermsAggregation { return r } -// true - type TermsAggregationVariant interface { TermsAggregationCaster() *TermsAggregation } diff --git a/typedapi/types/termsexclude.go b/typedapi/types/termsexclude.go index 62167c3479..f0a1758409 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TermsExclude type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1077-L1078 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 9cdbb84191..144e7ae41b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TermsGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/rollup/_types/Groupings.ts#L75-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -81,8 +81,6 @@ func NewTermsGrouping() *TermsGrouping { return r } -// true - type TermsGroupingVariant interface { TermsGroupingCaster() *TermsGrouping } diff --git a/typedapi/types/termsinclude.go b/typedapi/types/termsinclude.go index 64c7a4ffaa..becd391474 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ package types // []string // TermsPartition // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1074-L1075 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 b45e1b4c9c..ccb7776529 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TermsLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L270-L275 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L266-L271 type TermsLookup struct { Id string `json:"id"` Index string `json:"index"` @@ -85,8 +85,6 @@ func NewTermsLookup() *TermsLookup { return r } -// true - type TermsLookupVariant interface { TermsLookupCaster() *TermsLookup } @@ -94,3 +92,8 @@ type TermsLookupVariant interface { func (s *TermsLookup) TermsLookupCaster() *TermsLookup { return s } + +func (s *TermsLookup) TermsQueryFieldCaster() *TermsQueryField { + o := TermsQueryField(s) + return &o +} diff --git a/typedapi/types/termspartition.go b/typedapi/types/termspartition.go index cd05fc77e1..a672a59150 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermsPartition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1080-L1089 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1080-L1089 type TermsPartition struct { // NumPartitions The number of partitions. NumPartitions int64 `json:"num_partitions"` @@ -96,8 +96,6 @@ func NewTermsPartition() *TermsPartition { return r } -// true - type TermsPartitionVariant interface { TermsPartitionCaster() *TermsPartition } @@ -105,3 +103,8 @@ type TermsPartitionVariant interface { func (s *TermsPartition) TermsPartitionCaster() *TermsPartition { return s } + +func (s *TermsPartition) TermsIncludeCaster() *TermsInclude { + o := TermsInclude(s) + return &o +} diff --git a/typedapi/types/termsquery.go b/typedapi/types/termsquery.go index 0e9d28bce1..b12d3cac36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L257-L263 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L253-L259 type TermsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -142,8 +142,6 @@ func NewTermsQuery() *TermsQuery { return r } -// true - type TermsQueryVariant interface { TermsQueryCaster() *TermsQuery } diff --git a/typedapi/types/termsqueryfield.go b/typedapi/types/termsqueryfield.go index 9546b51cb0..4679f090fa 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // []FieldValue // TermsLookup // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L265-L268 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L261-L264 type TermsQueryField any type TermsQueryFieldVariant interface { diff --git a/typedapi/types/termssetquery.go b/typedapi/types/termssetquery.go index f1b62001f1..beb8ee3417 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermsSetQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L277-L299 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L273-L295 type TermsSetQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -128,8 +128,6 @@ func NewTermsSetQuery() *TermsSetQuery { return r } -// true - type TermsSetQueryVariant interface { TermsSetQueryCaster() *TermsSetQuery } diff --git a/typedapi/types/termsuggest.go b/typedapi/types/termsuggest.go index e7bb7dfb28..938b10c4ea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L65-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L65-L70 type TermSuggest struct { Length int `json:"length"` Offset int `json:"offset"` @@ -125,5 +125,3 @@ func NewTermSuggest() *TermSuggest { return r } - -// false diff --git a/typedapi/types/termsuggester.go b/typedapi/types/termsuggester.go index 3fc08fe742..82128647cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -35,7 +35,7 @@ import ( // TermSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L507-L569 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L507-L569 type TermSuggester struct { // Analyzer The analyzer to analyze the suggest text with. // Defaults to the search analyzer of the suggest field. @@ -301,8 +301,6 @@ func NewTermSuggester() *TermSuggester { return r } -// true - type TermSuggesterVariant interface { TermSuggesterCaster() *TermSuggester } diff --git a/typedapi/types/termsuggestoption.go b/typedapi/types/termsuggestoption.go index fccb21fd2d..b764885deb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/suggester.ts#L94-L100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/suggester.ts#L94-L100 type TermSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Freq int64 `json:"freq"` @@ -135,5 +135,3 @@ func NewTermSuggestOption() *TermSuggestOption { return r } - -// false diff --git a/typedapi/types/termvector.go b/typedapi/types/termvector.go index f0be0366b3..737b923903 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TermVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/types.ts#L23-L26 type TermVector struct { FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"` Terms map[string]Term `json:"terms"` @@ -36,5 +36,3 @@ func NewTermVector() *TermVector { return r } - -// false diff --git a/typedapi/types/termvectorsfilter.go b/typedapi/types/termvectorsfilter.go index 0484bb4b08..1e378de182 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermVectorsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/types.ts#L49-L86 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/types.ts#L49-L86 type TermVectorsFilter struct { // MaxDocFreq Ignore words which occur in more than this many docs. // Defaults to unbounded. @@ -191,8 +191,6 @@ func NewTermVectorsFilter() *TermVectorsFilter { return r } -// true - type TermVectorsFilterVariant interface { TermVectorsFilterCaster() *TermVectorsFilter } diff --git a/typedapi/types/termvectorsresult.go b/typedapi/types/termvectorsresult.go index 48371f8322..1698d193ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermVectorsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/mtermvectors/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/mtermvectors/types.ts#L96-L104 type TermVectorsResult struct { Error *ErrorCause `json:"error,omitempty"` Found *bool `json:"found,omitempty"` @@ -127,5 +127,3 @@ func NewTermVectorsResult() *TermVectorsResult { return r } - -// false diff --git a/typedapi/types/termvectorstoken.go b/typedapi/types/termvectorstoken.go index 3a9a076a90..ef34f786b5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TermVectorsToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/termvectors/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/termvectors/types.ts#L42-L47 type TermVectorsToken struct { EndOffset *int `json:"end_offset,omitempty"` Payload *string `json:"payload,omitempty"` @@ -125,5 +125,3 @@ func NewTermVectorsToken() *TermVectorsToken { return r } - -// false diff --git a/typedapi/types/testpopulation.go b/typedapi/types/testpopulation.go index 1a627cbd02..1baca7980a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TestPopulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L319-L329 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L319-L329 type TestPopulation struct { // Field The field to aggregate. Field string `json:"field"` @@ -81,8 +81,6 @@ func NewTestPopulation() *TestPopulation { return r } -// true - type TestPopulationVariant interface { TestPopulationCaster() *TestPopulation } diff --git a/typedapi/types/textclassificationinferenceoptions.go b/typedapi/types/textclassificationinferenceoptions.go index 68c9163394..362bfa3d85 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L202-L214 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -116,8 +116,6 @@ func NewTextClassificationInferenceOptions() *TextClassificationInferenceOptions return r } -// true - type TextClassificationInferenceOptionsVariant interface { TextClassificationInferenceOptionsCaster() *TextClassificationInferenceOptions } diff --git a/typedapi/types/textclassificationinferenceupdateoptions.go b/typedapi/types/textclassificationinferenceupdateoptions.go index 44a9772b80..1c04647b8d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L382-L391 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -110,8 +110,6 @@ func NewTextClassificationInferenceUpdateOptions() *TextClassificationInferenceU return r } -// true - type TextClassificationInferenceUpdateOptionsVariant interface { TextClassificationInferenceUpdateOptionsCaster() *TextClassificationInferenceUpdateOptions } diff --git a/typedapi/types/textembedding.go b/typedapi/types/textembedding.go index 3d3a4bfddf..1757015707 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextEmbedding type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Knn.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Knn.ts#L94-L97 type TextEmbedding struct { ModelId string `json:"model_id"` ModelText string `json:"model_text"` @@ -88,8 +88,6 @@ func NewTextEmbedding() *TextEmbedding { return r } -// true - type TextEmbeddingVariant interface { TextEmbeddingCaster() *TextEmbedding } diff --git a/typedapi/types/textembeddingbyteresult.go b/typedapi/types/textembeddingbyteresult.go index 5fabc248f9..c22bf2c8d6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingByteResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L53-L58 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Results.ts#L53-L58 type TextEmbeddingByteResult struct { Embedding []byte `json:"embedding"` } @@ -66,5 +66,3 @@ func NewTextEmbeddingByteResult() *TextEmbeddingByteResult { return r } - -// false diff --git a/typedapi/types/textembeddinginferenceoptions.go b/typedapi/types/textembeddinginferenceoptions.go index 5111e6a515..0b45db1c36 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L252-L262 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -108,8 +108,6 @@ func NewTextEmbeddingInferenceOptions() *TextEmbeddingInferenceOptions { return r } -// true - type TextEmbeddingInferenceOptionsVariant interface { TextEmbeddingInferenceOptionsCaster() *TextEmbeddingInferenceOptions } diff --git a/typedapi/types/textembeddinginferenceupdateoptions.go b/typedapi/types/textembeddinginferenceupdateoptions.go index cdd79cf94b..6e065cd1e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L411-L415 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -83,8 +83,6 @@ func NewTextEmbeddingInferenceUpdateOptions() *TextEmbeddingInferenceUpdateOptio return r } -// true - type TextEmbeddingInferenceUpdateOptionsVariant interface { TextEmbeddingInferenceUpdateOptionsCaster() *TextEmbeddingInferenceUpdateOptions } diff --git a/typedapi/types/textembeddingresult.go b/typedapi/types/textembeddingresult.go index b29e61f73b..d71a5b1f1f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/Results.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/Results.ts#L60-L65 type TextEmbeddingResult struct { Embedding []float32 `json:"embedding"` } @@ -66,5 +66,3 @@ func NewTextEmbeddingResult() *TextEmbeddingResult { return r } - -// false diff --git a/typedapi/types/textexpansioninferenceoptions.go b/typedapi/types/textexpansioninferenceoptions.go index 335a22fe9d..1c6b735c2f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L264-L271 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -90,8 +90,6 @@ func NewTextExpansionInferenceOptions() *TextExpansionInferenceOptions { return r } -// true - type TextExpansionInferenceOptionsVariant interface { TextExpansionInferenceOptionsCaster() *TextExpansionInferenceOptions } diff --git a/typedapi/types/textexpansioninferenceupdateoptions.go b/typedapi/types/textexpansioninferenceupdateoptions.go index d513dde47b..cc27629159 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L417-L421 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -83,8 +83,6 @@ func NewTextExpansionInferenceUpdateOptions() *TextExpansionInferenceUpdateOptio return r } -// true - type TextExpansionInferenceUpdateOptionsVariant interface { TextExpansionInferenceUpdateOptionsCaster() *TextExpansionInferenceUpdateOptions } diff --git a/typedapi/types/textexpansionquery.go b/typedapi/types/textexpansionquery.go index 661bbe7cdb..903d15c631 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextExpansionQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -132,8 +132,6 @@ func NewTextExpansionQuery() *TextExpansionQuery { return r } -// true - type TextExpansionQueryVariant interface { TextExpansionQueryCaster() *TextExpansionQuery } diff --git a/typedapi/types/textindexprefixes.go b/typedapi/types/textindexprefixes.go index 8f2ba63d2b..c1abf29f83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TextIndexPrefixes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L290-L293 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L300-L303 type TextIndexPrefixes struct { MaxChars int `json:"max_chars"` MinChars int `json:"min_chars"` @@ -96,8 +96,6 @@ func NewTextIndexPrefixes() *TextIndexPrefixes { return r } -// true - type TextIndexPrefixesVariant interface { TextIndexPrefixesCaster() *TextIndexPrefixes } diff --git a/typedapi/types/textproperty.go b/typedapi/types/textproperty.go index bc2d7514d9..4b64040e18 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // TextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L295-L312 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L305-L322 type TextProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -304,6 +304,12 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -727,6 +733,12 @@ func (s *TextProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -1032,8 +1044,6 @@ func NewTextProperty() *TextProperty { return r } -// true - type TextPropertyVariant interface { TextPropertyCaster() *TextProperty } @@ -1041,3 +1051,8 @@ type TextPropertyVariant interface { func (s *TextProperty) TextPropertyCaster() *TextProperty { return s } + +func (s *TextProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/textsimilarityreranker.go b/typedapi/types/textsimilarityreranker.go index 82a334d35e..081b0b2c5f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,20 +31,22 @@ import ( // TextSimilarityReranker type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Retriever.ts#L93-L104 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Retriever.ts#L140-L151 type TextSimilarityReranker struct { // Field The document field to be used for text similarity comparisons. This field // should contain the text that will be evaluated against the inference_text - Field *string `json:"field,omitempty"` + Field string `json:"field"` // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` // InferenceId Unique identifier of the inference endpoint created using the inference API. InferenceId *string `json:"inference_id,omitempty"` // InferenceText The text snippet used as the basis for similarity comparison - InferenceText *string `json:"inference_text,omitempty"` + InferenceText string `json:"inference_text"` // MinScore Minimum _score for matching documents. Documents with a lower _score are not // included in the top documents. MinScore *float32 `json:"min_score,omitempty"` + // Name_ Retriever name. + Name_ *string `json:"_name,omitempty"` // RankWindowSize This value determines how many documents we will consider from the nested // retriever. RankWindowSize *int `json:"rank_window_size,omitempty"` @@ -78,7 +80,7 @@ func (s *TextSimilarityReranker) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.Field = &o + s.Field = o case "filter": rawMsg := json.RawMessage{} @@ -118,7 +120,7 @@ func (s *TextSimilarityReranker) UnmarshalJSON(data []byte) error { if err != nil { o = string(tmp[:]) } - s.InferenceText = &o + s.InferenceText = o case "min_score": var tmp any @@ -136,6 +138,18 @@ func (s *TextSimilarityReranker) UnmarshalJSON(data []byte) error { s.MinScore = &f } + case "_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name_", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name_ = &o + case "rank_window_size": var tmp any @@ -169,8 +183,6 @@ func NewTextSimilarityReranker() *TextSimilarityReranker { return r } -// true - type TextSimilarityRerankerVariant interface { TextSimilarityRerankerCaster() *TextSimilarityReranker } diff --git a/typedapi/types/texttoanalyze.go b/typedapi/types/texttoanalyze.go index d995faf7aa..07ac8d4724 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TextToAnalyze type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L69-L69 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 c7ace07c7a..9908acdc13 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,11 +31,11 @@ import ( // ThaiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L317-L321 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L317-L321 type ThaiAnalyzer struct { - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *ThaiAnalyzer) UnmarshalJSON(data []byte) error { @@ -54,19 +54,8 @@ func (s *ThaiAnalyzer) UnmarshalJSON(data []byte) error { switch t { case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -112,8 +101,6 @@ func NewThaiAnalyzer() *ThaiAnalyzer { return r } -// true - type ThaiAnalyzerVariant interface { ThaiAnalyzerCaster() *ThaiAnalyzer } @@ -121,3 +108,8 @@ type ThaiAnalyzerVariant interface { func (s *ThaiAnalyzer) ThaiAnalyzerCaster() *ThaiAnalyzer { return s } + +func (s *ThaiAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/thaitokenizer.go b/typedapi/types/thaitokenizer.go index 18f1e0ff13..dd875676e6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // ThaiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L126-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L128-L130 type ThaiTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewThaiTokenizer() *ThaiTokenizer { return r } -// true - type ThaiTokenizerVariant interface { ThaiTokenizerCaster() *ThaiTokenizer } @@ -95,3 +93,8 @@ type ThaiTokenizerVariant interface { func (s *ThaiTokenizer) ThaiTokenizerCaster() *ThaiTokenizer { return s } + +func (s *ThaiTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/threadcount.go b/typedapi/types/threadcount.go index ec9fc4a421..3bad23ac9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ThreadCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1075-L1100 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1082-L1107 type ThreadCount struct { // Active Number of active threads in the thread pool. Active *int64 `json:"active,omitempty"` @@ -163,5 +163,3 @@ func NewThreadCount() *ThreadCount { return r } - -// false diff --git a/typedapi/types/threadpoolrecord.go b/typedapi/types/threadpoolrecord.go index c43f704a48..2e69f6bc5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ThreadPoolRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/thread_pool/types.ts#L22-L124 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -336,5 +336,3 @@ func NewThreadPoolRecord() *ThreadPoolRecord { return r } - -// false diff --git a/typedapi/types/throttlestate.go b/typedapi/types/throttlestate.go index 091ef02aee..f2fd6549b6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ThrottleState type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L120-L123 type ThrottleState struct { Reason string `json:"reason"` Timestamp DateTime `json:"timestamp"` @@ -81,8 +81,6 @@ func NewThrottleState() *ThrottleState { return r } -// true - type ThrottleStateVariant interface { ThrottleStateCaster() *ThrottleState } diff --git a/typedapi/types/timehttphistogram.go b/typedapi/types/timehttphistogram.go index 4c853471c8..6d1b7dead2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TimeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L708-L712 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L710-L714 type TimeHttpHistogram struct { Count int64 `json:"count"` GeMillis *int64 `json:"ge_millis,omitempty"` @@ -109,5 +109,3 @@ func NewTimeHttpHistogram() *TimeHttpHistogram { return r } - -// false diff --git a/typedapi/types/timeofmonth.go b/typedapi/types/timeofmonth.go index e981dc5dfa..a078a58f14 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TimeOfMonth type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L111-L114 type TimeOfMonth struct { At []string `json:"at"` On []int `json:"on"` @@ -35,8 +35,6 @@ func NewTimeOfMonth() *TimeOfMonth { return r } -// true - type TimeOfMonthVariant interface { TimeOfMonthCaster() *TimeOfMonth } diff --git a/typedapi/types/timeofweek.go b/typedapi/types/timeofweek.go index c1dc208206..b34b1dec86 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // TimeOfWeek type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L116-L119 type TimeOfWeek struct { At []string `json:"at"` On []day.Day `json:"on"` @@ -39,8 +39,6 @@ func NewTimeOfWeek() *TimeOfWeek { return r } -// true - type TimeOfWeekVariant interface { TimeOfWeekCaster() *TimeOfWeek } diff --git a/typedapi/types/timeofyear.go b/typedapi/types/timeofyear.go index 0e9a29983c..81699e9b26 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // TimeOfYear type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Schedule.ts#L121-L125 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Schedule.ts#L121-L125 type TimeOfYear struct { At []string `json:"at"` Int []month.Month `json:"int"` @@ -40,8 +40,6 @@ func NewTimeOfYear() *TimeOfYear { return r } -// true - type TimeOfYearVariant interface { TimeOfYearCaster() *TimeOfYear } diff --git a/typedapi/types/timeseriesaggregate.go b/typedapi/types/timeseriesaggregate.go index 46f5828169..1cb17c6579 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TimeSeriesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L730-L731 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L732-L733 type TimeSeriesAggregate struct { Buckets BucketsTimeSeriesBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewTimeSeriesAggregate() *TimeSeriesAggregate { return r } - -// false diff --git a/typedapi/types/timeseriesaggregation.go b/typedapi/types/timeseriesaggregation.go index 5cadbb8089..404ae29f9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TimeSeriesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1033-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -97,8 +97,6 @@ func NewTimeSeriesAggregation() *TimeSeriesAggregation { return r } -// true - type TimeSeriesAggregationVariant interface { TimeSeriesAggregationCaster() *TimeSeriesAggregation } diff --git a/typedapi/types/timeseriesbucket.go b/typedapi/types/timeseriesbucket.go index 3d15b25d64..4f992bf2c5 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // TimeSeriesBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L733-L735 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L735-L737 type TimeSeriesBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -640,5 +640,3 @@ func NewTimeSeriesBucket() *TimeSeriesBucket { return r } - -// false diff --git a/typedapi/types/timesync.go b/typedapi/types/timesync.go index 9a9987c4b9..d1244cb58f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TimeSync type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L177-L189 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -79,8 +79,6 @@ func NewTimeSync() *TimeSync { return r } -// true - type TimeSyncVariant interface { TimeSyncCaster() *TimeSync } diff --git a/typedapi/types/timingstats.go b/typedapi/types/timingstats.go index c78164eb9d..74561f22f3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L564-L569 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L564-L569 type TimingStats struct { // ElapsedTime Runtime of the analysis in milliseconds. ElapsedTime int64 `json:"elapsed_time"` @@ -74,5 +74,3 @@ func NewTimingStats() *TimingStats { return r } - -// false diff --git a/typedapi/types/tokencountproperty.go b/typedapi/types/tokencountproperty.go index 2bd2f8ec56..c6dcdf9a1f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // TokenCountProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/specialized.ts#L94-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/specialized.ts#L94-L101 type TokenCountProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` @@ -288,6 +288,12 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -673,6 +679,12 @@ func (s *TokenCountProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -928,8 +940,6 @@ func NewTokenCountProperty() *TokenCountProperty { return r } -// true - type TokenCountPropertyVariant interface { TokenCountPropertyCaster() *TokenCountProperty } @@ -937,3 +947,8 @@ type TokenCountPropertyVariant interface { func (s *TokenCountProperty) TokenCountPropertyCaster() *TokenCountProperty { return s } + +func (s *TokenCountProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/tokendetail.go b/typedapi/types/tokendetail.go index fd214ec5c0..34620e58f8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TokenDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/analyze/types.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/analyze/types.ts#L71-L74 type TokenDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` @@ -80,5 +80,3 @@ func NewTokenDetail() *TokenDetail { return r } - -// false diff --git a/typedapi/types/tokenfilter.go b/typedapi/types/tokenfilter.go index 33bd9ab56b..97c324df66 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // TokenFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L345-L350 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L575-L580 type TokenFilter any type TokenFilterVariant interface { diff --git a/typedapi/types/tokenfilterdefinition.go b/typedapi/types/tokenfilterdefinition.go index 4526ec3a20..2f0a8f6282 100644 --- a/typedapi/types/tokenfilterdefinition.go +++ b/typedapi/types/tokenfilterdefinition.go @@ -16,39 +16,65 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TokenFilterDefinition holds the union for the following types: // +// ApostropheTokenFilter +// ArabicStemTokenFilter +// ArabicNormalizationTokenFilter // AsciiFoldingTokenFilter +// BengaliNormalizationTokenFilter +// BrazilianStemTokenFilter +// CjkBigramTokenFilter +// CjkWidthTokenFilter +// ClassicTokenFilter // CommonGramsTokenFilter // ConditionTokenFilter +// CzechStemTokenFilter +// DecimalDigitTokenFilter // DelimitedPayloadTokenFilter +// DutchStemTokenFilter // EdgeNGramTokenFilter // ElisionTokenFilter // FingerprintTokenFilter +// FlattenGraphTokenFilter +// FrenchStemTokenFilter +// GermanNormalizationTokenFilter +// GermanStemTokenFilter +// HindiNormalizationTokenFilter // HunspellTokenFilter // HyphenationDecompounderTokenFilter +// IndicNormalizationTokenFilter // KeepTypesTokenFilter // KeepWordsTokenFilter // KeywordMarkerTokenFilter +// KeywordRepeatTokenFilter // KStemTokenFilter // LengthTokenFilter // LimitTokenCountTokenFilter // LowercaseTokenFilter +// MinHashTokenFilter // MultiplexerTokenFilter // NGramTokenFilter // NoriPartOfSpeechTokenFilter // PatternCaptureTokenFilter // PatternReplaceTokenFilter +// PersianNormalizationTokenFilter +// PersianStemTokenFilter // PorterStemTokenFilter // PredicateTokenFilter // RemoveDuplicatesTokenFilter // ReverseTokenFilter +// RussianStemTokenFilter +// ScandinavianFoldingTokenFilter +// ScandinavianNormalizationTokenFilter +// SerbianNormalizationTokenFilter // ShingleTokenFilter // SnowballTokenFilter +// SoraniNormalizationTokenFilter // StemmerOverrideTokenFilter // StemmerTokenFilter // StopTokenFilter @@ -60,6 +86,7 @@ package types // UppercaseTokenFilter // WordDelimiterGraphTokenFilter // WordDelimiterTokenFilter +// JaStopTokenFilter // KuromojiStemmerTokenFilter // KuromojiReadingFormTokenFilter // KuromojiPartOfSpeechTokenFilter @@ -70,7 +97,7 @@ package types // PhoneticTokenFilter // DictionaryDecompounderTokenFilter // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L352-L404 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L582-L660 type TokenFilterDefinition any type TokenFilterDefinitionVariant interface { diff --git a/typedapi/types/tokenizationconfigcontainer.go b/typedapi/types/tokenizationconfigcontainer.go index 777423f6ac..9a7569ce4a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // TokenizationConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L135-L158 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L135-L158 type TokenizationConfigContainer struct { AdditionalTokenizationConfigContainerProperty map[string]json.RawMessage `json:"-"` // Bert Indicates BERT tokenization and its options @@ -79,8 +79,6 @@ func NewTokenizationConfigContainer() *TokenizationConfigContainer { return r } -// true - type TokenizationConfigContainerVariant interface { TokenizationConfigContainerCaster() *TokenizationConfigContainer } diff --git a/typedapi/types/tokenizer.go b/typedapi/types/tokenizer.go index 1addfc90ca..6b290fe786 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // string // TokenizerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L140-L145 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L142-L147 type Tokenizer any type TokenizerVariant interface { diff --git a/typedapi/types/tokenizerdefinition.go b/typedapi/types/tokenizerdefinition.go index 29e815531b..67cd206880 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -41,7 +41,7 @@ package types // KuromojiTokenizer // NoriTokenizer // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L147-L170 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L149-L172 type TokenizerDefinition any type TokenizerDefinitionVariant interface { diff --git a/typedapi/types/tokenpruningconfig.go b/typedapi/types/tokenpruningconfig.go index 0ba23da2c8..87aa167e9e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TokenPruningConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -117,8 +117,6 @@ func NewTokenPruningConfig() *TokenPruningConfig { return r } -// true - type TokenPruningConfigVariant interface { TokenPruningConfigCaster() *TokenPruningConfig } diff --git a/typedapi/types/toolcall.go b/typedapi/types/toolcall.go index 44333a2943..9a853fe5e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ToolCall type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L112-L128 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L151-L167 type ToolCall struct { // Function The function that the model called. Function ToolCallFunction `json:"function"` @@ -90,8 +90,6 @@ func NewToolCall() *ToolCall { return r } -// true - type ToolCallVariant interface { ToolCallCaster() *ToolCall } diff --git a/typedapi/types/toolcallfunction.go b/typedapi/types/toolcallfunction.go index b670caf645..d21774cabd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ToolCallFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L98-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L137-L149 type ToolCallFunction struct { // Arguments The arguments to call the function with in JSON format. Arguments string `json:"arguments"` @@ -90,8 +90,6 @@ func NewToolCallFunction() *ToolCallFunction { return r } -// true - type ToolCallFunctionVariant interface { ToolCallFunctionCaster() *ToolCallFunction } diff --git a/typedapi/types/topclassentry.go b/typedapi/types/topclassentry.go index 3e439d4810..527c4107e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L459-L463 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L459-L463 type TopClassEntry struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` @@ -108,5 +108,3 @@ func NewTopClassEntry() *TopClassEntry { return r } - -// false diff --git a/typedapi/types/tophit.go b/typedapi/types/tophit.go index 9b8d394590..428215b4d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TopHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/text_structure/_types/Structure.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/text_structure/_types/Structure.ts#L35-L38 type TopHit struct { Count int64 `json:"count"` Value json.RawMessage `json:"value,omitempty"` @@ -83,5 +83,3 @@ func NewTopHit() *TopHit { return r } - -// false diff --git a/typedapi/types/tophitsaggregate.go b/typedapi/types/tophitsaggregate.go index fe3c9176d7..c9cd63dd24 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TopHitsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L747-L753 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L749-L755 type TopHitsAggregate struct { Hits HitsMetadata `json:"hits"` Meta Metadata `json:"meta,omitempty"` @@ -72,5 +72,3 @@ func NewTopHitsAggregate() *TopHitsAggregate { return r } - -// false diff --git a/typedapi/types/tophitsaggregation.go b/typedapi/types/tophitsaggregation.go index 27e802d99a..2925bd510e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TopHitsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L346-L406 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L346-L406 type TopHitsAggregation struct { // DocvalueFields Fields for which to return doc values. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` @@ -297,8 +297,6 @@ func NewTopHitsAggregation() *TopHitsAggregation { return r } -// true - type TopHitsAggregationVariant interface { TopHitsAggregationCaster() *TopHitsAggregation } diff --git a/typedapi/types/topleftbottomrightgeobounds.go b/typedapi/types/topleftbottomrightgeobounds.go index 2ce8690d44..fd42341203 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TopLeftBottomRightGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L161-L164 type TopLeftBottomRightGeoBounds struct { BottomRight GeoLocation `json:"bottom_right"` TopLeft GeoLocation `json:"top_left"` @@ -153,8 +153,6 @@ func NewTopLeftBottomRightGeoBounds() *TopLeftBottomRightGeoBounds { return r } -// true - type TopLeftBottomRightGeoBoundsVariant interface { TopLeftBottomRightGeoBoundsCaster() *TopLeftBottomRightGeoBounds } @@ -162,3 +160,8 @@ type TopLeftBottomRightGeoBoundsVariant interface { func (s *TopLeftBottomRightGeoBounds) TopLeftBottomRightGeoBoundsCaster() *TopLeftBottomRightGeoBounds { return s } + +func (s *TopLeftBottomRightGeoBounds) GeoBoundsCaster() *GeoBounds { + o := GeoBounds(s) + return &o +} diff --git a/typedapi/types/topmetrics.go b/typedapi/types/topmetrics.go index 2a6f7cb69c..e2cb318d65 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TopMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L832-L836 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L834-L838 type TopMetrics struct { Metrics map[string]FieldValue `json:"metrics"` Sort []FieldValue `json:"sort"` @@ -36,5 +36,3 @@ func NewTopMetrics() *TopMetrics { return r } - -// false diff --git a/typedapi/types/topmetricsaggregate.go b/typedapi/types/topmetricsaggregate.go index f0882e1b21..1a6fe43669 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TopMetricsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L827-L830 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L829-L832 type TopMetricsAggregate struct { Meta Metadata `json:"meta,omitempty"` Top []TopMetrics `json:"top"` @@ -72,5 +72,3 @@ func NewTopMetricsAggregate() *TopMetricsAggregate { return r } - -// false diff --git a/typedapi/types/topmetricsaggregation.go b/typedapi/types/topmetricsaggregation.go index 25fe2f1854..d56d51f72e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TopMetricsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L408-L425 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L408-L425 type TopMetricsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -137,8 +137,6 @@ func NewTopMetricsAggregation() *TopMetricsAggregation { return r } -// true - type TopMetricsAggregationVariant interface { TopMetricsAggregationCaster() *TopMetricsAggregation } diff --git a/typedapi/types/topmetricsvalue.go b/typedapi/types/topmetricsvalue.go index a72cdcc0e6..d89c9f838b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TopMetricsValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L427-L432 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L427-L432 type TopMetricsValue struct { // Field A field to return as a metric. Field string `json:"field"` @@ -68,8 +68,6 @@ func NewTopMetricsValue() *TopMetricsValue { return r } -// true - type TopMetricsValueVariant interface { TopMetricsValueCaster() *TopMetricsValue } diff --git a/typedapi/types/toprightbottomleftgeobounds.go b/typedapi/types/toprightbottomleftgeobounds.go index 6e8fdb821d..7aba788cf8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TopRightBottomLeftGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L166-L169 type TopRightBottomLeftGeoBounds struct { BottomLeft GeoLocation `json:"bottom_left"` TopRight GeoLocation `json:"top_right"` @@ -153,8 +153,6 @@ func NewTopRightBottomLeftGeoBounds() *TopRightBottomLeftGeoBounds { return r } -// true - type TopRightBottomLeftGeoBoundsVariant interface { TopRightBottomLeftGeoBoundsCaster() *TopRightBottomLeftGeoBounds } @@ -162,3 +160,8 @@ type TopRightBottomLeftGeoBoundsVariant interface { func (s *TopRightBottomLeftGeoBounds) TopRightBottomLeftGeoBoundsCaster() *TopRightBottomLeftGeoBounds { return s } + +func (s *TopRightBottomLeftGeoBounds) GeoBoundsCaster() *GeoBounds { + o := GeoBounds(s) + return &o +} diff --git a/typedapi/types/totalfeatureimportance.go b/typedapi/types/totalfeatureimportance.go index 1cb0ee5f0d..a9207368e8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L290-L297 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -83,5 +83,3 @@ func NewTotalFeatureImportance() *TotalFeatureImportance { return r } - -// false diff --git a/typedapi/types/totalfeatureimportanceclass.go b/typedapi/types/totalfeatureimportanceclass.go index 4b3bd85d4d..47cc51309b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportanceClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L299-L304 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -75,5 +75,3 @@ func NewTotalFeatureImportanceClass() *TotalFeatureImportanceClass { return r } - -// false diff --git a/typedapi/types/totalfeatureimportancestatistics.go b/typedapi/types/totalfeatureimportancestatistics.go index 473ca0d5e5..7e80613477 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TotalFeatureImportanceStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L306-L313 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -117,5 +117,3 @@ func NewTotalFeatureImportanceStatistics() *TotalFeatureImportanceStatistics { return r } - -// false diff --git a/typedapi/types/totaluserprofiles.go b/typedapi/types/totaluserprofiles.go index 86c6532af0..47227e215b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TotalUserProfiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/suggest_user_profiles/Response.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/suggest_user_profiles/Response.ts#L24-L27 type TotalUserProfiles struct { Relation string `json:"relation"` Value int64 `json:"value"` @@ -83,5 +83,3 @@ func NewTotalUserProfiles() *TotalUserProfiles { return r } - -// false diff --git a/typedapi/types/trackhits.go b/typedapi/types/trackhits.go index 019da9e466..ca41a4ad47 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,7 +25,7 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/search/_types/hits.ts#L143-L151 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/search/_types/hits.ts#L143-L151 type TrackHits any type TrackHitsVariant interface { diff --git a/typedapi/types/trainedmodel.go b/typedapi/types/trainedmodel.go index 76e0d0cddf..73dcc23681 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TrainedModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L60-L72 type TrainedModel struct { // Ensemble The definition for an ensemble model Ensemble *Ensemble `json:"ensemble,omitempty"` @@ -43,8 +43,6 @@ func NewTrainedModel() *TrainedModel { return r } -// true - type TrainedModelVariant interface { TrainedModelCaster() *TrainedModel } diff --git a/typedapi/types/trainedmodelassignment.go b/typedapi/types/trainedmodelassignment.go index 493694df2d..60d5cff36d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignment type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L472-L489 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L472-L489 type TrainedModelAssignment struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AssignmentState The overall assignment state. @@ -131,5 +131,3 @@ func NewTrainedModelAssignment() *TrainedModelAssignment { return r } - -// false diff --git a/typedapi/types/trainedmodelassignmentroutingstateandreason.go b/typedapi/types/trainedmodelassignmentroutingstateandreason.go index 7cda537734..05e068cdaf 100644 --- a/typedapi/types/trainedmodelassignmentroutingstateandreason.go +++ b/typedapi/types/trainedmodelassignmentroutingstateandreason.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentRoutingStateAndReason type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L431-L441 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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`. @@ -85,5 +85,3 @@ func NewTrainedModelAssignmentRoutingStateAndReason() *TrainedModelAssignmentRou return r } - -// false diff --git a/typedapi/types/trainedmodelassignmentroutingtable.go b/typedapi/types/trainedmodelassignmentroutingtable.go index 9a4f24f952..3beac2a5fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentRoutingTable type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L443-L461 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L443-L461 type TrainedModelAssignmentRoutingTable struct { // CurrentAllocations Current number of allocations. CurrentAllocations int `json:"current_allocations"` @@ -121,5 +121,3 @@ func NewTrainedModelAssignmentRoutingTable() *TrainedModelAssignmentRoutingTable return r } - -// false diff --git a/typedapi/types/trainedmodelassignmenttaskparameters.go b/typedapi/types/trainedmodelassignmenttaskparameters.go index 7d73ffda07..f5a69faf1c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelAssignmentTaskParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L370-L406 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L370-L406 type TrainedModelAssignmentTaskParameters struct { // CacheSize The size of the trained model cache. CacheSize ByteSize `json:"cache_size,omitempty"` @@ -163,5 +163,3 @@ func NewTrainedModelAssignmentTaskParameters() *TrainedModelAssignmentTaskParame return r } - -// false diff --git a/typedapi/types/trainedmodelconfig.go b/typedapi/types/trainedmodelconfig.go index 85e586c695..90afa0ba56 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L203-L240 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -280,5 +280,3 @@ func NewTrainedModelConfig() *TrainedModelConfig { return r } - -// false diff --git a/typedapi/types/trainedmodelconfiginput.go b/typedapi/types/trainedmodelconfiginput.go index 5594771999..bbf988fab6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TrainedModelConfigInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L242-L245 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -34,5 +34,3 @@ func NewTrainedModelConfigInput() *TrainedModelConfigInput { return r } - -// false diff --git a/typedapi/types/trainedmodelconfigmetadata.go b/typedapi/types/trainedmodelconfigmetadata.go index bc9bb9b330..fd97b18de4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TrainedModelConfigMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L247-L255 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -47,5 +47,3 @@ func NewTrainedModelConfigMetadata() *TrainedModelConfigMetadata { return r } - -// false diff --git a/typedapi/types/trainedmodeldeploymentallocationstatus.go b/typedapi/types/trainedmodeldeploymentallocationstatus.go index 5ca8b3e9e0..21e542c32f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // TrainedModelDeploymentAllocationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L463-L470 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -106,5 +106,3 @@ func NewTrainedModelDeploymentAllocationStatus() *TrainedModelDeploymentAllocati return r } - -// false diff --git a/typedapi/types/trainedmodeldeploymentnodesstats.go b/typedapi/types/trainedmodeldeploymentnodesstats.go index eab660e54b..add17d662c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelDeploymentNodesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L156-L201 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -302,5 +302,3 @@ func NewTrainedModelDeploymentNodesStats() *TrainedModelDeploymentNodesStats { return r } - -// false diff --git a/typedapi/types/trainedmodeldeploymentstats.go b/typedapi/types/trainedmodeldeploymentstats.go index f530d69d25..dd0f7074cf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // TrainedModelDeploymentStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L62-L107 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L62-L107 type TrainedModelDeploymentStats struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AllocationStatus The detailed allocation status for the deployment. @@ -286,5 +286,3 @@ func NewTrainedModelDeploymentStats() *TrainedModelDeploymentStats { return r } - -// false diff --git a/typedapi/types/trainedmodelentities.go b/typedapi/types/trainedmodelentities.go index 7297287fc9..fb1cef4101 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelEntities type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L452-L458 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L452-L458 type TrainedModelEntities struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` @@ -138,5 +138,3 @@ func NewTrainedModelEntities() *TrainedModelEntities { return r } - -// false diff --git a/typedapi/types/trainedmodelinferenceclassimportance.go b/typedapi/types/trainedmodelinferenceclassimportance.go index 1760ab0e94..44d0b887c6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L465-L468 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L465-L468 type TrainedModelInferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` @@ -91,5 +91,3 @@ func NewTrainedModelInferenceClassImportance() *TrainedModelInferenceClassImport return r } - -// false diff --git a/typedapi/types/trainedmodelinferencefeatureimportance.go b/typedapi/types/trainedmodelinferencefeatureimportance.go index dae65d4141..856d0c76ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L470-L474 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L470-L474 type TrainedModelInferenceFeatureImportance struct { Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` @@ -97,5 +97,3 @@ func NewTrainedModelInferenceFeatureImportance() *TrainedModelInferenceFeatureIm return r } - -// false diff --git a/typedapi/types/trainedmodelinferencestats.go b/typedapi/types/trainedmodelinferencestats.go index 40839359b5..b37d5d3725 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L127-L147 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -147,5 +147,3 @@ func NewTrainedModelInferenceStats() *TrainedModelInferenceStats { return r } - -// false diff --git a/typedapi/types/trainedmodellocation.go b/typedapi/types/trainedmodellocation.go index 5b962639a8..ffe9490526 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TrainedModelLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L491-L493 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L491-L493 type TrainedModelLocation struct { Index TrainedModelLocationIndex `json:"index"` } @@ -33,5 +33,3 @@ func NewTrainedModelLocation() *TrainedModelLocation { return r } - -// false diff --git a/typedapi/types/trainedmodellocationindex.go b/typedapi/types/trainedmodellocationindex.go index 2e03a7ca93..34c6c6fa38 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TrainedModelLocationIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L495-L497 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L495-L497 type TrainedModelLocationIndex struct { Name string `json:"name"` } @@ -66,5 +66,3 @@ func NewTrainedModelLocationIndex() *TrainedModelLocationIndex { return r } - -// false diff --git a/typedapi/types/trainedmodelprefixstrings.go b/typedapi/types/trainedmodelprefixstrings.go index 106fe52910..bd5524c6cc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelPrefixStrings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L499-L508 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L499-L508 type TrainedModelPrefixStrings struct { // Ingest String prepended to input at ingest Ingest *string `json:"ingest,omitempty"` @@ -90,8 +90,6 @@ func NewTrainedModelPrefixStrings() *TrainedModelPrefixStrings { return r } -// true - type TrainedModelPrefixStringsVariant interface { TrainedModelPrefixStringsCaster() *TrainedModelPrefixStrings } diff --git a/typedapi/types/trainedmodelsizestats.go b/typedapi/types/trainedmodelsizestats.go index ee2b1038c5..50bb96df46 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TrainedModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L149-L154 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L149-L154 type TrainedModelSizeStats struct { // ModelSizeBytes The size of the model in bytes. ModelSizeBytes ByteSize `json:"model_size_bytes"` @@ -74,5 +74,3 @@ func NewTrainedModelSizeStats() *TrainedModelSizeStats { return r } - -// false diff --git a/typedapi/types/trainedmodelsrecord.go b/typedapi/types/trainedmodelsrecord.go index 5cca736bbe..6dc0550814 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/ml_trained_models/types.ts#L23-L115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -286,5 +286,3 @@ func NewTrainedModelsRecord() *TrainedModelsRecord { return r } - -// false diff --git a/typedapi/types/trainedmodelstats.go b/typedapi/types/trainedmodelstats.go index 68063ab0c1..99e557d62d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/TrainedModel.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/TrainedModel.ts#L42-L60 type TrainedModelStats struct { // DeploymentStats A collection of deployment stats, which is present when the models are // deployed. @@ -122,5 +122,3 @@ func NewTrainedModelStats() *TrainedModelStats { return r } - -// false diff --git a/typedapi/types/trainedmodeltree.go b/typedapi/types/trainedmodeltree.go index 68517905c1..574eb93691 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTree type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L74-L79 type TrainedModelTree struct { ClassificationLabels []string `json:"classification_labels,omitempty"` FeatureNames []string `json:"feature_names"` @@ -93,8 +93,6 @@ func NewTrainedModelTree() *TrainedModelTree { return r } -// true - type TrainedModelTreeVariant interface { TrainedModelTreeCaster() *TrainedModelTree } diff --git a/typedapi/types/trainedmodeltreenode.go b/typedapi/types/trainedmodeltreenode.go index 5f5210f637..923734ad61 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTreeNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L81-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L81-L91 type TrainedModelTreeNode struct { DecisionType *string `json:"decision_type,omitempty"` DefaultLeft *bool `json:"default_left,omitempty"` @@ -209,8 +209,6 @@ func NewTrainedModelTreeNode() *TrainedModelTreeNode { return r } -// true - type TrainedModelTreeNodeVariant interface { TrainedModelTreeNodeCaster() *TrainedModelTreeNode } diff --git a/typedapi/types/transformauthorization.go b/typedapi/types/transformauthorization.go index 7cfa93f5fa..8e4015e4e1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/Authorization.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -92,5 +92,3 @@ func NewTransformAuthorization() *TransformAuthorization { return r } - -// false diff --git a/typedapi/types/transformcontainer.go b/typedapi/types/transformcontainer.go index 9f79ae06e5..2cc4cedf73 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // TransformContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Transform.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Transform.ts#L28-L35 type TransformContainer struct { AdditionalTransformContainerProperty map[string]json.RawMessage `json:"-"` Chain []TransformContainer `json:"chain,omitempty"` @@ -73,8 +73,6 @@ func NewTransformContainer() *TransformContainer { return r } -// true - type TransformContainerVariant interface { TransformContainerCaster() *TransformContainer } diff --git a/typedapi/types/transformdestination.go b/typedapi/types/transformdestination.go index a152fd914f..feb7945dea 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -87,8 +87,6 @@ func NewTransformDestination() *TransformDestination { return r } -// true - type TransformDestinationVariant interface { TransformDestinationCaster() *TransformDestination } diff --git a/typedapi/types/transformhealthissue.go b/typedapi/types/transformhealthissue.go index aaef46c268..729a48f828 100644 --- a/typedapi/types/transformhealthissue.go +++ b/typedapi/types/transformhealthissue.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformHealthIssue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L51-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -134,5 +134,3 @@ func NewTransformHealthIssue() *TransformHealthIssue { return r } - -// false diff --git a/typedapi/types/transformindexerstats.go b/typedapi/types/transformindexerstats.go index e2a8a355d8..b39b8fbd53 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformIndexerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L73-L91 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -285,5 +285,3 @@ func NewTransformIndexerStats() *TransformIndexerStats { return r } - -// false diff --git a/typedapi/types/transformprogress.go b/typedapi/types/transformprogress.go index 437c4c197f..c3a156313a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L65-L71 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/get_transform_stats/types.ts#L65-L71 type TransformProgress struct { DocsIndexed int64 `json:"docs_indexed"` DocsProcessed int64 `json:"docs_processed"` @@ -142,5 +142,3 @@ func NewTransformProgress() *TransformProgress { return r } - -// false diff --git a/typedapi/types/transformsource.go b/typedapi/types/transformsource.go index 0614164baf..55f8a5b9a0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TransformSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/_types/Transform.ts#L146-L165 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -102,8 +102,6 @@ func NewTransformSource() *TransformSource { return r } -// true - type TransformSourceVariant interface { TransformSourceCaster() *TransformSource } diff --git a/typedapi/types/transformsrecord.go b/typedapi/types/transformsrecord.go index b6c31cf97e..0e14af40a9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cat/transforms/types.ts#L22-L197 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -533,5 +533,3 @@ func NewTransformsRecord() *TransformsRecord { return r } - -// false diff --git a/typedapi/types/transformstats.go b/typedapi/types/transformstats.go index 1979008074..19537df80c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L31-L42 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/transform/get_transform_stats/types.ts#L31-L42 type TransformStats struct { Checkpointing Checkpointing `json:"checkpointing"` Health *TransformStatsHealth `json:"health,omitempty"` @@ -117,5 +117,3 @@ func NewTransformStats() *TransformStats { return r } - -// false diff --git a/typedapi/types/transformstatshealth.go b/typedapi/types/transformstatshealth.go index babb5ec9b1..fa0902cbcf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // TransformStatsHealth type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform_stats/types.ts#L44-L49 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -40,5 +40,3 @@ func NewTransformStatsHealth() *TransformStatsHealth { return r } - -// false diff --git a/typedapi/types/transformsummary.go b/typedapi/types/transformsummary.go index d87d664d72..fc57824225 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransformSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/transform/get_transform/types.ts#L33-L62 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -170,5 +170,3 @@ func NewTransformSummary() *TransformSummary { return r } - -// false diff --git a/typedapi/types/translog.go b/typedapi/types/translog.go index e18a707b44..4446f374ba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // Translog type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L355-L377 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L357-L379 type Translog struct { // Durability Whether or not to `fsync` and commit the translog after every index, delete, // update, or bulk request. @@ -102,8 +102,6 @@ func NewTranslog() *Translog { return r } -// true - type TranslogVariant interface { TranslogCaster() *Translog } diff --git a/typedapi/types/translogretention.go b/typedapi/types/translogretention.go index 0469badb50..6ad10c1376 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TranslogRetention type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/_types/IndexSettings.ts#L396-L415 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/_types/IndexSettings.ts#L398-L417 type TranslogRetention struct { // Age This controls the maximum duration for which translog files are kept by each // shard. Keeping more @@ -91,8 +91,6 @@ func NewTranslogRetention() *TranslogRetention { return r } -// true - type TranslogRetentionVariant interface { TranslogRetentionCaster() *TranslogRetention } diff --git a/typedapi/types/translogstats.go b/typedapi/types/translogstats.go index 0ffab343ec..80bcda8a92 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TranslogStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L400-L408 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L424-L432 type TranslogStats struct { EarliestLastModifiedAge int64 `json:"earliest_last_modified_age"` Operations int64 `json:"operations"` @@ -168,5 +168,3 @@ func NewTranslogStats() *TranslogStats { return r } - -// false diff --git a/typedapi/types/translogstatus.go b/typedapi/types/translogstatus.go index 3fc1109a20..c2ef1a95d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TranslogStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L102-L109 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/recovery/types.ts#L102-L109 type TranslogStatus struct { Percent Percentage `json:"percent"` Recovered int64 `json:"recovered"` @@ -127,5 +127,3 @@ func NewTranslogStatus() *TranslogStatus { return r } - -// false diff --git a/typedapi/types/transport.go b/typedapi/types/transport.go index fc9e6bfb86..f6208a83c0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Transport type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1118-L1161 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1125-L1168 type Transport struct { // InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a // transport thread, represented as a histogram. @@ -219,5 +219,3 @@ func NewTransport() *Transport { return r } - -// false diff --git a/typedapi/types/transporthistogram.go b/typedapi/types/transporthistogram.go index 4c7c369b8f..376f8eac9a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TransportHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/nodes/_types/Stats.ts#L1163-L1177 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/nodes/_types/Stats.ts#L1170-L1184 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. @@ -115,5 +115,3 @@ func NewTransportHistogram() *TransportHistogram { return r } - -// false diff --git a/typedapi/types/triggercontainer.go b/typedapi/types/triggercontainer.go index 7400345107..f46637508d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // TriggerContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Trigger.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Trigger.ts#L23-L28 type TriggerContainer struct { AdditionalTriggerContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleContainer `json:"schedule,omitempty"` @@ -71,8 +71,6 @@ func NewTriggerContainer() *TriggerContainer { return r } -// true - type TriggerContainerVariant interface { TriggerContainerCaster() *TriggerContainer } diff --git a/typedapi/types/triggereventcontainer.go b/typedapi/types/triggereventcontainer.go index 478730a2ab..75fad98d6b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // TriggerEventContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Trigger.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Trigger.ts#L32-L37 type TriggerEventContainer struct { AdditionalTriggerEventContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleTriggerEvent `json:"schedule,omitempty"` @@ -70,5 +70,3 @@ func NewTriggerEventContainer() *TriggerEventContainer { return r } - -// false diff --git a/typedapi/types/triggereventresult.go b/typedapi/types/triggereventresult.go index 2014bd7a97..95f01594d9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TriggerEventResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Trigger.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Trigger.ts#L39-L43 type TriggerEventResult struct { Manual TriggerEventContainer `json:"manual"` TriggeredTime DateTime `json:"triggered_time"` @@ -86,5 +86,3 @@ func NewTriggerEventResult() *TriggerEventResult { return r } - -// false diff --git a/typedapi/types/trimprocessor.go b/typedapi/types/trimprocessor.go index 53f8654f0e..1f8362693b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TrimProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1544-L1560 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1544-L1560 type TrimProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewTrimProcessor() *TrimProcessor { return r } -// true - type TrimProcessorVariant interface { TrimProcessorCaster() *TrimProcessor } diff --git a/typedapi/types/trimtokenfilter.go b/typedapi/types/trimtokenfilter.go index b1f3ed02db..97ac9fdf87 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // TrimTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L431-L433 type TrimTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewTrimTokenFilter() *TrimTokenFilter { return r } -// true - type TrimTokenFilterVariant interface { TrimTokenFilterCaster() *TrimTokenFilter } @@ -95,3 +93,8 @@ type TrimTokenFilterVariant interface { func (s *TrimTokenFilter) TrimTokenFilterCaster() *TrimTokenFilter { return s } + +func (s *TrimTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/truncatetokenfilter.go b/typedapi/types/truncatetokenfilter.go index 22cb6767dc..46dc24caaf 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,8 +31,10 @@ import ( // TruncateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L435-L439 type TruncateTokenFilter struct { + // Length Character limit for each token. Tokens exceeding this limit are truncated. + // Defaults to `10`. Length *int `json:"length,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -105,8 +107,6 @@ func NewTruncateTokenFilter() *TruncateTokenFilter { return r } -// true - type TruncateTokenFilterVariant interface { TruncateTokenFilterCaster() *TruncateTokenFilter } @@ -114,3 +114,8 @@ type TruncateTokenFilterVariant interface { func (s *TruncateTokenFilter) TruncateTokenFilterCaster() *TruncateTokenFilter { return s } + +func (s *TruncateTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/ttestaggregate.go b/typedapi/types/ttestaggregate.go index 74c7066950..8536926d6f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TTestAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L838-L845 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L840-L847 type TTestAggregate struct { Meta Metadata `json:"meta,omitempty"` Value *Float64 `json:"value,omitempty"` @@ -86,5 +86,3 @@ func NewTTestAggregate() *TTestAggregate { return r } - -// false diff --git a/typedapi/types/ttestaggregation.go b/typedapi/types/ttestaggregation.go index 4de6738d75..8536a028a1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -26,7 +26,7 @@ import ( // TTestAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L303-L317 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L303-L317 type TTestAggregation struct { // A Test population A. A *TestPopulation `json:"a,omitempty"` @@ -43,8 +43,6 @@ func NewTTestAggregation() *TTestAggregation { return r } -// true - type TTestAggregationVariant interface { TTestAggregationCaster() *TTestAggregation } diff --git a/typedapi/types/turkishanalyzer.go b/typedapi/types/turkishanalyzer.go index a87b593e71..31acec11e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,12 +31,12 @@ import ( // TurkishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L310-L315 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L310-L315 type TurkishAnalyzer struct { - StemExclusion []string `json:"stem_exclusion,omitempty"` - Stopwords []string `json:"stopwords,omitempty"` - StopwordsPath *string `json:"stopwords_path,omitempty"` - Type string `json:"type,omitempty"` + StemExclusion []string `json:"stem_exclusion,omitempty"` + Stopwords StopWords `json:"stopwords,omitempty"` + StopwordsPath *string `json:"stopwords_path,omitempty"` + Type string `json:"type,omitempty"` } func (s *TurkishAnalyzer) UnmarshalJSON(data []byte) error { @@ -60,19 +60,8 @@ func (s *TurkishAnalyzer) UnmarshalJSON(data []byte) error { } case "stopwords": - rawMsg := json.RawMessage{} - dec.Decode(&rawMsg) - if !bytes.HasPrefix(rawMsg, []byte("[")) { - o := new(string) - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } - - s.Stopwords = append(s.Stopwords, *o) - } else { - if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Stopwords); err != nil { - return fmt.Errorf("%s | %w", "Stopwords", err) - } + if err := dec.Decode(&s.Stopwords); err != nil { + return fmt.Errorf("%s | %w", "Stopwords", err) } case "stopwords_path": @@ -119,8 +108,6 @@ func NewTurkishAnalyzer() *TurkishAnalyzer { return r } -// true - type TurkishAnalyzerVariant interface { TurkishAnalyzerCaster() *TurkishAnalyzer } @@ -128,3 +115,8 @@ type TurkishAnalyzerVariant interface { func (s *TurkishAnalyzer) TurkishAnalyzerCaster() *TurkishAnalyzer { return s } + +func (s *TurkishAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/typefieldmappings.go b/typedapi/types/typefieldmappings.go index ae429555e3..7d0f9a8914 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // TypeFieldMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/get_field_mapping/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/get_field_mapping/types.ts#L24-L26 type TypeFieldMappings struct { Mappings map[string]FieldMapping `json:"mappings"` } @@ -35,5 +35,3 @@ func NewTypeFieldMappings() *TypeFieldMappings { return r } - -// false diff --git a/typedapi/types/typemapping.go b/typedapi/types/typemapping.go index d9e90ddc3b..ea38429a91 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // TypeMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/TypeMapping.ts#L34-L57 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/TypeMapping.ts#L34-L57 type TypeMapping struct { AllField *AllField `json:"all_field,omitempty"` DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"` @@ -294,6 +294,12 @@ func (s *TypeMapping) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -526,8 +532,6 @@ func NewTypeMapping() *TypeMapping { return r } -// true - type TypeMappingVariant interface { TypeMappingCaster() *TypeMapping } diff --git a/typedapi/types/typequery.go b/typedapi/types/typequery.go index 0c24f39671..28d2c7bf11 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // TypeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L301-L303 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L297-L299 type TypeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -110,8 +110,6 @@ func NewTypeQuery() *TypeQuery { return r } -// true - type TypeQueryVariant interface { TypeQueryCaster() *TypeQuery } diff --git a/typedapi/types/uaxemailurltokenizer.go b/typedapi/types/uaxemailurltokenizer.go index d43895bf0e..9ea0109bde 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UaxEmailUrlTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L130-L133 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L132-L135 type UaxEmailUrlTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewUaxEmailUrlTokenizer() *UaxEmailUrlTokenizer { return r } -// true - type UaxEmailUrlTokenizerVariant interface { UaxEmailUrlTokenizerCaster() *UaxEmailUrlTokenizer } @@ -114,3 +112,8 @@ type UaxEmailUrlTokenizerVariant interface { func (s *UaxEmailUrlTokenizer) UaxEmailUrlTokenizerCaster() *UaxEmailUrlTokenizer { return s } + +func (s *UaxEmailUrlTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/unassignedinformation.go b/typedapi/types/unassignedinformation.go index 193b360fae..6c2aaaec35 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // UnassignedInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/allocation_explain/types.ts#L128-L136 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/allocation_explain/types.ts#L128-L136 type UnassignedInformation struct { AllocationStatus *string `json:"allocation_status,omitempty"` At DateTime `json:"at"` @@ -146,5 +146,3 @@ func NewUnassignedInformation() *UnassignedInformation { return r } - -// false diff --git a/typedapi/types/uniquetokenfilter.go b/typedapi/types/uniquetokenfilter.go index d8655d55ba..f90fb1acba 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,8 +31,10 @@ import ( // UniqueTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L441-L445 type UniqueTokenFilter struct { + // OnlyOnSamePosition If `true`, only remove duplicate tokens in the same position. Defaults to + // `false`. OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"` Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -103,8 +105,6 @@ func NewUniqueTokenFilter() *UniqueTokenFilter { return r } -// true - type UniqueTokenFilterVariant interface { UniqueTokenFilterCaster() *UniqueTokenFilter } @@ -112,3 +112,8 @@ type UniqueTokenFilterVariant interface { func (s *UniqueTokenFilter) UniqueTokenFilterCaster() *UniqueTokenFilter { return s } + +func (s *UniqueTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/unmappedraretermsaggregate.go b/typedapi/types/unmappedraretermsaggregate.go index 0e50337add..1cbfc18b8f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // UnmappedRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L493-L499 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L493-L499 type UnmappedRareTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewUnmappedRareTermsAggregate() *UnmappedRareTermsAggregate { return r } - -// false diff --git a/typedapi/types/unmappedsampleraggregate.go b/typedapi/types/unmappedsampleraggregate.go index da818ebdd8..310877fcac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // UnmappedSamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L561-L562 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L561-L562 type UnmappedSamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -636,5 +636,3 @@ func NewUnmappedSamplerAggregate() *UnmappedSamplerAggregate { return r } - -// false diff --git a/typedapi/types/unmappedsignificanttermsaggregate.go b/typedapi/types/unmappedsignificanttermsaggregate.go index 2f37b26d24..ac3b5978ac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UnmappedSignificantTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L690-L696 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L692-L698 type UnmappedSignificantTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsVoid `json:"buckets"` @@ -121,5 +121,3 @@ func NewUnmappedSignificantTermsAggregate() *UnmappedSignificantTermsAggregate { return r } - -// false diff --git a/typedapi/types/unmappedtermsaggregate.go b/typedapi/types/unmappedtermsaggregate.go index 3427e77525..39e966ea8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UnmappedTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L463-L469 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L463-L469 type UnmappedTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` @@ -121,5 +121,3 @@ func NewUnmappedTermsAggregate() *UnmappedTermsAggregate { return r } - -// false diff --git a/typedapi/types/unrateddocument.go b/typedapi/types/unrateddocument.go index 75a14c7dfb..054f8413fd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // UnratedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/rank_eval/types.ts#L150-L153 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/rank_eval/types.ts#L150-L153 type UnratedDocument struct { Id_ string `json:"_id"` Index_ string `json:"_index"` @@ -72,5 +72,3 @@ func NewUnratedDocument() *UnratedDocument { return r } - -// false diff --git a/typedapi/types/unsignedlongnumberproperty.go b/typedapi/types/unsignedlongnumberproperty.go index 6847dc003b..b0686819b0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -36,7 +36,7 @@ import ( // UnsignedLongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L190-L193 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L190-L193 type UnsignedLongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` @@ -286,6 +286,12 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -679,6 +685,12 @@ func (s *UnsignedLongNumberProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -962,8 +974,6 @@ func NewUnsignedLongNumberProperty() *UnsignedLongNumberProperty { return r } -// true - type UnsignedLongNumberPropertyVariant interface { UnsignedLongNumberPropertyCaster() *UnsignedLongNumberProperty } @@ -971,3 +981,8 @@ type UnsignedLongNumberPropertyVariant interface { func (s *UnsignedLongNumberProperty) UnsignedLongNumberPropertyCaster() *UnsignedLongNumberProperty { return s } + +func (s *UnsignedLongNumberProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/untypeddecayfunction.go b/typedapi/types/untypeddecayfunction.go index 3d5ace0dc2..05f6c87c83 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // UntypedDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/compound.ts#L204-L207 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -75,8 +75,6 @@ func NewUntypedDecayFunction() *UntypedDecayFunction { return r } -// true - type UntypedDecayFunctionVariant interface { UntypedDecayFunctionCaster() *UntypedDecayFunction } @@ -84,3 +82,8 @@ type UntypedDecayFunctionVariant interface { func (s *UntypedDecayFunction) UntypedDecayFunctionCaster() *UntypedDecayFunction { return s } + +func (s *UntypedDecayFunction) DecayFunctionCaster() *DecayFunction { + o := DecayFunction(s) + return &o +} diff --git a/typedapi/types/untypeddistancefeaturequery.go b/typedapi/types/untypeddistancefeaturequery.go index baafa12652..99cdc25b97 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UntypedDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/specialized.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -132,8 +132,6 @@ func NewUntypedDistanceFeatureQuery() *UntypedDistanceFeatureQuery { return r } -// true - type UntypedDistanceFeatureQueryVariant interface { UntypedDistanceFeatureQueryCaster() *UntypedDistanceFeatureQuery } @@ -141,3 +139,8 @@ type UntypedDistanceFeatureQueryVariant interface { func (s *UntypedDistanceFeatureQuery) UntypedDistanceFeatureQueryCaster() *UntypedDistanceFeatureQuery { return s } + +func (s *UntypedDistanceFeatureQuery) DistanceFeatureQueryCaster() *DistanceFeatureQuery { + o := DistanceFeatureQuery(s) + return &o +} diff --git a/typedapi/types/untypedrangequery.go b/typedapi/types/untypedrangequery.go index fc81d08e81..e08c5a7b6f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // UntypedRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L146-L155 type UntypedRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -42,8 +42,7 @@ type UntypedRangeQuery struct { // A value greater than 1.0 increases the relevance score. Boost *float32 `json:"boost,omitempty"` // Format Date format used to convert `date` values in the query. - Format *string `json:"format,omitempty"` - From *json.RawMessage `json:"from,omitempty"` + Format *string `json:"format,omitempty"` // Gt Greater than. Gt json.RawMessage `json:"gt,omitempty"` // Gte Greater than or equal to. @@ -57,8 +56,7 @@ type UntypedRangeQuery struct { Relation *rangerelation.RangeRelation `json:"relation,omitempty"` // TimeZone Coordinated Universal Time (UTC) offset or IANA time zone used to convert // `date` values in the query to UTC. - TimeZone *string `json:"time_zone,omitempty"` - To *json.RawMessage `json:"to,omitempty"` + TimeZone *string `json:"time_zone,omitempty"` } func (s *UntypedRangeQuery) UnmarshalJSON(data []byte) error { @@ -97,11 +95,6 @@ func (s *UntypedRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Format", err) } - case "from": - if err := dec.Decode(&s.From); err != nil { - return fmt.Errorf("%s | %w", "From", err) - } - case "gt": if err := dec.Decode(&s.Gt); err != nil { return fmt.Errorf("%s | %w", "Gt", err) @@ -144,11 +137,6 @@ func (s *UntypedRangeQuery) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "TimeZone", err) } - case "to": - if err := dec.Decode(&s.To); err != nil { - return fmt.Errorf("%s | %w", "To", err) - } - } } return nil @@ -161,8 +149,6 @@ func NewUntypedRangeQuery() *UntypedRangeQuery { return r } -// true - type UntypedRangeQueryVariant interface { UntypedRangeQueryCaster() *UntypedRangeQuery } @@ -170,3 +156,8 @@ type UntypedRangeQueryVariant interface { func (s *UntypedRangeQuery) UntypedRangeQueryCaster() *UntypedRangeQuery { return s } + +func (s *UntypedRangeQuery) RangeQueryCaster() *RangeQuery { + o := RangeQuery(s) + return &o +} diff --git a/typedapi/types/updateaction.go b/typedapi/types/updateaction.go index 9d97900e72..283fbb8b0d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UpdateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L182-L217 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -174,8 +174,6 @@ func NewUpdateAction() *UpdateAction { return r } -// true - type UpdateActionVariant interface { UpdateActionCaster() *UpdateAction } diff --git a/typedapi/types/updatebyqueryrethrottlenode.go b/typedapi/types/updatebyqueryrethrottlenode.go index d3d57c5079..5230d100dc 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // UpdateByQueryRethrottleNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 type UpdateByQueryRethrottleNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` @@ -113,5 +113,3 @@ func NewUpdateByQueryRethrottleNode() *UpdateByQueryRethrottleNode { return r } - -// false diff --git a/typedapi/types/updateoperation.go b/typedapi/types/updateoperation.go index b16673e5b7..df3ab1e3e3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // UpdateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_global/bulk/types.ts#L146-L156 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_global/bulk/types.ts#L146-L156 type UpdateOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` @@ -154,8 +154,6 @@ func NewUpdateOperation() *UpdateOperation { return r } -// true - type UpdateOperationVariant interface { UpdateOperationCaster() *UpdateOperation } diff --git a/typedapi/types/uppercaseprocessor.go b/typedapi/types/uppercaseprocessor.go index 884a70a6cd..392130eb7e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UppercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1562-L1578 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1562-L1578 type UppercaseProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewUppercaseProcessor() *UppercaseProcessor { return r } -// true - type UppercaseProcessorVariant interface { UppercaseProcessorCaster() *UppercaseProcessor } diff --git a/typedapi/types/uppercasetokenfilter.go b/typedapi/types/uppercasetokenfilter.go index c2236bb357..ab319c3583 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // UppercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L341-L343 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L447-L449 type UppercaseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewUppercaseTokenFilter() *UppercaseTokenFilter { return r } -// true - type UppercaseTokenFilterVariant interface { UppercaseTokenFilterCaster() *UppercaseTokenFilter } @@ -95,3 +93,8 @@ type UppercaseTokenFilterVariant interface { func (s *UppercaseTokenFilter) UppercaseTokenFilterCaster() *UppercaseTokenFilter { return s } + +func (s *UppercaseTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/uripartsprocessor.go b/typedapi/types/uripartsprocessor.go index 27d7e2cafb..882f58cd28 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UriPartsProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1598-L1624 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1598-L1624 type UriPartsProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -187,8 +187,6 @@ func NewUriPartsProcessor() *UriPartsProcessor { return r } -// true - type UriPartsProcessorVariant interface { UriPartsProcessorCaster() *UriPartsProcessor } diff --git a/typedapi/types/urldecodeprocessor.go b/typedapi/types/urldecodeprocessor.go index 0e2a07bc57..1d84239bd3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UrlDecodeProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L1580-L1596 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L1580-L1596 type UrlDecodeProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -154,8 +154,6 @@ func NewUrlDecodeProcessor() *UrlDecodeProcessor { return r } -// true - type UrlDecodeProcessorVariant interface { UrlDecodeProcessorCaster() *UrlDecodeProcessor } diff --git a/typedapi/types/usagephase.go b/typedapi/types/usagephase.go index b1b871a570..31ac0d3f23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // UsagePhase type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L154-L157 type UsagePhase struct { Actions []string `json:"actions"` MinAge int64 `json:"min_age"` @@ -72,5 +72,3 @@ func NewUsagePhase() *UsagePhase { return r } - -// false diff --git a/typedapi/types/usagephases.go b/typedapi/types/usagephases.go index c2b963c978..f5c83f0d7d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // UsagePhases type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L159-L165 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L159-L165 type UsagePhases struct { Cold *UsagePhase `json:"cold,omitempty"` Delete *UsagePhase `json:"delete,omitempty"` @@ -37,5 +37,3 @@ func NewUsagePhases() *UsagePhases { return r } - -// false diff --git a/typedapi/types/usagestatsindex.go b/typedapi/types/usagestatsindex.go index 8ed340d336..6b6fc2d97a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // UsageStatsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44 type UsageStatsIndex struct { Shards []UsageStatsShards `json:"shards"` } @@ -33,5 +33,3 @@ func NewUsageStatsIndex() *UsageStatsIndex { return r } - -// false diff --git a/typedapi/types/usagestatsshards.go b/typedapi/types/usagestatsshards.go index 7472a6626f..8ffcd0db48 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UsageStatsShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51 type UsageStatsShards struct { Routing ShardRouting `json:"routing"` Stats IndicesShardsStats `json:"stats"` @@ -92,5 +92,3 @@ func NewUsageStatsShards() *UsageStatsShards { return r } - -// false diff --git a/typedapi/types/user.go b/typedapi/types/user.go index 505d945706..c362c20d3a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // User type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/User.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/User.ts#L23-L31 type User struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` @@ -119,5 +119,3 @@ func NewUser() *User { return r } - -// false diff --git a/typedapi/types/useragentprocessor.go b/typedapi/types/useragentprocessor.go index 52a0c0221f..62890b2da4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // UserAgentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Processors.ts#L515-L546 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Processors.ts#L515-L546 type UserAgentProcessor struct { // Description Description of the processor. // Useful for describing the purpose of the processor or its configuration. @@ -196,8 +196,6 @@ func NewUserAgentProcessor() *UserAgentProcessor { return r } -// true - type UserAgentProcessorVariant interface { UserAgentProcessorCaster() *UserAgentProcessor } diff --git a/typedapi/types/userindicesprivileges.go b/typedapi/types/userindicesprivileges.go index 65cd43a1c3..6eade1f2b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // UserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/Privileges.ts#L292-L314 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -170,5 +170,3 @@ func NewUserIndicesPrivileges() *UserIndicesPrivileges { return r } - -// false diff --git a/typedapi/types/userprofile.go b/typedapi/types/userprofile.go index bec094c75a..c0731f3c23 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UserProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/UserProfile.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/UserProfile.ts#L41-L47 type UserProfile struct { Data map[string]json.RawMessage `json:"data"` Enabled *bool `json:"enabled,omitempty"` @@ -109,5 +109,3 @@ func NewUserProfile() *UserProfile { return r } - -// false diff --git a/typedapi/types/userprofilehitmetadata.go b/typedapi/types/userprofilehitmetadata.go index 694c951442..8d0b26a88e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UserProfileHitMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/UserProfile.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/UserProfile.ts#L27-L30 type UserProfileHitMetadata struct { PrimaryTerm_ int64 `json:"_primary_term"` SeqNo_ int64 `json:"_seq_no"` @@ -83,5 +83,3 @@ func NewUserProfileHitMetadata() *UserProfileHitMetadata { return r } - -// false diff --git a/typedapi/types/userprofileuser.go b/typedapi/types/userprofileuser.go index a522a01b41..efcca28cc9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UserProfileUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/UserProfile.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/UserProfile.ts#L32-L39 type UserProfileUser struct { Email *string `json:"email,omitempty"` FullName *string `json:"full_name,omitempty"` @@ -104,5 +104,3 @@ func NewUserProfileUser() *UserProfileUser { return r } - -// false diff --git a/typedapi/types/userprofilewithmetadata.go b/typedapi/types/userprofilewithmetadata.go index 46bccb14f1..811d230dc2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UserProfileWithMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/_types/UserProfile.ts#L49-L52 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/_types/UserProfile.ts#L49-L52 type UserProfileWithMetadata struct { Data map[string]json.RawMessage `json:"data"` Doc_ UserProfileHitMetadata `json:"_doc"` @@ -131,5 +131,3 @@ func NewUserProfileWithMetadata() *UserProfileWithMetadata { return r } - -// false diff --git a/typedapi/types/userquerycontainer.go b/typedapi/types/userquerycontainer.go index 0c56e4abda..797e1f06c3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // UserQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/query_user/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -221,8 +221,6 @@ func NewUserQueryContainer() *UserQueryContainer { return r } -// true - type UserQueryContainerVariant interface { UserQueryContainerCaster() *UserQueryContainer } diff --git a/typedapi/types/userrealm.go b/typedapi/types/userrealm.go index c4c27197c0..d29a47597d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // UserRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/security/get_token/types.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/security/get_token/types.ts#L50-L53 type UserRealm struct { Name string `json:"name"` Type string `json:"type"` @@ -80,5 +80,3 @@ func NewUserRealm() *UserRealm { return r } - -// false diff --git a/typedapi/types/validation.go b/typedapi/types/validation.go index 9cf4cdace0..0de86a6c0c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -28,7 +28,7 @@ package types // IncludedInValidation // RegexValidation // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/connector/_types/Connector.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 57de87ff1b..0ca0b318bb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ValidationLoss type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/DataframeAnalytics.ts#L571-L576 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/DataframeAnalytics.ts#L571-L576 type ValidationLoss struct { // FoldValues Validation loss values for every added decision tree during the forest // growing procedure. @@ -83,5 +83,3 @@ func NewValidationLoss() *ValidationLoss { return r } - -// false diff --git a/typedapi/types/valuecountaggregate.go b/typedapi/types/valuecountaggregate.go index 4c7fea60e6..8ca2f53c8a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewValueCountAggregate() *ValueCountAggregate { return r } - -// false diff --git a/typedapi/types/valuecountaggregation.go b/typedapi/types/valuecountaggregation.go index 35e08ecf03..041efa6912 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L434-L434 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L434-L434 type ValueCountAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` @@ -96,8 +96,6 @@ func NewValueCountAggregation() *ValueCountAggregation { return r } -// true - type ValueCountAggregationVariant interface { ValueCountAggregationCaster() *ValueCountAggregation } diff --git a/typedapi/types/variablewidthhistogramaggregate.go b/typedapi/types/variablewidthhistogramaggregate.go index 4ccd63f35a..abf21b9a3e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // VariableWidthHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L402-L404 type VariableWidthHistogramAggregate struct { Buckets BucketsVariableWidthHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` @@ -88,5 +88,3 @@ func NewVariableWidthHistogramAggregate() *VariableWidthHistogramAggregate { return r } - -// false diff --git a/typedapi/types/variablewidthhistogramaggregation.go b/typedapi/types/variablewidthhistogramaggregation.go index 210993a115..96879d95d8 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // VariableWidthHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/bucket.ts#L1091-L1115 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/bucket.ts#L1091-L1115 type VariableWidthHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` @@ -133,8 +133,6 @@ func NewVariableWidthHistogramAggregation() *VariableWidthHistogramAggregation { return r } -// true - type VariableWidthHistogramAggregationVariant interface { VariableWidthHistogramAggregationCaster() *VariableWidthHistogramAggregation } diff --git a/typedapi/types/variablewidthhistogrambucket.go b/typedapi/types/variablewidthhistogrambucket.go index 9e76d9372b..3e6fff029c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // VariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L406-L413 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/Aggregate.ts#L406-L413 type VariableWidthHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` @@ -720,5 +720,3 @@ func NewVariableWidthHistogramBucket() *VariableWidthHistogramBucket { return r } - -// false diff --git a/typedapi/types/vector.go b/typedapi/types/vector.go index 6972392c80..7604d9e684 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Vector type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L460-L464 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L460-L464 type Vector struct { Available bool `json:"available"` DenseVectorDimsAvgCount int `json:"dense_vector_dims_avg_count"` @@ -142,5 +142,3 @@ func NewVector() *Vector { return r } - -// false diff --git a/typedapi/types/verifyindex.go b/typedapi/types/verifyindex.go index 692662919f..63456efe46 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // VerifyIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/indices/recovery/types.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -84,5 +84,3 @@ func NewVerifyIndex() *VerifyIndex { return r } - -// false diff --git a/typedapi/types/versionproperty.go b/typedapi/types/versionproperty.go index 1c77aeb360..b26e4d7d7c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // VersionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L314-L316 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L324-L326 type VersionProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -241,6 +241,12 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -596,6 +602,12 @@ func (s *VersionProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -846,8 +858,6 @@ func NewVersionProperty() *VersionProperty { return r } -// true - type VersionPropertyVariant interface { VersionPropertyCaster() *VersionProperty } @@ -855,3 +865,8 @@ type VersionPropertyVariant interface { func (s *VersionProperty) VersionPropertyCaster() *VersionProperty { return s } + +func (s *VersionProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/vertex.go b/typedapi/types/vertex.go index 22fd8d3bcb..2f086277ca 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Vertex type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/Vertex.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/graph/_types/Vertex.ts#L23-L28 type Vertex struct { Depth int64 `json:"depth"` Field string `json:"field"` @@ -113,5 +113,3 @@ func NewVertex() *Vertex { return r } - -// false diff --git a/typedapi/types/vertexdefinition.go b/typedapi/types/vertexdefinition.go index 827ff0508d..e3cf5cc78b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // VertexDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/Vertex.ts#L30-L59 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -139,8 +139,6 @@ func NewVertexDefinition() *VertexDefinition { return r } -// true - type VertexDefinitionVariant interface { VertexDefinitionCaster() *VertexDefinition } diff --git a/typedapi/types/vertexinclude.go b/typedapi/types/vertexinclude.go index 5fa2e417af..7683bab3e7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // VertexInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/graph/_types/Vertex.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/graph/_types/Vertex.ts#L61-L65 type VertexInclude struct { Boost *Float64 `json:"boost,omitempty"` Term string `json:"term"` @@ -104,8 +104,6 @@ func NewVertexInclude() *VertexInclude { return r } -// true - type VertexIncludeVariant interface { VertexIncludeCaster() *VertexInclude } diff --git a/typedapi/types/vocabulary.go b/typedapi/types/vocabulary.go index 99c7e107ae..6672413f20 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Vocabulary type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L248-L250 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L248-L250 type Vocabulary struct { Index string `json:"index"` } @@ -67,8 +67,6 @@ func NewVocabulary() *Vocabulary { return r } -// true - type VocabularyVariant interface { VocabularyCaster() *Vocabulary } diff --git a/typedapi/types/voyageaiservicesettings.go b/typedapi/types/voyageaiservicesettings.go index 5ce834b336..ed3218523c 100644 --- a/typedapi/types/voyageaiservicesettings.go +++ b/typedapi/types/voyageaiservicesettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // VoyageAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1075-L1106 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1148-L1179 type VoyageAIServiceSettings struct { // Dimensions The number of dimensions for resulting output embeddings. // This setting maps to `output_dimension` in the VoyageAI documentation. @@ -132,8 +132,6 @@ func NewVoyageAIServiceSettings() *VoyageAIServiceSettings { return r } -// true - type VoyageAIServiceSettingsVariant interface { VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings } diff --git a/typedapi/types/voyageaitasksettings.go b/typedapi/types/voyageaitasksettings.go index 0183bf11b9..bf8ecc46c1 100644 --- a/typedapi/types/voyageaitasksettings.go +++ b/typedapi/types/voyageaitasksettings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // VoyageAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1108-L1132 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1181-L1205 type VoyageAITaskSettings struct { // InputType Type of the input text. // Permitted values: `ingest` (maps to `document` in the VoyageAI @@ -132,8 +132,6 @@ func NewVoyageAITaskSettings() *VoyageAITaskSettings { return r } -// true - type VoyageAITaskSettingsVariant interface { VoyageAITaskSettingsCaster() *VoyageAITaskSettings } diff --git a/typedapi/types/waitforactiveshards.go b/typedapi/types/waitforactiveshards.go index beb8e4fc31..1b5cd391fe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // int // waitforactiveshardoptions.WaitForActiveShardOptions // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/common.ts#L139-L140 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/common.ts#L139-L140 type WaitForActiveShards any diff --git a/typedapi/types/waitfornodes.go b/typedapi/types/waitfornodes.go index 1425a94c08..222aa5392d 100644 --- a/typedapi/types/waitfornodes.go +++ b/typedapi/types/waitfornodes.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/cluster/health/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/cluster/health/types.ts#L47-L47 type WaitForNodes any diff --git a/typedapi/types/waitforsnapshotaction.go b/typedapi/types/waitforsnapshotaction.go index 7b1998923a..5e7507fcc6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WaitForSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ilm/_types/Phase.ts#L145-L147 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ilm/_types/Phase.ts#L145-L147 type WaitForSnapshotAction struct { Policy string `json:"policy"` } @@ -75,8 +75,6 @@ func NewWaitForSnapshotAction() *WaitForSnapshotAction { return r } -// true - type WaitForSnapshotActionVariant interface { WaitForSnapshotActionCaster() *WaitForSnapshotAction } diff --git a/typedapi/types/warmerstats.go b/typedapi/types/warmerstats.go index 558473c478..cc812f2fbe 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WarmerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Stats.ts#L410-L415 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Stats.ts#L434-L439 type WarmerStats struct { Current int64 `json:"current"` Total int64 `json:"total"` @@ -105,5 +105,3 @@ func NewWarmerStats() *WarmerStats { return r } - -// false diff --git a/typedapi/types/watch.go b/typedapi/types/watch.go index 70260b106d..4de0b18bf1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // Watch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Watch.ts#L37-L47 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Watch.ts#L37-L47 type Watch struct { Actions map[string]WatcherAction `json:"actions"` Condition WatcherCondition `json:"condition"` @@ -120,8 +120,6 @@ func NewWatch() *Watch { return r } -// true - type WatchVariant interface { WatchCaster() *Watch } diff --git a/typedapi/types/watcher.go b/typedapi/types/watcher.go index 58d6858523..849f494d9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Watcher type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L466-L470 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L466-L470 type Watcher struct { Available bool `json:"available"` Count Counter `json:"count"` @@ -109,5 +109,3 @@ func NewWatcher() *Watcher { return r } - -// false diff --git a/typedapi/types/watcheraction.go b/typedapi/types/watcheraction.go index 6cff308729..9eea150c8c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // WatcherAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L35-L54 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Action.ts#L35-L54 type WatcherAction struct { ActionType *actiontype.ActionType `json:"action_type,omitempty"` Condition *WatcherCondition `json:"condition,omitempty"` @@ -166,8 +166,6 @@ func NewWatcherAction() *WatcherAction { return r } -// true - type WatcherActionVariant interface { WatcherActionCaster() *WatcherAction } diff --git a/typedapi/types/watcheractions.go b/typedapi/types/watcheractions.go index 1c4b8e59b0..3640898fab 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // WatcherActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L402-L404 type WatcherActions struct { Actions map[string]WatcherActionTotals `json:"actions"` } @@ -35,5 +35,3 @@ func NewWatcherActions() *WatcherActions { return r } - -// false diff --git a/typedapi/types/watcheractiontotals.go b/typedapi/types/watcheractiontotals.go index 2a06dca539..ec8b4a7242 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // WatcherActionTotals type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L418-L421 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L418-L421 type WatcherActionTotals struct { Total Duration `json:"total"` TotalTimeInMs int64 `json:"total_time_in_ms"` @@ -72,5 +72,3 @@ func NewWatcherActionTotals() *WatcherActionTotals { return r } - -// false diff --git a/typedapi/types/watchercondition.go b/typedapi/types/watchercondition.go index 1e81a18dc3..c33b6810bd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -29,7 +29,7 @@ import ( // WatcherCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Conditions.ts#L51-L63 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Conditions.ts#L51-L63 type WatcherCondition struct { AdditionalWatcherConditionProperty map[string]json.RawMessage `json:"-"` Always *AlwaysCondition `json:"always,omitempty"` @@ -79,8 +79,6 @@ func NewWatcherCondition() *WatcherCondition { return r } -// true - type WatcherConditionVariant interface { WatcherConditionCaster() *WatcherCondition } diff --git a/typedapi/types/watcherinput.go b/typedapi/types/watcherinput.go index cfc3ce637d..6ed9deb0d1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -27,7 +27,7 @@ import ( // WatcherInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Input.ts#L90-L98 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Input.ts#L87-L95 type WatcherInput struct { AdditionalWatcherInputProperty map[string]json.RawMessage `json:"-"` Chain *ChainInput `json:"chain,omitempty"` @@ -75,8 +75,6 @@ func NewWatcherInput() *WatcherInput { return r } -// true - type WatcherInputVariant interface { WatcherInputCaster() *WatcherInput } diff --git a/typedapi/types/watchernodestats.go b/typedapi/types/watchernodestats.go index e18f2dc470..9355f5c1b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // WatcherNodeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -130,5 +130,3 @@ func NewWatcherNodeStats() *WatcherNodeStats { return r } - -// false diff --git a/typedapi/types/watcherstatusactions.go b/typedapi/types/watcherstatusactions.go index ad8df244f0..dfc7e212d0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // WatcherStatusActions type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Action.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 26e0a84b86..42b936e55c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // WatcherWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L406-L411 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L406-L411 type WatcherWatch struct { Action map[string]Counter `json:"action,omitempty"` Condition map[string]Counter `json:"condition,omitempty"` @@ -40,5 +40,3 @@ func NewWatcherWatch() *WatcherWatch { return r } - -// false diff --git a/typedapi/types/watcherwatchtrigger.go b/typedapi/types/watcherwatchtrigger.go index 734aa7d042..03d3591db1 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // WatcherWatchTrigger type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L413-L416 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L413-L416 type WatcherWatchTrigger struct { All_ Counter `json:"_all"` Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"` @@ -34,5 +34,3 @@ func NewWatcherWatchTrigger() *WatcherWatchTrigger { return r } - -// false diff --git a/typedapi/types/watcherwatchtriggerschedule.go b/typedapi/types/watcherwatchtriggerschedule.go index 0e42565f01..9cad1c14cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WatcherWatchTriggerSchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L472-L475 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L472-L475 type WatcherWatchTriggerSchedule struct { Active int64 `json:"active"` All_ Counter `json:"_all"` @@ -105,5 +105,3 @@ func NewWatcherWatchTriggerSchedule() *WatcherWatchTriggerSchedule { return r } - -// false diff --git a/typedapi/types/watchrecord.go b/typedapi/types/watchrecord.go index 40ac2360fe..ada73ddd66 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // WatchRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/execute_watch/types.ts#L27-L39 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/execute_watch/types.ts#L27-L39 type WatchRecord struct { Condition WatcherCondition `json:"condition"` Input WatcherInput `json:"input"` @@ -136,5 +136,3 @@ func NewWatchRecord() *WatchRecord { return r } - -// false diff --git a/typedapi/types/watchrecordqueuedstats.go b/typedapi/types/watchrecordqueuedstats.go index faf5a91df0..8148452c9f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // WatchRecordQueuedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/types.ts#L71-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -68,5 +68,3 @@ func NewWatchRecordQueuedStats() *WatchRecordQueuedStats { return r } - -// false diff --git a/typedapi/types/watchrecordstats.go b/typedapi/types/watchrecordstats.go index e7f8c619dc..20b15e688b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -32,7 +32,7 @@ import ( // WatchRecordStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/types.ts#L79-L94 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/stats/types.ts#L79-L94 type WatchRecordStats struct { ExecutedActions []string `json:"executed_actions,omitempty"` // ExecutionPhase The current watch execution phase. @@ -103,5 +103,3 @@ func NewWatchRecordStats() *WatchRecordStats { return r } - -// false diff --git a/typedapi/types/watchstatus.go b/typedapi/types/watchstatus.go index f43d9afb9f..46ef0123e2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WatchStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Watch.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Watch.ts#L49-L56 type WatchStatus struct { Actions WatcherStatusActions `json:"actions"` ExecutionState *string `json:"execution_state,omitempty"` @@ -105,8 +105,6 @@ func NewWatchStatus() *WatchStatus { return r } -// true - type WatchStatusVariant interface { WatchStatusCaster() *WatchStatus } diff --git a/typedapi/types/watsonxservicesettings.go b/typedapi/types/watsonxservicesettings.go index 9be0ce5808..9b47c73dda 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WatsonxServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/inference/_types/CommonTypes.ts#L1143-L1180 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/inference/_types/CommonTypes.ts#L1216-L1253 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 @@ -154,8 +154,6 @@ func NewWatsonxServiceSettings() *WatsonxServiceSettings { return r } -// true - type WatsonxServiceSettingsVariant interface { WatsonxServiceSettingsCaster() *WatsonxServiceSettings } diff --git a/typedapi/types/web.go b/typedapi/types/web.go index d89cc8f831..64060d89e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // Web type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ingest/_types/Database.ts#L61-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ingest/_types/Database.ts#L61-L61 type Web struct { } @@ -32,5 +32,3 @@ func NewWeb() *Web { return r } - -// false diff --git a/typedapi/types/webhookaction.go b/typedapi/types/webhookaction.go index 6249afaddb..9aeba2c8a3 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // WebhookAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L293-L293 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L293-L293 type WebhookAction struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` @@ -173,8 +173,6 @@ func NewWebhookAction() *WebhookAction { return r } -// true - type WebhookActionVariant interface { WebhookActionCaster() *WebhookAction } diff --git a/typedapi/types/webhookresult.go b/typedapi/types/webhookresult.go index 546782a807..bf8240c35a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // WebhookResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/_types/Actions.ts#L295-L298 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/_types/Actions.ts#L295-L298 type WebhookResult struct { Request HttpInputRequestResult `json:"request"` Response *HttpInputResponseResult `json:"response,omitempty"` @@ -34,5 +34,3 @@ func NewWebhookResult() *WebhookResult { return r } - -// false diff --git a/typedapi/types/weightedaverageaggregation.go b/typedapi/types/weightedaverageaggregation.go index 1e33895490..0838830289 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // WeightedAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L449-L463 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/aggregations/metric.ts#L449-L463 type WeightedAverageAggregation struct { // Format A numeric response formatter. Format *string `json:"format,omitempty"` @@ -98,8 +98,6 @@ func NewWeightedAverageAggregation() *WeightedAverageAggregation { return r } -// true - type WeightedAverageAggregationVariant interface { WeightedAverageAggregationCaster() *WeightedAverageAggregation } diff --git a/typedapi/types/weightedaveragevalue.go b/typedapi/types/weightedaveragevalue.go index 0d45ea4efd..7924788eed 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WeightedAverageValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/metric.ts#L465-L475 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -93,8 +93,6 @@ func NewWeightedAverageValue() *WeightedAverageValue { return r } -// true - type WeightedAverageValueVariant interface { WeightedAverageValueCaster() *WeightedAverageValue } diff --git a/typedapi/types/weightedavgaggregate.go b/typedapi/types/weightedavgaggregate.go index 528a5f7769..a20c85fd90 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WeightedAvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/aggregations/Aggregate.ts#L224-L229 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 @@ -89,5 +89,3 @@ func NewWeightedAvgAggregate() *WeightedAvgAggregate { return r } - -// false diff --git a/typedapi/types/weightedtokensquery.go b/typedapi/types/weightedtokensquery.go index 14dbf2b64b..33ba5e71b4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WeightedTokensQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -116,8 +116,6 @@ func NewWeightedTokensQuery() *WeightedTokensQuery { return r } -// true - type WeightedTokensQueryVariant interface { WeightedTokensQueryCaster() *WeightedTokensQuery } diff --git a/typedapi/types/weights.go b/typedapi/types/weights.go index 307435510e..dac8c69c72 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // Weights type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/put_trained_model/types.ts#L108-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/put_trained_model/types.ts#L108-L110 type Weights struct { Weights Float64 `json:"weights"` } @@ -79,8 +79,6 @@ func NewWeights() *Weights { return r } -// true - type WeightsVariant interface { WeightsCaster() *Weights } diff --git a/typedapi/types/whitespaceanalyzer.go b/typedapi/types/whitespaceanalyzer.go index 6f345bf8e9..878c297503 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -30,7 +30,7 @@ import ( // WhitespaceAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/analyzers.ts#L421-L425 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/analyzers.ts#L421-L425 type WhitespaceAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` @@ -86,8 +86,6 @@ func NewWhitespaceAnalyzer() *WhitespaceAnalyzer { return r } -// true - type WhitespaceAnalyzerVariant interface { WhitespaceAnalyzerCaster() *WhitespaceAnalyzer } @@ -95,3 +93,8 @@ type WhitespaceAnalyzerVariant interface { func (s *WhitespaceAnalyzer) WhitespaceAnalyzerCaster() *WhitespaceAnalyzer { return s } + +func (s *WhitespaceAnalyzer) AnalyzerCaster() *Analyzer { + o := Analyzer(s) + return &o +} diff --git a/typedapi/types/whitespacetokenizer.go b/typedapi/types/whitespacetokenizer.go index c5295ba5bd..5d24aa238f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WhitespaceTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/tokenizers.ts#L135-L138 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/tokenizers.ts#L137-L140 type WhitespaceTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` @@ -105,8 +105,6 @@ func NewWhitespaceTokenizer() *WhitespaceTokenizer { return r } -// true - type WhitespaceTokenizerVariant interface { WhitespaceTokenizerCaster() *WhitespaceTokenizer } @@ -114,3 +112,8 @@ type WhitespaceTokenizerVariant interface { func (s *WhitespaceTokenizer) WhitespaceTokenizerCaster() *WhitespaceTokenizer { return s } + +func (s *WhitespaceTokenizer) TokenizerDefinitionCaster() *TokenizerDefinition { + o := TokenizerDefinition(s) + return &o +} diff --git a/typedapi/types/wildcardproperty.go b/typedapi/types/wildcardproperty.go index 8b966dcc4d..6d3eda3ee2 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -34,7 +34,7 @@ import ( // WildcardProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/mapping/core.ts#L318-L325 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/mapping/core.ts#L328-L335 type WildcardProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` @@ -242,6 +242,12 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Fields | %w", err) } s.Fields[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Fields | %w", err) + } + s.Fields[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -609,6 +615,12 @@ func (s *WildcardProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("Properties | %w", err) } s.Properties[key] = oo + case "rank_vectors": + oo := NewRankVectorProperty() + if err := localDec.Decode(&oo); err != nil { + return fmt.Errorf("Properties | %w", err) + } + s.Properties[key] = oo case "semantic_text": oo := NewSemanticTextProperty() if err := localDec.Decode(&oo); err != nil { @@ -860,8 +872,6 @@ func NewWildcardProperty() *WildcardProperty { return r } -// true - type WildcardPropertyVariant interface { WildcardPropertyCaster() *WildcardProperty } @@ -869,3 +879,8 @@ type WildcardPropertyVariant interface { func (s *WildcardProperty) WildcardPropertyCaster() *WildcardProperty { return s } + +func (s *WildcardProperty) PropertyCaster() *Property { + o := Property(s) + return &o +} diff --git a/typedapi/types/wildcardquery.go b/typedapi/types/wildcardquery.go index 3ae1bc5f53..27df966470 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WildcardQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/term.ts#L305-L325 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/query_dsl/term.ts#L301-L321 type WildcardQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -164,8 +164,6 @@ func NewWildcardQuery() *WildcardQuery { return r } -// true - type WildcardQueryVariant interface { WildcardQueryCaster() *WildcardQuery } diff --git a/typedapi/types/wktgeobounds.go b/typedapi/types/wktgeobounds.go index 07230bfd07..ed944b4ee0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WktGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/Geo.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Geo.ts#L150-L152 type WktGeoBounds struct { Wkt string `json:"wkt"` } @@ -75,8 +75,6 @@ func NewWktGeoBounds() *WktGeoBounds { return r } -// true - type WktGeoBoundsVariant interface { WktGeoBoundsCaster() *WktGeoBounds } @@ -84,3 +82,8 @@ type WktGeoBoundsVariant interface { func (s *WktGeoBounds) WktGeoBoundsCaster() *WktGeoBounds { return s } + +func (s *WktGeoBounds) GeoBoundsCaster() *GeoBounds { + o := GeoBounds(s) + return &o +} diff --git a/typedapi/types/worddelimitergraphtokenfilter.go b/typedapi/types/worddelimitergraphtokenfilter.go index e7ce38c657..69c3592412 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,25 +31,61 @@ import ( // WordDelimiterGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L150-L167 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L205-L211 type WordDelimiterGraphTokenFilter struct { - AdjustOffsets *bool `json:"adjust_offsets,omitempty"` - CatenateAll *bool `json:"catenate_all,omitempty"` - CatenateNumbers *bool `json:"catenate_numbers,omitempty"` - CatenateWords *bool `json:"catenate_words,omitempty"` - GenerateNumberParts *bool `json:"generate_number_parts,omitempty"` - GenerateWordParts *bool `json:"generate_word_parts,omitempty"` - IgnoreKeywords *bool `json:"ignore_keywords,omitempty"` - PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` - ProtectedWords []string `json:"protected_words,omitempty"` - ProtectedWordsPath *string `json:"protected_words_path,omitempty"` - SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"` - SplitOnNumerics *bool `json:"split_on_numerics,omitempty"` - StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"` - Type string `json:"type,omitempty"` - TypeTable []string `json:"type_table,omitempty"` - TypeTablePath *string `json:"type_table_path,omitempty"` - Version *string `json:"version,omitempty"` + // AdjustOffsets If `true`, the filter adjusts the offsets of split or catenated tokens to + // better reflect their actual position in the token stream. Defaults to `true`. + AdjustOffsets *bool `json:"adjust_offsets,omitempty"` + // CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateAll *bool `json:"catenate_all,omitempty"` + // CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateNumbers *bool `json:"catenate_numbers,omitempty"` + // CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateWords *bool `json:"catenate_words,omitempty"` + // GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters + // in the output. If `false`, the filter excludes these tokens from the output. + // Defaults to `true`. + GenerateNumberParts *bool `json:"generate_number_parts,omitempty"` + // GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical + // characters in the output. If `false`, the filter excludes these tokens from + // the output. Defaults to `true`. + GenerateWordParts *bool `json:"generate_word_parts,omitempty"` + // IgnoreKeywords If `true`, the filter skips tokens with a keyword attribute of true. Defaults + // to `false`. + IgnoreKeywords *bool `json:"ignore_keywords,omitempty"` + // PreserveOriginal If `true`, the filter includes the original version of any split tokens in + // the output. This original version includes non-alphanumeric delimiters. + // Defaults to `false`. + PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` + // ProtectedWords Array of tokens the filter won’t split. + ProtectedWords []string `json:"protected_words,omitempty"` + // ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each token in the file must be separated by a line + // break. + ProtectedWordsPath *string `json:"protected_words_path,omitempty"` + // SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example: + // camelCase -> [ camel, Case ]. Defaults to `true`. + SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"` + // SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For + // example: j2se -> [ j, 2, se ]. Defaults to `true`. + SplitOnNumerics *bool `json:"split_on_numerics,omitempty"` + // StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of + // each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`. + StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"` + Type string `json:"type,omitempty"` + // TypeTable Array of custom type mappings for characters. This allows you to map + // non-alphanumeric characters as numeric or alphanumeric to avoid splitting on + // those characters. + TypeTable []string `json:"type_table,omitempty"` + // TypeTablePath Path to a file that contains custom type mappings for characters. This allows + // you to map non-alphanumeric characters as numeric or alphanumeric to avoid + // splitting on those characters. + TypeTablePath *string `json:"type_table_path,omitempty"` + Version *string `json:"version,omitempty"` } func (s *WordDelimiterGraphTokenFilter) UnmarshalJSON(data []byte) error { @@ -296,8 +332,6 @@ func NewWordDelimiterGraphTokenFilter() *WordDelimiterGraphTokenFilter { return r } -// true - type WordDelimiterGraphTokenFilterVariant interface { WordDelimiterGraphTokenFilterCaster() *WordDelimiterGraphTokenFilter } @@ -305,3 +339,8 @@ type WordDelimiterGraphTokenFilterVariant interface { func (s *WordDelimiterGraphTokenFilter) WordDelimiterGraphTokenFilterCaster() *WordDelimiterGraphTokenFilter { return s } + +func (s *WordDelimiterGraphTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/worddelimitertokenfilter.go b/typedapi/types/worddelimitertokenfilter.go index a9b9abe7c1..715dd2811f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,23 +31,55 @@ import ( // WordDelimiterTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/analysis/token_filters.ts#L133-L148 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/analysis/token_filters.ts#L201-L203 type WordDelimiterTokenFilter struct { - CatenateAll *bool `json:"catenate_all,omitempty"` - CatenateNumbers *bool `json:"catenate_numbers,omitempty"` - CatenateWords *bool `json:"catenate_words,omitempty"` - GenerateNumberParts *bool `json:"generate_number_parts,omitempty"` - GenerateWordParts *bool `json:"generate_word_parts,omitempty"` - PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` - ProtectedWords []string `json:"protected_words,omitempty"` - ProtectedWordsPath *string `json:"protected_words_path,omitempty"` - SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"` - SplitOnNumerics *bool `json:"split_on_numerics,omitempty"` - StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"` - Type string `json:"type,omitempty"` - TypeTable []string `json:"type_table,omitempty"` - TypeTablePath *string `json:"type_table_path,omitempty"` - Version *string `json:"version,omitempty"` + // CatenateAll If `true`, the filter produces catenated tokens for chains of alphanumeric + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateAll *bool `json:"catenate_all,omitempty"` + // CatenateNumbers If `true`, the filter produces catenated tokens for chains of numeric + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateNumbers *bool `json:"catenate_numbers,omitempty"` + // CatenateWords If `true`, the filter produces catenated tokens for chains of alphabetical + // characters separated by non-alphabetic delimiters. Defaults to `false`. + CatenateWords *bool `json:"catenate_words,omitempty"` + // GenerateNumberParts If `true`, the filter includes tokens consisting of only numeric characters + // in the output. If `false`, the filter excludes these tokens from the output. + // Defaults to `true`. + GenerateNumberParts *bool `json:"generate_number_parts,omitempty"` + // GenerateWordParts If `true`, the filter includes tokens consisting of only alphabetical + // characters in the output. If `false`, the filter excludes these tokens from + // the output. Defaults to `true`. + GenerateWordParts *bool `json:"generate_word_parts,omitempty"` + // PreserveOriginal If `true`, the filter includes the original version of any split tokens in + // the output. This original version includes non-alphanumeric delimiters. + // Defaults to `false`. + PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` + // ProtectedWords Array of tokens the filter won’t split. + ProtectedWords []string `json:"protected_words,omitempty"` + // ProtectedWordsPath Path to a file that contains a list of tokens the filter won’t split. + // This path must be absolute or relative to the `config` location, and the file + // must be UTF-8 encoded. Each token in the file must be separated by a line + // break. + ProtectedWordsPath *string `json:"protected_words_path,omitempty"` + // SplitOnCaseChange If `true`, the filter splits tokens at letter case transitions. For example: + // camelCase -> [ camel, Case ]. Defaults to `true`. + SplitOnCaseChange *bool `json:"split_on_case_change,omitempty"` + // SplitOnNumerics If `true`, the filter splits tokens at letter-number transitions. For + // example: j2se -> [ j, 2, se ]. Defaults to `true`. + SplitOnNumerics *bool `json:"split_on_numerics,omitempty"` + // StemEnglishPossessive If `true`, the filter removes the English possessive (`'s`) from the end of + // each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`. + StemEnglishPossessive *bool `json:"stem_english_possessive,omitempty"` + Type string `json:"type,omitempty"` + // TypeTable Array of custom type mappings for characters. This allows you to map + // non-alphanumeric characters as numeric or alphanumeric to avoid splitting on + // those characters. + TypeTable []string `json:"type_table,omitempty"` + // TypeTablePath Path to a file that contains custom type mappings for characters. This allows + // you to map non-alphanumeric characters as numeric or alphanumeric to avoid + // splitting on those characters. + TypeTablePath *string `json:"type_table_path,omitempty"` + Version *string `json:"version,omitempty"` } func (s *WordDelimiterTokenFilter) UnmarshalJSON(data []byte) error { @@ -264,8 +296,6 @@ func NewWordDelimiterTokenFilter() *WordDelimiterTokenFilter { return r } -// true - type WordDelimiterTokenFilterVariant interface { WordDelimiterTokenFilterCaster() *WordDelimiterTokenFilter } @@ -273,3 +303,8 @@ type WordDelimiterTokenFilterVariant interface { func (s *WordDelimiterTokenFilter) WordDelimiterTokenFilterCaster() *WordDelimiterTokenFilter { return s } + +func (s *WordDelimiterTokenFilter) TokenFilterDefinitionCaster() *TokenFilterDefinition { + o := TokenFilterDefinition(s) + return &o +} diff --git a/typedapi/types/wrapperquery.go b/typedapi/types/wrapperquery.go index fb6430ea56..0a5303ef82 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WrapperQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/_types/query_dsl/abstractions.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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. @@ -112,8 +112,6 @@ func NewWrapperQuery() *WrapperQuery { return r } -// true - type WrapperQueryVariant interface { WrapperQueryCaster() *WrapperQuery } diff --git a/typedapi/types/writeresponsebase.go b/typedapi/types/writeresponsebase.go new file mode 100644 index 0000000000..264d244623 --- /dev/null +++ b/typedapi/types/writeresponsebase.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/86f41834c7bb975159a38a73be8a9d930010d673 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" +) + +// WriteResponseBase type. +// +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/_types/Base.ts#L36-L67 +type WriteResponseBase struct { + ForcedRefresh *bool `json:"forced_refresh,omitempty"` + // Id_ The unique identifier for the added document. + Id_ string `json:"_id"` + // Index_ The name of the index the document was added to. + Index_ string `json:"_index"` + // PrimaryTerm_ The primary term assigned to the document for the indexing operation. + PrimaryTerm_ *int64 `json:"_primary_term,omitempty"` + // Result The result of the indexing operation: `created` or `updated`. + Result result.Result `json:"result"` + // SeqNo_ The sequence number assigned to the document for the indexing operation. + // Sequence numbers are used to ensure an older version of a document doesn't + // overwrite a newer version. + SeqNo_ *int64 `json:"_seq_no,omitempty"` + // Shards_ Information about the replication process of the operation. + Shards_ ShardStatistics `json:"_shards"` + // Version_ The document version, which is incremented each time the document is updated. + Version_ int64 `json:"_version"` +} + +func (s *WriteResponseBase) 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 "forced_refresh": + 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", "ForcedRefresh", err) + } + s.ForcedRefresh = &value + case bool: + s.ForcedRefresh = &v + } + + case "_id": + if err := dec.Decode(&s.Id_); err != nil { + return fmt.Errorf("%s | %w", "Id_", err) + } + + case "_index": + if err := dec.Decode(&s.Index_); err != nil { + return fmt.Errorf("%s | %w", "Index_", err) + } + + case "_primary_term": + 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", "PrimaryTerm_", err) + } + s.PrimaryTerm_ = &value + case float64: + f := int64(v) + s.PrimaryTerm_ = &f + } + + case "result": + if err := dec.Decode(&s.Result); err != nil { + return fmt.Errorf("%s | %w", "Result", err) + } + + case "_seq_no": + if err := dec.Decode(&s.SeqNo_); err != nil { + return fmt.Errorf("%s | %w", "SeqNo_", err) + } + + case "_shards": + if err := dec.Decode(&s.Shards_); err != nil { + return fmt.Errorf("%s | %w", "Shards_", err) + } + + case "_version": + if err := dec.Decode(&s.Version_); err != nil { + return fmt.Errorf("%s | %w", "Version_", err) + } + + } + } + return nil +} + +// NewWriteResponseBase returns a WriteResponseBase. +func NewWriteResponseBase() *WriteResponseBase { + r := &WriteResponseBase{} + + return r +} diff --git a/typedapi/types/writesummaryinfo.go b/typedapi/types/writesummaryinfo.go index 220638c534..cd91291476 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // WriteSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -143,5 +143,3 @@ func NewWriteSummaryInfo() *WriteSummaryInfo { return r } - -// false diff --git a/typedapi/types/xlmrobertatokenizationconfig.go b/typedapi/types/xlmrobertatokenizationconfig.go index 5e6d0fcd47..a93d205b2b 100644 --- a/typedapi/types/xlmrobertatokenizationconfig.go +++ b/typedapi/types/xlmrobertatokenizationconfig.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -33,7 +33,7 @@ import ( // XlmRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L200-L200 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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"` @@ -141,8 +141,6 @@ func NewXlmRobertaTokenizationConfig() *XlmRobertaTokenizationConfig { return r } -// true - type XlmRobertaTokenizationConfigVariant interface { XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig } diff --git a/typedapi/types/xpackdatafeed.go b/typedapi/types/xpackdatafeed.go index 6103c5b864..36f5f4306c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L74-L76 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L74-L76 type XpackDatafeed struct { Count int64 `json:"count"` } @@ -77,5 +77,3 @@ func NewXpackDatafeed() *XpackDatafeed { return r } - -// false diff --git a/typedapi/types/xpackfeature.go b/typedapi/types/xpackfeature.go index 7a10fc1009..cb1e29471a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/types.ts#L84-L89 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/info/types.ts#L84-L89 type XpackFeature struct { Available bool `json:"available"` Description *string `json:"description,omitempty"` @@ -110,5 +110,3 @@ func NewXpackFeature() *XpackFeature { return r } - -// false diff --git a/typedapi/types/xpackfeatures.go b/typedapi/types/xpackfeatures.go index 6bfd3a0c0d..b0bb2980f4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types // XpackFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/types.ts#L42-L82 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/info/types.ts#L42-L82 type XpackFeatures struct { AggregateMetric XpackFeature `json:"aggregate_metric"` Analytics XpackFeature `json:"analytics"` @@ -59,5 +59,3 @@ func NewXpackFeatures() *XpackFeatures { return r } - -// false diff --git a/typedapi/types/xpackquery.go b/typedapi/types/xpackquery.go index fdb06509b9..34f10c7a5f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L269-L274 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L269-L274 type XpackQuery struct { Count *int `json:"count,omitempty"` Failed *int `json:"failed,omitempty"` @@ -129,5 +129,3 @@ func NewXpackQuery() *XpackQuery { return r } - -// false diff --git a/typedapi/types/xpackrealm.go b/typedapi/types/xpackrealm.go index fcb7c0a266..e1612f648c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L423-L432 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L423-L432 type XpackRealm struct { Available bool `json:"available"` Cache []RealmCache `json:"cache,omitempty"` @@ -139,5 +139,3 @@ func NewXpackRealm() *XpackRealm { return r } - -// false diff --git a/typedapi/types/xpackrolemapping.go b/typedapi/types/xpackrolemapping.go index b431f3f9d6..6b5d2a1f78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L280-L283 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L280-L283 type XpackRoleMapping struct { Enabled int `json:"enabled"` Size int `json:"size"` @@ -95,5 +95,3 @@ func NewXpackRoleMapping() *XpackRoleMapping { return r } - -// false diff --git a/typedapi/types/xpackruntimefieldtypes.go b/typedapi/types/xpackruntimefieldtypes.go index 7d1de08507..46fc8e783b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // XpackRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/types.ts#L285-L287 type XpackRuntimeFieldTypes struct { Available bool `json:"available"` Enabled bool `json:"enabled"` @@ -97,5 +97,3 @@ func NewXpackRuntimeFieldTypes() *XpackRuntimeFieldTypes { return r } - -// false diff --git a/typedapi/types/zeroshotclassificationinferenceoptions.go b/typedapi/types/zeroshotclassificationinferenceoptions.go index c35149a609..a374662db6 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L216-L237 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L216-L237 type ZeroShotClassificationInferenceOptions struct { // ClassificationLabels The zero shot classification labels indicating entailment, neutral, and // contradiction @@ -130,8 +130,6 @@ func NewZeroShotClassificationInferenceOptions() *ZeroShotClassificationInferenc return r } -// true - type ZeroShotClassificationInferenceOptionsVariant interface { ZeroShotClassificationInferenceOptionsCaster() *ZeroShotClassificationInferenceOptions } diff --git a/typedapi/types/zeroshotclassificationinferenceupdateoptions.go b/typedapi/types/zeroshotclassificationinferenceupdateoptions.go index 4c30366aab..509330a6e9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/ml/_types/inference.ts#L393-L402 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/ml/_types/inference.ts#L393-L402 type ZeroShotClassificationInferenceUpdateOptions struct { // Labels The labels to predict. Labels []string `json:"labels"` @@ -108,8 +108,6 @@ func NewZeroShotClassificationInferenceUpdateOptions() *ZeroShotClassificationIn return r } -// true - type ZeroShotClassificationInferenceUpdateOptionsVariant interface { ZeroShotClassificationInferenceUpdateOptionsCaster() *ZeroShotClassificationInferenceUpdateOptions } diff --git a/typedapi/watcher/ackwatch/ack_watch.go b/typedapi/watcher/ackwatch/ack_watch.go index 0745b9ce75..c5b49a0bb9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Acknowledge a watch. // Acknowledging a watch enables you to manually throttle the execution of the @@ -34,6 +34,8 @@ // `ack.state` is reset to `awaits_successful_execution`. // This happens when the condition of the watch is not met (the condition // evaluates to false). +// To demonstrate how throttling works in practice and how it can be configured +// for individual actions within a watch, refer to External documentation. package ackwatch import ( @@ -110,6 +112,8 @@ func NewAckWatchFunc(tp elastictransport.Interface) NewAckWatch { // `ack.state` is reset to `awaits_successful_execution`. // This happens when the condition of the watch is not met (the condition // evaluates to false). +// To demonstrate how throttling works in practice and how it can be configured +// for individual actions within a watch, refer to External documentation. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-ack-watch func New(tp elastictransport.Interface) *AckWatch { diff --git a/typedapi/watcher/ackwatch/response.go b/typedapi/watcher/ackwatch/response.go index 738ed2de21..31dc4f3731 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package ackwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package ackwatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1fdd23dbbd..216c0bac78 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Activate a watch. // A watch can be either active or inactive. diff --git a/typedapi/watcher/activatewatch/response.go b/typedapi/watcher/activatewatch/response.go index f94b0db1c1..50ba8285cd 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package activatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package activatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 7e83b4dcdd..52abeea1f9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Deactivate a watch. // A watch can be either active or inactive. diff --git a/typedapi/watcher/deactivatewatch/response.go b/typedapi/watcher/deactivatewatch/response.go index 9eae560199..70bd149eac 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deactivatewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package deactivatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 28c08260fd..d811967f8c 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Delete a watch. // When the watch is removed, the document representing the watch in the diff --git a/typedapi/watcher/deletewatch/response.go b/typedapi/watcher/deletewatch/response.go index 32aa785333..35bc634cf9 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package deletewatch // Response holds the response body struct for the package deletewatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 a2b9958d62..c1b7d9f321 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Run a watch. // This API can be used to force execution of the watch outside of its @@ -42,6 +42,8 @@ // 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. +// Refer to the external documentation for examples of watch execution requests, +// including existing, customized, and inline watches. package executewatch import ( @@ -127,6 +129,8 @@ func NewExecuteWatchFunc(tp elastictransport.Interface) NewExecuteWatch { // 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. +// Refer to the external documentation for examples of watch execution requests, +// including existing, customized, and inline watches. // // https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-execute-watch func New(tp elastictransport.Interface) *ExecuteWatch { diff --git a/typedapi/watcher/executewatch/request.go b/typedapi/watcher/executewatch/request.go index 9169bd16e0..9696201d5a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package executewatch @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L107 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 1af3d0c212..ba810d6c9b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package executewatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 2c58dfde87..6fc9525bbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get Watcher index settings. // Get settings for the Watcher internal index (`.watches`). diff --git a/typedapi/watcher/getsettings/response.go b/typedapi/watcher/getsettings/response.go index d54c1aa88f..7e56ace6e4 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 d9f05d90a3..1814052dbb 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get a watch. package getwatch diff --git a/typedapi/watcher/getwatch/response.go b/typedapi/watcher/getwatch/response.go index 2614cf156a..11e2071cf0 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package getwatch @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getwatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4a14c419d3..5ce37dc842 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Create or update a watch. // When a watch is registered, a new document that represents the watch is added diff --git a/typedapi/watcher/putwatch/request.go b/typedapi/watcher/putwatch/request.go index a0a8b660c5..dc48ade916 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putwatch @@ -32,7 +32,7 @@ import ( // Request holds the request body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 ab43c08fe5..092e81553a 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package putwatch // Response holds the response body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 1862454d74..22bff81c2f 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Query watches. // Get all registered watches in a paginated manner and optionally filter diff --git a/typedapi/watcher/querywatches/request.go b/typedapi/watcher/querywatches/request.go index bcce41d6d7..0217c25224 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package querywatches @@ -33,7 +33,7 @@ import ( // Request holds the request body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 6da2db9086..e0f9658f60 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package querywatches @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 8401d01b12..7b1660932e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/start/WatcherStartResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/start/WatcherStartResponse.ts#L22-L25 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 140752af6a..2097875142 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Start the watch service. // Start the Watcher service if it is not already running. diff --git a/typedapi/watcher/stats/response.go b/typedapi/watcher/stats/response.go index f4ef74b12a..7c50d1a91b 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 475fbe909f..220f373c30 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get Watcher statistics. // This API always returns basic metrics. diff --git a/typedapi/watcher/stop/response.go b/typedapi/watcher/stop/response.go index 50b0b37cd7..aaede7ae3d 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/stop/WatcherStopResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/watcher/stop/WatcherStopResponse.ts#L22-L25 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 720f5a4d19..01e146fc52 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Stop the watch service. // Stop the Watcher service if it is running. diff --git a/typedapi/watcher/updatesettings/request.go b/typedapi/watcher/updatesettings/request.go index f5bc505743..25ec10c285 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatesettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 f387418dbe..e63fb786f7 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 085374daf6..cdaba20195 100644 --- a/typedapi/watcher/updatesettings/update_settings.go +++ b/typedapi/watcher/updatesettings/update_settings.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). diff --git a/typedapi/xpack/info/info.go b/typedapi/xpack/info/info.go index ca10ef54b6..fc2f358096 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get information. // The information provided by the API includes: diff --git a/typedapi/xpack/info/response.go b/typedapi/xpack/info/response.go index 60b74f1db5..a886205284 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package info @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/info/XPackInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/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 4c8f0a190c..7289a3f741 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 package usage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/52c473efb1fb5320a5bac12572d0b285882862fb/specification/xpack/usage/XPackUsageResponse.ts#L42-L77 +// https://github.com/elastic/elasticsearch-specification/blob/86f41834c7bb975159a38a73be8a9d930010d673/specification/xpack/usage/XPackUsageResponse.ts#L42-L77 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 fb66a75a75..c6496e117e 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/52c473efb1fb5320a5bac12572d0b285882862fb +// https://github.com/elastic/elasticsearch-specification/tree/86f41834c7bb975159a38a73be8a9d930010d673 // Get usage information. // Get information about the features that are currently enabled and available